ocean-dynamo 1.2.0 → 1.2.1
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 +4 -4
- data/README.rdoc +3 -3
- data/lib/ocean-dynamo/schema.rb +2 -2
- data/lib/ocean-dynamo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9093b06c18bfab10ad838fabcfa6b193cbd8bfe7
|
4
|
+
data.tar.gz: 8343febaa0690023516a27585d2d1857710b94ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc8858fec48e9796f12d60120989f0fad06a04cbcc15805b8af58551efb2d673fc56360efea679d1ebd4453d32aa417c18a30a1a40a2fbc17ee0573db3dd8be
|
7
|
+
data.tar.gz: f1246850490184ce41e24044207924ec2ecc24aeb1dd180e1f3c8c42c671ca446161d2ed67ed93c154ad98d3b18f288b17fb08eb89fddee83b09153831f746fb
|
data/README.rdoc
CHANGED
@@ -273,9 +273,9 @@ block:
|
|
273
273
|
Each +global_secondary_index+ clause takes the following arguments:
|
274
274
|
* +hash_value+ (required),
|
275
275
|
* +range_value+ (optional),
|
276
|
-
* +:projection (default :keys_only, :all for all attributes)
|
277
|
-
* read_capacity_units (
|
278
|
-
* write_capacity_units (default 5)
|
276
|
+
* +:projection+ (default :keys_only, :all for all attributes)
|
277
|
+
* +:read_capacity_units+ (defaults to the table's read capacity, normally 10)
|
278
|
+
* +:write_capacity_units+ (default to the table's write capacity, normally 5)
|
279
279
|
|
280
280
|
|
281
281
|
== Installation
|
data/lib/ocean-dynamo/schema.rb
CHANGED
@@ -41,8 +41,8 @@ module OceanDynamo
|
|
41
41
|
|
42
42
|
def global_secondary_index(hash_key, range_key=nil,
|
43
43
|
projection: :keys_only,
|
44
|
-
read_capacity_units:
|
45
|
-
write_capacity_units:
|
44
|
+
read_capacity_units: table_read_capacity_units,
|
45
|
+
write_capacity_units: table_write_capacity_units)
|
46
46
|
if range_key
|
47
47
|
name = "#{hash_key}_#{range_key}"
|
48
48
|
keys = [hash_key.to_s, range_key.to_s]
|
data/lib/ocean-dynamo/version.rb
CHANGED