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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/shameless/index.rb +2 -2
- data/lib/shameless/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e42bbb56cdf62849cbe20e72336e4dbafa8f88c7
|
4
|
+
data.tar.gz: 5e183268e8aec40081c4f27bb63ddb7fa3e871e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da822d4737743bdf66ffe9c9d3e19cdc8572b73168d28bef2c6cba2270f356cb2d7ed8b949b39de7491b7248587a4d832c8f175a425a0684b2fb7854a2d07224
|
7
|
+
data.tar.gz: db5bfe0bbf1d1e2ae07c9a720a15aa23cf12dd546d924bdc2f57adddcf60be266a77b243916d679301aa5bcbc1c95da22ae916a5aade5dd95d690a4e69c98836
|
data/CHANGELOG.md
CHANGED
data/lib/shameless/index.rb
CHANGED
@@ -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
|
data/lib/shameless/version.rb
CHANGED