simple-cloudfront-invalidator 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -1
- data/changelog.md +4 -0
- data/lib/simple-cloudfront-invalidator.rb +1 -1
- data/simple-cloudfront-invalidator.gemspec +1 -1
- data/spec/simple_cloudfront_invalidator_spec.rb +5 -5
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64175c137d3b5410660c4ff8cc33082114979749
|
4
|
+
data.tar.gz: 8c99e57da3c06e18a260fcc1c6a782bc3d74ac11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fa2103a0d073a60ab4348719b80c2bd319de6f6b2a938ef9bd3392ecaffea46614c24c82815ce3c8a3288068efe2ac8daba2095852dd49d92351a89a39314bc
|
7
|
+
data.tar.gz: 341c6fc42647c6d830929ca119d99ff38d3f9e6afa736ebbc454251679bde34cd0ee8f523e3ca0b1677715ec2dddb4fb5520e8dd98a1641a50dad62a016845dd
|
data/.travis.yml
CHANGED
data/changelog.md
CHANGED
@@ -38,7 +38,7 @@ module SimpleCloudfrontInvalidator
|
|
38
38
|
def sign_and_call(url, method, body = nil)
|
39
39
|
date = Time.now.utc.strftime("%a, %d %b %Y %H:%M:%S %Z")
|
40
40
|
digest = Base64.encode64(
|
41
|
-
OpenSSL::HMAC.digest(OpenSSL::Digest
|
41
|
+
OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), @aws_secret, date)).strip
|
42
42
|
uri = URI.parse(url)
|
43
43
|
req = method.new(uri.path)
|
44
44
|
req.initialize_http_header({
|
@@ -14,11 +14,11 @@ module SimpleCloudfrontInvalidator
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'returns a textual report on the invalidation' do
|
17
|
-
textual_report = @report[:text_report]
|
18
|
-
textual_report
|
19
|
-
textual_report
|
20
|
-
textual_report
|
21
|
-
textual_report
|
17
|
+
textual_report = @report[:text_report].join('')
|
18
|
+
expect(textual_report).to include "Invalidating Cloudfront items..."
|
19
|
+
expect(textual_report).to include "/index.html"
|
20
|
+
expect(textual_report).to include "/articles.html"
|
21
|
+
expect(textual_report).to include "succeeded"
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'returns the count of successfully invalidated items' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-cloudfront-invalidator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lauri Lehmijoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored
|
@@ -28,70 +28,70 @@ dependencies:
|
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: vcr
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: webmock
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: require_relative
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description:
|
@@ -100,8 +100,8 @@ executables: []
|
|
100
100
|
extensions: []
|
101
101
|
extra_rdoc_files: []
|
102
102
|
files:
|
103
|
-
- .gitignore
|
104
|
-
- .travis.yml
|
103
|
+
- ".gitignore"
|
104
|
+
- ".travis.yml"
|
105
105
|
- Gemfile
|
106
106
|
- README.md
|
107
107
|
- Rakefile
|
@@ -121,17 +121,17 @@ require_paths:
|
|
121
121
|
- lib
|
122
122
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- -
|
124
|
+
- - ">="
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.
|
134
|
+
rubygems_version: 2.2.2
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: A library for invalidating Cloudfront distributions
|