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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfa5e73170ca1ff34c47080c36267bd36f15c016
4
- data.tar.gz: 68c4324e8a6442acb79445131701949f63cdfc2a
3
+ metadata.gz: 181a9df06d84ad7743b969ae05699546fa292fe6
4
+ data.tar.gz: c2d5720d3573a181fa1b7084bb565dcc16f84b63
5
5
  SHA512:
6
- metadata.gz: cf6e61cb9b782550f98c8bba49064e56a94945a116bc6e9456a67873b370b23efb4c43a97f439d45654478e81a439d2972d9f0812832cf0671c7dc7ba23ea2e9
7
- data.tar.gz: 910abb79b3fb9c6f182b971c5449d5e24cd806871fab05aac6c57e92eb18a579ee7be8cc838e1a0b5b37cfac799bf31ffba639cfff8713d24c579a1e09eec060
6
+ metadata.gz: 0fc230490fc37bf5e91e663d41e8f87049e93372841b41db43a1b374b0f146a91c0648817bd36fd92c6bf4ad67c508c6f3d7cd052065ca9dd291a448f0a73dca
7
+ data.tar.gz: 28122a68fa7eeaa73f3ce8f8f144dd3a9877d8da01c08574872ea9aef06f135fd023e5edf736b3a24593c368c977923924e1e6409f9d5ea2924c265cabd5a34d
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Toy
2
2
  module Dynamo
3
- VERSION = "0.1.9"
3
+ VERSION = "0.1.10"
4
4
  end
5
5
  end
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.9
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-08 00:00:00.000000000 Z
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.0.14
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