awful 0.0.116 → 0.0.117

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: b636b887fb7b3d4b6bcbbd3232b24959c95aa53e
4
- data.tar.gz: 135f6a35f7ce58c35477cfdec3f279442bc8084a
3
+ metadata.gz: b587c9a39544b13cbd59286a8b35147d347bcdaf
4
+ data.tar.gz: db1b38e95744d3dc1522e77c287daf16ac30fe86
5
5
  SHA512:
6
- metadata.gz: 082f585bd4c48bcb73a54fe386af7aca6563a28c4e5a68d6c2db7a268baa61814237c4a36cc760aa8777ec8d4f683396dab377c8deafc1b310ccd842349c30b8
7
- data.tar.gz: 3c7ab2ba1e137eca5fabdb52b0e1f4d7a05edb069bbe0a5884f860c3ba87ecd74258669e9b68e23b26fd8251145880495f61975d47f6774d5c2f83d26ad8dc42
6
+ metadata.gz: b4a249a548199a887f4e38f26a60ccb54469a1789bc93cd8039908bab3046f958e1296d91abb59d658ad5ef007691808b2b6768ae4940755895a4bae9542b25c
7
+ data.tar.gz: b0e0fa6d37b458b806cccdfde83977f7073be04f5c31abaf4a52eb455f5e721c00a3416ec8f5dcc009bc19e3813dafb5774e97193a1d89d985865fc91f547389
@@ -22,9 +22,18 @@ module Awful
22
22
 
23
23
  ## return array of tables names matching name
24
24
  def all_matching_tables(name)
25
- dynamodb.list_tables.table_names.select do |table|
26
- table.match(name)
25
+ tables = []
26
+ last_evaluated = nil
27
+ loop do # get 100 at a time from sdk
28
+ response = dynamodb.list_tables(exclusive_start_table_name: last_evaluated)
29
+ matching = response.table_names.select do |table|
30
+ table.match(name)
31
+ end
32
+ tables = tables + matching
33
+ last_evaluated = response.last_evaluated_table_name
34
+ break unless last_evaluated
27
35
  end
36
+ tables
28
37
  end
29
38
  end
30
39
 
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.116'
2
+ VERSION = '0.0.117'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.116
4
+ version: 0.0.117
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-03 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler