Veraticus/Dynamoid — pull request #37 by afrojas (2012-05-04 08:25:13+00:00)
Title: Fixes bug where setting a range key on a table fails due to :number vs :integer/:float

DynamoDB expects the type of a range key to be either :string or :number, but Dynamoid allows for :string, :float, or :integer on any field type (and calling the range method calls the field method).

```ruby
range :level, :integer
```

fails on table creation, because Dynamo wants :number, but

```ruby
range :level, :number
```

allows for table creation but fails on putting items into the table because :number is not supported by Dynamoid. This patch allows you to do what you'd expect:

```ruby
range :level, :integer
```

and on table creation converts :integer and :float to :number.