simple-cloudfront-invalidator 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b6a97648fbb3c1ddea6ece8b1106a4298f7d264e
4
+ data.tar.gz: c8f0249870ae9099f3a1dc1723c55d77ee6962d2
5
+ SHA512:
6
+ metadata.gz: 53b0d76002f8ee83d354f33a816d40601d814a8082b4edb6717d5020374971ca96972206e899962f495646202f39d00034c7191aa2554ddf83840b87ea715b45
7
+ data.tar.gz: 06107b386283f58876ba216d808181cbfda05797706d898450509dc32be88ae5865cfe4c43b01bdadf4c1103be0ee5cba771a2a5efafdea8ae309a0e2856dc5b
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ This project uses [Semantic Versioning](http://semver.org)
4
+
5
+ ## 1.0.1
6
+
7
+ * Use UTC timestamp to sign request
8
+
9
+ ## 1.0.0
10
+
11
+ * First release
@@ -36,7 +36,7 @@ module SimpleCloudfrontInvalidator
36
36
  private
37
37
 
38
38
  def sign_and_call(url, method, body = nil)
39
- date = Time.now.strftime("%a, %d %b %Y %H:%M:%S %Z")
39
+ date = Time.now.utc.strftime("%a, %d %b %Y %H:%M:%S %Z")
40
40
  digest = Base64.encode64(
41
41
  OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new('sha1'), @aws_secret, date)).strip
42
42
  uri = URI.parse(url)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'simple-cloudfront-invalidator'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.license = 'MIT'
5
5
  s.summary = 'A library for invalidating Cloudfront distributions'
6
6
  s.authors = ['Lauri Lehmijoki']
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-cloudfront-invalidator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
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-04 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: colored
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - '='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
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
@@ -30,81 +27,71 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
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: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: vcr
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
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
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: webmock
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
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: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '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: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: require_relative
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
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: '0'
110
97
  description:
@@ -118,6 +105,7 @@ files:
118
105
  - Gemfile
119
106
  - README.md
120
107
  - Rakefile
108
+ - changelog.md
121
109
  - fixtures/cassettes/cloudfront.yml
122
110
  - lib/simple-cloudfront-invalidator.rb
123
111
  - simple-cloudfront-invalidator.gemspec
@@ -126,32 +114,25 @@ files:
126
114
  homepage: https://github.com/laurilehmijoki/simple-cloudfront-invalidator
127
115
  licenses:
128
116
  - MIT
117
+ metadata: {}
129
118
  post_install_message:
130
119
  rdoc_options: []
131
120
  require_paths:
132
121
  - lib
133
122
  required_ruby_version: !ruby/object:Gem::Requirement
134
- none: false
135
123
  requirements:
136
- - - ! '>='
124
+ - - '>='
137
125
  - !ruby/object:Gem::Version
138
126
  version: '0'
139
- segments:
140
- - 0
141
- hash: 3317433845191601945
142
127
  required_rubygems_version: !ruby/object:Gem::Requirement
143
- none: false
144
128
  requirements:
145
- - - ! '>='
129
+ - - '>='
146
130
  - !ruby/object:Gem::Version
147
131
  version: '0'
148
- segments:
149
- - 0
150
- hash: 3317433845191601945
151
132
  requirements: []
152
133
  rubyforge_project:
153
- rubygems_version: 1.8.24
134
+ rubygems_version: 2.0.3
154
135
  signing_key:
155
- specification_version: 3
136
+ specification_version: 4
156
137
  summary: A library for invalidating Cloudfront distributions
157
138
  test_files: []