frizz 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/frizz/remote.rb +6 -1
- data/lib/frizz/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 640a8a3d4e62f00a802b71bf0e804816ab6fc345
|
4
|
+
data.tar.gz: a6347fe363eff5929cf1c08c70de06597606db55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dccac0cfac57f1928f99f5435e0e0c8a5b748de03eed402ad9eaf24eddbde927468a81167c8926e59d1573212af047382bbbeaa3ad6cb91518062c21f5504dd
|
7
|
+
data.tar.gz: 73f5b35b23d7a057a2617ca75596482a25459b2c36513627f6b91cbd00e3fe5ab8561226192673362f30ad0572efd835dadff588fcd56f1b188780eb58ea5bc7
|
data/README.md
CHANGED
data/lib/frizz/remote.rb
CHANGED
@@ -43,7 +43,7 @@ module Frizz
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def objects
|
46
|
-
client.list_objects(bucket: bucket_name)
|
46
|
+
paginate(client.list_objects(bucket: bucket_name), [])
|
47
47
|
end
|
48
48
|
|
49
49
|
def client
|
@@ -55,5 +55,10 @@ module Frizz
|
|
55
55
|
)
|
56
56
|
)
|
57
57
|
end
|
58
|
+
|
59
|
+
def paginate(response, contents = [])
|
60
|
+
contents.push *response.contents
|
61
|
+
response.next_page? ? paginate(response.next_page, contents) : contents
|
62
|
+
end
|
58
63
|
end
|
59
64
|
end
|
data/lib/frizz/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frizz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- patbenatar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
169
|
rubyforge_project:
|
170
|
-
rubygems_version: 2.
|
170
|
+
rubygems_version: 2.6.11
|
171
171
|
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: Utility for deploying static sites to S3
|