jekyll-s3-yearofmoo 0.0.32 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
data/jekyll-s3-yearofmoo.gemspec
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "jekyll-s3-yearofmoo"
|
7
7
|
s.version = Jekyll::S3::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ["
|
10
|
-
s.email = ["
|
9
|
+
s.authors = ["Matias Niemela"]
|
10
|
+
s.email = ["matias@yearofmoo.com"]
|
11
11
|
s.homepage = "https://github.com/versapay/jekyll-s3"
|
12
12
|
s.summary = %q{Push your Jekyll blog to S3}
|
13
13
|
s.description = %q{This Gem allows you to push your Jekyll blog to AWS S3.
|
@@ -20,18 +20,10 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
20
20
|
check_s3_configuration!
|
21
21
|
load_configuration
|
22
22
|
upload_to_s3!(campaign)
|
23
|
-
invalidate_cf_dist_if_configured!
|
24
23
|
end
|
25
24
|
|
26
25
|
protected
|
27
26
|
|
28
|
-
def invalidate_cf_dist_if_configured!
|
29
|
-
cloudfront_configured = @cloudfront_distribution_id != nil && @cloudfront_distribution_id != ''
|
30
|
-
Jekyll::Cloudfront::Invalidator.invalidate(
|
31
|
-
@s3_id, @s3_secret, @s3_bucket, @cloudfront_distribution_id
|
32
|
-
) if cloudfront_configured
|
33
|
-
end
|
34
|
-
|
35
27
|
def run_with_retry
|
36
28
|
begin
|
37
29
|
yield
|
metadata
CHANGED
@@ -5,11 +5,11 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 33
|
9
|
+
version: 0.0.33
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
|
-
-
|
12
|
+
- Matias Niemela
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
@@ -96,7 +96,7 @@ description: |-
|
|
96
96
|
In addition, you can use this Gem to invalidate the related Cloudfront
|
97
97
|
distribution, making it easy to deliver your blog via the CDN.
|
98
98
|
email:
|
99
|
-
-
|
99
|
+
- matias@yearofmoo.com
|
100
100
|
executables:
|
101
101
|
- jekyll-s3-yearofmoo
|
102
102
|
extensions: []
|