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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac81e9f8422a598be934dfc3408700e10c06e24e
4
- data.tar.gz: 8bff2ca30a6e00e36c4a0e32132faf230a4f27a6
3
+ metadata.gz: 640a8a3d4e62f00a802b71bf0e804816ab6fc345
4
+ data.tar.gz: a6347fe363eff5929cf1c08c70de06597606db55
5
5
  SHA512:
6
- metadata.gz: 5b6e88ad4ff8577b2b27774308d68e79e7c211d6ce03e94fc14667c1857740c5fdadf339f57e3fa797281b826ed45ff3440c3b95f791f23dcd7623dafd6847fe
7
- data.tar.gz: 0b1c66cd3b000bd6ebe6473fc95571c6478363859f0760c71025cf0c9db44f8b2c1a735792c23ec2a622e9fb4504d045f8ca0182c11c3e3ec345811f8c7f79f2
6
+ metadata.gz: 2dccac0cfac57f1928f99f5435e0e0c8a5b748de03eed402ad9eaf24eddbde927468a81167c8926e59d1573212af047382bbbeaa3ad6cb91518062c21f5504dd
7
+ data.tar.gz: 73f5b35b23d7a057a2617ca75596482a25459b2c36513627f6b91cbd00e3fe5ab8561226192673362f30ad0572efd835dadff588fcd56f1b188780eb58ea5bc7
data/README.md CHANGED
@@ -147,7 +147,7 @@ environments:
147
147
  production:
148
148
  host: "example.com"
149
149
  region: "us-west-2"
150
- distribution "CLOUDFRONT_DISTRIBUTION_ID"
150
+ distribution: "CLOUDFRONT_DISTRIBUTION_ID"
151
151
  ```
152
152
 
153
153
  Frizz would give us the following Rake tasks:
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).contents
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
@@ -1,3 +1,3 @@
1
1
  module Frizz
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
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.0.0
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: 2016-04-20 00:00:00.000000000 Z
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.5.1
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