shameless 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 839607ae8ec8ee9e759f37a6f2a6c69264fca086
4
- data.tar.gz: 498b1d442dc13719c2a67a5a3176f0bf160baa32
3
+ metadata.gz: e42bbb56cdf62849cbe20e72336e4dbafa8f88c7
4
+ data.tar.gz: 5e183268e8aec40081c4f27bb63ddb7fa3e871e4
5
5
  SHA512:
6
- metadata.gz: f2f01520df26451f4b64fa4b70bcbe24d169565d105955a715f88245680e032b8aa8065f8c03354440a07e6e7d385473ad7e45f30e5017529b266a2cea1d5579
7
- data.tar.gz: 06d827ed97efc129c88ec1d0ded8f0d271a990b84580129b436957f38e5ed3638f2d6761551670afd292ac9fb5c2d3dc217f97dcd3800513dfdc0b625391183e
6
+ metadata.gz: da822d4737743bdf66ffe9c9d3e19cdc8572b73168d28bef2c6cba2270f356cb2d7ed8b949b39de7491b7248587a4d832c8f175a425a0684b2fb7854a2d07224
7
+ data.tar.gz: db5bfe0bbf1d1e2ae07c9a720a15aa23cf12dd546d924bdc2f57adddcf60be266a77b243916d679301aa5bcbc1c95da22ae916a5aade5dd95d690a4e69c98836
@@ -1,3 +1,9 @@
1
+ ### Unreleased
2
+
3
+ ### 0.5.1 (2016-12-01)
4
+
5
+ * Convert shardable value to integer for index tables
6
+
1
7
  ### 0.5.0 (2016-12-01)
2
8
 
3
9
  * Add `Model#as_json` and `Cell#as_json`
@@ -30,14 +30,14 @@ module Shameless
30
30
  end
31
31
 
32
32
  def put(values)
33
- shardable_value = values.fetch(@shard_on)
33
+ shardable_value = values.fetch(@shard_on).to_i
34
34
  index_values = index_values(values, true)
35
35
 
36
36
  @model.store.put(table_name, shardable_value, index_values)
37
37
  end
38
38
 
39
39
  def where(query)
40
- shardable_value = query.fetch(@shard_on)
40
+ shardable_value = query.fetch(@shard_on).to_i
41
41
  query = index_values(query, false)
42
42
  @model.store.where(table_name, shardable_value, query).map {|r| @model.new(r[:uuid]) }
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module Shameless
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shameless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olek Janiszewski