toy-dynamo 0.1.8 → 0.1.9

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: cc1356fd3bf6cd5882b60deaa7c0647c3a462e1a
4
- data.tar.gz: f44fbc6a3eea8d34b4886cac170138c657abab64
3
+ metadata.gz: bfa5e73170ca1ff34c47080c36267bd36f15c016
4
+ data.tar.gz: 68c4324e8a6442acb79445131701949f63cdfc2a
5
5
  SHA512:
6
- metadata.gz: 7d36e61b7ce094d6a88181b6ba0396b819cfb7b124bd64acb385cf891f5d0b95d832de34520e4349d5dd41d61b056ea016a9f35bc55ec1eadc0fc18b9d345862
7
- data.tar.gz: 008a9a582dd701d8da86110b560da1089780f82762eaf86f7c676dc6698a8dd0dbc82edae196a14bea5c2b2fc5126855bad6fa5e0c5c111e16b3b11d2990d9d8
6
+ metadata.gz: cf6e61cb9b782550f98c8bba49064e56a94945a116bc6e9456a67873b370b23efb4c43a97f439d45654478e81a439d2972d9f0812832cf0671c7dc7ba23ea2e9
7
+ data.tar.gz: 910abb79b3fb9c6f182b971c5449d5e24cd806871fab05aac6c57e92eb18a579ee7be8cc838e1a0b5b37cfac799bf31ffba639cfff8713d24c579a1e09eec060
@@ -182,7 +182,6 @@ module Toy
182
182
  raise ArgumentError, ":range key must be a Range if using the operator BETWEEN" if comparison_operator == "between" && !options[:range].values.first.is_a?(Range)
183
183
 
184
184
  if range_key.has_key?(:index_name) # Local/Global Secondary Index
185
- options[:select] = :projected unless options[:select].present?
186
185
  query_request.merge!(:index_name => range_key[:index_name])
187
186
  end
188
187
 
@@ -209,6 +208,7 @@ module Toy
209
208
  end
210
209
 
211
210
  # Default if not already set
211
+ options[:select] = :projected if options[:select].blank? && query_request[:index_name]
212
212
  options[:select] ||= :all # :all, :projected, :count, []
213
213
  if options[:select].is_a?(Array)
214
214
  attrs_to_select = [options[:select].map(&:to_s)].flatten
@@ -1,5 +1,5 @@
1
1
  module Toy
2
2
  module Dynamo
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toy-dynamo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cary Dunn