awful 0.0.96 → 0.0.97
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/lib/awful/dynamodb.rb +7 -2
- data/lib/awful/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: 28878967d14a135cefd7f0e86a944f7ad07e952f
|
4
|
+
data.tar.gz: a2a5338d03a3ed242291fad9ba8ee8296e196c47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4369243c373d98172a2e422842cffddbce68c9b4b16c354e75f99c3014f16d288c2a2699d2f633ccb60d4eee01b3c251afda1c76bc1a485d3740d64429c2f391
|
7
|
+
data.tar.gz: 0f07458ce1c5a7bdca2db42ade953a4ceca9596c113b2025e4eb1a13f3bab93a3ad02dfd561dde60eba9c8ae18505593eb12b2ec028c1759bef5e2f584745a1c
|
data/lib/awful/dynamodb.rb
CHANGED
@@ -92,7 +92,12 @@ module Awful
|
|
92
92
|
|
93
93
|
## current is hash of current provisioned throughput
|
94
94
|
current = table.provisioned_throughput.to_h
|
95
|
-
|
95
|
+
|
96
|
+
## loop-safe version of GSIs (in case nil)
|
97
|
+
global_secondary_indexes = table.global_secondary_indexes || []
|
98
|
+
|
99
|
+
## get throughput for each GSI
|
100
|
+
global_secondary_indexes.each do |gsi|
|
96
101
|
current[gsi.index_name] = gsi.provisioned_throughput.to_h
|
97
102
|
end
|
98
103
|
|
@@ -113,7 +118,7 @@ module Awful
|
|
113
118
|
|
114
119
|
## list of requested GSIs, or all for this table
|
115
120
|
gsis = options[:gsi]
|
116
|
-
gsis =
|
121
|
+
gsis = global_secondary_indexes.map(&:index_name) if options[:all]
|
117
122
|
params[:global_secondary_index_updates] = gsis.map do |gsi|
|
118
123
|
{
|
119
124
|
update: {
|
data/lib/awful/version.rb
CHANGED