toy-dynamo 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toy/dynamo/table.rb +3 -3
- data/lib/toy/dynamo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 181a9df06d84ad7743b969ae05699546fa292fe6
|
4
|
+
data.tar.gz: c2d5720d3573a181fa1b7084bb565dcc16f84b63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fc230490fc37bf5e91e663d41e8f87049e93372841b41db43a1b374b0f146a91c0648817bd36fd92c6bf4ad67c508c6f3d7cd052065ca9dd291a448f0a73dca
|
7
|
+
data.tar.gz: 28122a68fa7eeaa73f3ce8f8f144dd3a9877d8da01c08574872ea9aef06f135fd023e5edf736b3a24593c368c977923924e1e6409f9d5ea2924c265cabd5a34d
|
data/lib/toy/dynamo/table.rb
CHANGED
@@ -204,11 +204,9 @@ module Toy
|
|
204
204
|
end
|
205
205
|
|
206
206
|
if options[:global_secondary_index] # Override index_name if using GSI
|
207
|
+
options[:select] = :projected if options[:select].blank?
|
207
208
|
query_request.merge!(:index_name => gsi[:index_name])
|
208
209
|
end
|
209
|
-
|
210
|
-
# Default if not already set
|
211
|
-
options[:select] = :projected if options[:select].blank? && query_request[:index_name]
|
212
210
|
options[:select] ||= :all # :all, :projected, :count, []
|
213
211
|
if options[:select].is_a?(Array)
|
214
212
|
attrs_to_select = [options[:select].map(&:to_s)].flatten
|
@@ -225,6 +223,8 @@ module Toy
|
|
225
223
|
query_request.merge!({ :limit => options[:limit].to_i }) if options.has_key?(:limit)
|
226
224
|
query_request.merge!({ :exclusive_start_key => options[:exclusive_start_key] }) if options[:exclusive_start_key]
|
227
225
|
|
226
|
+
puts "HERE"
|
227
|
+
puts query_request
|
228
228
|
@client.query(query_request)
|
229
229
|
end
|
230
230
|
|
data/lib/toy/dynamo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toy-dynamo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cary Dunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.1.11
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: ActiveModel based DynamoDB ORM - extension to toystore
|