cf-s3-invalidator 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ca7316b050acadcd2466a587548d1db811bda3ff
4
+ data.tar.gz: 8fad56503460150c775e049f5f93c207d9068678
5
+ SHA512:
6
+ metadata.gz: e8254f1d28b9aa4dd7260e72d85b64489e9b64b35f6518c4a72867d80a7eb6b7eb91ca42269b3517b8133513ecb77746e6eb0358c4500be83dde2ac056a205f8
7
+ data.tar.gz: 1cb4b2f65aeeac4701d74ccb328f8e2c504ba23277dd26924be4c271959814fee931616721bbf49f29aa40747919a99e0ee29398d02103182b556a27b443176d
data/.travis.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
3
  - 1.9.2
5
4
  - 1.9.3
data/README.md CHANGED
@@ -35,6 +35,16 @@ Run tests:
35
35
 
36
36
  `rake test`
37
37
 
38
+ ## Troubleshooting
39
+
40
+ * Verify that the AWS user has CloudFront permissions. In the AWS web interface, this
41
+ will be in the `permissions` section of
42
+ `https://console.aws.amazon.com/iam/home?region=REGION-CODE#users/USERNAME`
43
+
44
+ * If you're using cf-s3-invalidator from Travis CI, be sure the credentials are
45
+ [encrypted](http://docs.travis-ci.com/user/encryption-keys/) with the correct key
46
+ for the repository
47
+
38
48
  ## License
39
49
 
40
50
  MIT
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cf-s3-invalidator'
3
- s.version = '0.4.1'
3
+ s.version = '0.4.2'
4
4
  s.license = 'MIT'
5
5
  s.summary = 'A tool for invalidating AWS S3-based Cloudfront distributions'
6
6
  s.description =
data/changelog.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.2
4
+
5
+ * Stop using Ruby 1.8.7; Nokogiri needs >=1.9.2
6
+ * Change deprecated OpenSSL::Digest::Digest to OpenSSL::Digest
7
+
3
8
  ## 0.4.1
4
9
 
5
10
  * Print a nicer-looking invalidation report
11
+ * Start using [Semantic Versioning](http://semver.org/)
@@ -32,7 +32,7 @@ module CloudfrontS3Invalidator
32
32
  def sign_and_call(url, method, body = nil)
33
33
  date = Time.now.strftime("%a, %d %b %Y %H:%M:%S %Z")
34
34
  digest = Base64.encode64(
35
- OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new('sha1'), @aws_secret, date)).strip
35
+ OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), @aws_secret, date)).strip
36
36
  uri = URI.parse(url)
37
37
  req = method.new(uri.path)
38
38
  req.initialize_http_header({
metadata CHANGED
@@ -1,52 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-s3-invalidator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
5
- prerelease:
4
+ version: 0.4.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Lauri Lehmijoki
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-31 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: aws-sdk
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.8.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.8.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: simple-cloudfront-invalidator
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: 1.0.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: 1.0.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: colored
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - '='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - '='
60
53
  - !ruby/object:Gem::Version
@@ -62,78 +55,73 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: cucumber
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: 1.2.1
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: 1.2.1
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
75
  version: 2.12.0
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
82
  version: 2.12.0
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rake
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
89
  version: 10.0.3
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
96
  version: 10.0.3
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: aruba
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: 0.4.7
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
110
  version: 0.4.7
126
- description: ! "This lib fetches the names of all objects on an Amazon Web\n Services
127
- S3 bucket. Then it calls the Cloudfront invalidation REST API on the\n objects.\n\n
128
- \ The Cloudfront distribution must be based on the S3 bucket."
111
+ description: |-
112
+ This lib fetches the names of all objects on an Amazon Web
113
+ Services S3 bucket. Then it calls the Cloudfront invalidation REST API on the
114
+ objects.
115
+
116
+ The Cloudfront distribution must be based on the S3 bucket.
129
117
  email: lauri.lehmijoki@iki.fi
130
118
  executables:
131
119
  - cf-s3-inv
132
120
  extensions: []
133
121
  extra_rdoc_files: []
134
122
  files:
135
- - .gitignore
136
- - .travis.yml
123
+ - ".gitignore"
124
+ - ".travis.yml"
137
125
  - Gemfile
138
126
  - README.md
139
127
  - Rakefile
@@ -148,26 +136,25 @@ files:
148
136
  homepage: https://github.com/laurilehmijoki/cf-s3-invalidator
149
137
  licenses:
150
138
  - MIT
139
+ metadata: {}
151
140
  post_install_message:
152
141
  rdoc_options: []
153
142
  require_paths:
154
143
  - lib
155
144
  required_ruby_version: !ruby/object:Gem::Requirement
156
- none: false
157
145
  requirements:
158
- - - ! '>='
146
+ - - ">="
159
147
  - !ruby/object:Gem::Version
160
148
  version: '0'
161
149
  required_rubygems_version: !ruby/object:Gem::Requirement
162
- none: false
163
150
  requirements:
164
- - - ! '>='
151
+ - - ">="
165
152
  - !ruby/object:Gem::Version
166
153
  version: '0'
167
154
  requirements: []
168
155
  rubyforge_project:
169
- rubygems_version: 1.8.24
156
+ rubygems_version: 2.2.2
170
157
  signing_key:
171
- specification_version: 3
158
+ specification_version: 4
172
159
  summary: A tool for invalidating AWS S3-based Cloudfront distributions
173
160
  test_files: []