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 +4 -4
- data/lib/awful/dynamodb.rb +11 -2
- data/lib/awful/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b587c9a39544b13cbd59286a8b35147d347bcdaf
|
4
|
+
data.tar.gz: db1b38e95744d3dc1522e77c287daf16ac30fe86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a249a548199a887f4e38f26a60ccb54469a1789bc93cd8039908bab3046f958e1296d91abb59d658ad5ef007691808b2b6768ae4940755895a4bae9542b25c
|
7
|
+
data.tar.gz: b0e0fa6d37b458b806cccdfde83977f7073be04f5c31abaf4a52eb455f5e721c00a3416ec8f5dcc009bc19e3813dafb5774e97193a1d89d985865fc91f547389
|
data/lib/awful/dynamodb.rb
CHANGED
@@ -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
|
-
|
26
|
-
|
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
|
|
data/lib/awful/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|