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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6a97648fbb3c1ddea6ece8b1106a4298f7d264e
4
- data.tar.gz: c8f0249870ae9099f3a1dc1723c55d77ee6962d2
3
+ metadata.gz: 64175c137d3b5410660c4ff8cc33082114979749
4
+ data.tar.gz: 8c99e57da3c06e18a260fcc1c6a782bc3d74ac11
5
5
  SHA512:
6
- metadata.gz: 53b0d76002f8ee83d354f33a816d40601d814a8082b4edb6717d5020374971ca96972206e899962f495646202f39d00034c7191aa2554ddf83840b87ea715b45
7
- data.tar.gz: 06107b386283f58876ba216d808181cbfda05797706d898450509dc32be88ae5865cfe4c43b01bdadf4c1103be0ee5cba771a2a5efafdea8ae309a0e2856dc5b
6
+ metadata.gz: 5fa2103a0d073a60ab4348719b80c2bd319de6f6b2a938ef9bd3392ecaffea46614c24c82815ce3c8a3288068efe2ac8daba2095852dd49d92351a89a39314bc
7
+ data.tar.gz: 341c6fc42647c6d830929ca119d99ff38d3f9e6afa736ebbc454251679bde34cd0ee8f523e3ca0b1677715ec2dddb4fb5520e8dd98a1641a50dad62a016845dd
@@ -1,5 +1,9 @@
1
1
  language: ruby
2
+ cache: bundler
3
+ sudo: false
2
4
  rvm:
3
- - 1.8.7
5
+ - 2.2
6
+ - 2.1
7
+ - 2.0
4
8
  - 1.9.2
5
9
  - 1.9.3
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org)
4
4
 
5
+ ## 1.1.0
6
+
7
+ * Digest::Digest is deprecated; use Digest
8
+
5
9
  ## 1.0.1
6
10
 
7
11
  * Use UTC timestamp to sign request
@@ -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::Digest.new('sha1'), @aws_secret, date)).strip
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({
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'simple-cloudfront-invalidator'
3
- s.version = '1.0.1'
3
+ s.version = '1.1.0'
4
4
  s.license = 'MIT'
5
5
  s.summary = 'A library for invalidating Cloudfront distributions'
6
6
  s.authors = ['Lauri Lehmijoki']
@@ -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.join('').should include("Invalidating Cloudfront items...")
19
- textual_report.join('').should include("/index.html")
20
- textual_report.join('').should include("/articles.html")
21
- textual_report.join('').should include("succeeded")
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.1
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: 2013-08-02 00:00:00.000000000 Z
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.0.3
134
+ rubygems_version: 2.2.2
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: A library for invalidating Cloudfront distributions