ocean-dynamo 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f47c84e16690a9e6d9cc8ce347a4efaef40598db
4
- data.tar.gz: da9becfcb7f846de88cd3bfbc18790ee9880ab86
3
+ metadata.gz: d978bad9958a6105af68a85d96d0d38b677f26b4
4
+ data.tar.gz: de5eecbb27c422971d41e5a78b905b4ea183cde0
5
5
  SHA512:
6
- metadata.gz: 8ada716f3b882be636aadec0dae83dd951390271eb3a42ea85df5d82d262fe1851f5d60a4928584608386bb9c1e01ae2f09c76c084f289a13fa003e6da72e5a6
7
- data.tar.gz: 83e2e1f504b457436693a10d6da162cc0078ddc3a76c36f53d05c1fa04a78d70970e675de20936c8a8c348bd546c96a9af43a9ce93a98a04d7a5a7e05f96b2fb
6
+ metadata.gz: d8253aa7f354f8d3295be2482ab792aa5c00fd297473cbad21eba2b3e3dd3eb3e54cd1a10894a9229a4a22c4a114833809baed95b445f7e0b73bbf884732e74f
7
+ data.tar.gz: 6385f3c5adab407a884bddfe592a453830792a7da8985851c14ab5e047377135676fc7b11cc1519c6cd5a88736d622990d22d6575e76ae2d726516df679acd77
@@ -111,7 +111,13 @@ module OceanDynamo
111
111
 
112
112
 
113
113
  def condition_options(child_class)
114
- { key_condition_expression: "#{child_class.table_hash_key} = :hashval AND #{child_class.table_range_key} >= :rangeval",
114
+ hash_key = child_class.table_hash_key
115
+ range_key = child_class.table_range_key
116
+ ean = {}
117
+ ean["#H"] = hash_key.to_s
118
+ ean["#R"] = range_key.to_s if range_key
119
+ { expression_attribute_names: ean,
120
+ key_condition_expression: "#H = :hashval AND #R >= :rangeval",
115
121
  expression_attribute_values: { ":hashval" => id, ":rangeval" => "0" }
116
122
  }
117
123
  end
@@ -1,3 +1,3 @@
1
1
  module OceanDynamo
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-dynamo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson