awful 0.0.96 → 0.0.97

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: 20cf14fecdfbb426f917378fdb87a71c3d03b06d
4
- data.tar.gz: 08cc9b0dc46451f3d57156272996521bcd5044ba
3
+ metadata.gz: 28878967d14a135cefd7f0e86a944f7ad07e952f
4
+ data.tar.gz: a2a5338d03a3ed242291fad9ba8ee8296e196c47
5
5
  SHA512:
6
- metadata.gz: 6b38dbe10ec76867dcdcad38513053d6394aabef26d46b79f15ad2a34c2513e129823a3e0096c223a247c413cae5ddeaaa2555c2c445036a85ced8be5915cffc
7
- data.tar.gz: d0aea0c0acbe2ad27c93e55eeadd1fabe2e5fec205ce5e45294a57a651032e6c86ebac64aa881ad8082ea813a56bc9f8f67a901ebcd744b5c520589b0f5027c0
6
+ metadata.gz: 4369243c373d98172a2e422842cffddbce68c9b4b16c354e75f99c3014f16d288c2a2699d2f633ccb60d4eee01b3c251afda1c76bc1a485d3740d64429c2f391
7
+ data.tar.gz: 0f07458ce1c5a7bdca2db42ade953a4ceca9596c113b2025e4eb1a13f3bab93a3ad02dfd561dde60eba9c8ae18505593eb12b2ec028c1759bef5e2f584745a1c
@@ -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
- table.global_secondary_indexes.each do |gsi|
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 = table.global_secondary_indexes.map(&:index_name) if options[:all]
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: {
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.96'
2
+ VERSION = '0.0.97'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.96
4
+ version: 0.0.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister