toy-dynamo 0.0.14 → 0.0.15

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: 114c16518a9a149bc2fb4f5ba5ca589c31fe0341
4
- data.tar.gz: e7392c9638caaf64c38afc5331c8cf3c4f8aff46
3
+ metadata.gz: 26adbe6ed91bc6404764076fa4a8cf89261597e6
4
+ data.tar.gz: 49628a7f3143baa115424d15018c2405fb08a350
5
5
  SHA512:
6
- metadata.gz: dce42aa6a370bccfa8a55d1ea5df1f4859bfa0402581d4fb867606cf5c57712766d2b6b4aedc9781e03c72dfe60ee1e473ff227561eba495b8661936ff345e28
7
- data.tar.gz: 8236426a3f8ebfa6823fefe7cb048e69cc736bfb493f68c6ed1274c2effc6e54d6da6d869b886f23f7fa2bbd3fa76de1bc43e6b962c57a96b8ffdfaa57ed55bc
6
+ metadata.gz: a4b817bc3fd46858022e85473ee9fff66b8dbfc8437d2562c97aed3af4303ca548414f75fa25c577bdf976d309d4c42c3f779ee3c3f0b6ea3e18515d6f543d27
7
+ data.tar.gz: 73182f130442e510ff3ad6e725b0d288584525c75cec34d3d631186fab0f74b53c49f5ed53072433e614b4187b6a258c7acba3a422aec35222d3dc05b89dacd5
@@ -241,6 +241,7 @@ module Toy
241
241
  :key_type => KEY_TYPE[:range]
242
242
  }
243
243
  ]
244
+ return false if (@local_secondary_indexes ||= []).select {|i| i[:index_name] == local_secondary_index_hash[:index_name] }.present? # Do not add if we already have a range key set for this attr
244
245
  (@local_secondary_indexes ||= []) << local_secondary_index_hash
245
246
  end
246
247
 
@@ -1,5 +1,5 @@
1
1
  module Toy
2
2
  module Dynamo
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
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.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cary Dunn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-07 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler