cloudfront 1.0 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile
CHANGED
@@ -7,12 +7,12 @@ gem "nokogiri"
|
|
7
7
|
|
8
8
|
# Add dependencies to develop your gem here.
|
9
9
|
group :development do
|
10
|
-
gem "minitest"
|
11
|
-
gem "yard"
|
12
|
-
gem "bundler"
|
13
|
-
gem "jeweler"
|
10
|
+
gem "minitest"
|
11
|
+
gem "yard"
|
12
|
+
gem "bundler"
|
13
|
+
gem "jeweler"
|
14
14
|
gem 'simplecov', :require => false
|
15
|
-
gem "vcr", "
|
16
|
-
gem "webmock", "
|
17
|
-
gem "timecop"
|
15
|
+
gem "vcr", "~> 1.11.3"
|
16
|
+
gem "webmock", "~> 1.7.0"
|
17
|
+
gem "timecop"
|
18
18
|
end
|
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
|
|
15
15
|
Jeweler::Tasks.new do |gem|
|
16
16
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
17
|
gem.name = "cloudfront"
|
18
|
-
gem.version = '1.
|
18
|
+
gem.version = '1.1'
|
19
19
|
gem.homepage = "https://github.com/Belkacem/cloudfront"
|
20
20
|
gem.license = "MIT"
|
21
21
|
gem.summary = %Q{A tested Cloudfront™ gem}
|
data/cloudfront.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "cloudfront"
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Belkacem REBBOUH"]
|
@@ -65,8 +65,8 @@ Gem::Specification.new do |s|
|
|
65
65
|
"lib/cloudfront/utils/string.rb",
|
66
66
|
"lib/cloudfront/utils/util.rb",
|
67
67
|
"lib/cloudfront/utils/xml_serializer.rb",
|
68
|
-
"lib/
|
69
|
-
"lib/
|
68
|
+
"lib/faraday_middleware/request/cloudfront_signer.rb",
|
69
|
+
"lib/faraday_middleware/request/xml_content_type.rb"
|
70
70
|
]
|
71
71
|
s.homepage = "https://github.com/Belkacem/cloudfront"
|
72
72
|
s.licenses = ["MIT"]
|
@@ -83,12 +83,12 @@ Gem::Specification.new do |s|
|
|
83
83
|
s.add_runtime_dependency(%q<multi_xml>, [">= 0"])
|
84
84
|
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
85
85
|
s.add_development_dependency(%q<minitest>, [">= 0"])
|
86
|
-
s.add_development_dependency(%q<yard>, ["
|
87
|
-
s.add_development_dependency(%q<bundler>, ["
|
88
|
-
s.add_development_dependency(%q<jeweler>, ["
|
86
|
+
s.add_development_dependency(%q<yard>, [">= 0"])
|
87
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
88
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
89
89
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
90
|
-
s.add_development_dependency(%q<vcr>, ["
|
91
|
-
s.add_development_dependency(%q<webmock>, ["
|
90
|
+
s.add_development_dependency(%q<vcr>, ["~> 1.11.3"])
|
91
|
+
s.add_development_dependency(%q<webmock>, ["~> 1.7.0"])
|
92
92
|
s.add_development_dependency(%q<timecop>, [">= 0"])
|
93
93
|
else
|
94
94
|
s.add_dependency(%q<faraday>, [">= 0"])
|
@@ -96,12 +96,12 @@ Gem::Specification.new do |s|
|
|
96
96
|
s.add_dependency(%q<multi_xml>, [">= 0"])
|
97
97
|
s.add_dependency(%q<nokogiri>, [">= 0"])
|
98
98
|
s.add_dependency(%q<minitest>, [">= 0"])
|
99
|
-
s.add_dependency(%q<yard>, ["
|
100
|
-
s.add_dependency(%q<bundler>, ["
|
101
|
-
s.add_dependency(%q<jeweler>, ["
|
99
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
100
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
101
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
102
102
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
103
|
-
s.add_dependency(%q<vcr>, ["
|
104
|
-
s.add_dependency(%q<webmock>, ["
|
103
|
+
s.add_dependency(%q<vcr>, ["~> 1.11.3"])
|
104
|
+
s.add_dependency(%q<webmock>, ["~> 1.7.0"])
|
105
105
|
s.add_dependency(%q<timecop>, [">= 0"])
|
106
106
|
end
|
107
107
|
else
|
@@ -110,12 +110,12 @@ Gem::Specification.new do |s|
|
|
110
110
|
s.add_dependency(%q<multi_xml>, [">= 0"])
|
111
111
|
s.add_dependency(%q<nokogiri>, [">= 0"])
|
112
112
|
s.add_dependency(%q<minitest>, [">= 0"])
|
113
|
-
s.add_dependency(%q<yard>, ["
|
114
|
-
s.add_dependency(%q<bundler>, ["
|
115
|
-
s.add_dependency(%q<jeweler>, ["
|
113
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
114
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
115
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
116
116
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
117
|
-
s.add_dependency(%q<vcr>, ["
|
118
|
-
s.add_dependency(%q<webmock>, ["
|
117
|
+
s.add_dependency(%q<vcr>, ["~> 1.11.3"])
|
118
|
+
s.add_dependency(%q<webmock>, ["~> 1.7.0"])
|
119
119
|
s.add_dependency(%q<timecop>, [">= 0"])
|
120
120
|
end
|
121
121
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
3
|
require 'faraday'
|
4
|
-
require '
|
5
|
-
require '
|
6
|
-
require '
|
4
|
+
require 'faraday_middleware/response/parse_xml'
|
5
|
+
require 'faraday_middleware/request/cloudfront_signer'
|
6
|
+
require 'faraday_middleware/request/xml_content_type.rb'
|
7
7
|
|
8
8
|
class Cloudfront
|
9
9
|
module Connection
|
@@ -11,9 +11,9 @@ class Cloudfront
|
|
11
11
|
|
12
12
|
def build_connection(key_id, key_secret)
|
13
13
|
Faraday::Connection.new(HOST) do |builder|
|
14
|
-
builder.use
|
15
|
-
builder.use
|
16
|
-
builder.use
|
14
|
+
builder.use FaradayMiddleware::CloudfrontSigner, key_id, key_secret
|
15
|
+
builder.use FaradayMiddleware::XmlContentType
|
16
|
+
builder.use FaradayMiddleware::ParseXml
|
17
17
|
|
18
18
|
# Used for debug purpose only.
|
19
19
|
# builder.use Faraday::Response::Logger
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudfront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.1'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -96,49 +96,49 @@ dependencies:
|
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - ! '>='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0
|
101
|
+
version: '0'
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0
|
109
|
+
version: '0'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: bundler
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ! '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: jeweler
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
131
|
-
- -
|
131
|
+
- - ! '>='
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
133
|
+
version: '0'
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
none: false
|
138
138
|
requirements:
|
139
|
-
- -
|
139
|
+
- - ! '>='
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: '0'
|
142
142
|
- !ruby/object:Gem::Dependency
|
143
143
|
name: simplecov
|
144
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,33 +160,33 @@ dependencies:
|
|
160
160
|
requirement: !ruby/object:Gem::Requirement
|
161
161
|
none: false
|
162
162
|
requirements:
|
163
|
-
- -
|
163
|
+
- - ~>
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
165
|
+
version: 1.11.3
|
166
166
|
type: :development
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
none: false
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ~>
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 1.11.3
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: webmock
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
177
177
|
none: false
|
178
178
|
requirements:
|
179
|
-
- -
|
179
|
+
- - ~>
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
181
|
+
version: 1.7.0
|
182
182
|
type: :development
|
183
183
|
prerelease: false
|
184
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
185
|
none: false
|
186
186
|
requirements:
|
187
|
-
- -
|
187
|
+
- - ~>
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version:
|
189
|
+
version: 1.7.0
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: timecop
|
192
192
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,8 +260,8 @@ files:
|
|
260
260
|
- lib/cloudfront/utils/string.rb
|
261
261
|
- lib/cloudfront/utils/util.rb
|
262
262
|
- lib/cloudfront/utils/xml_serializer.rb
|
263
|
-
- lib/
|
264
|
-
- lib/
|
263
|
+
- lib/faraday_middleware/request/cloudfront_signer.rb
|
264
|
+
- lib/faraday_middleware/request/xml_content_type.rb
|
265
265
|
homepage: https://github.com/Belkacem/cloudfront
|
266
266
|
licenses:
|
267
267
|
- MIT
|
@@ -277,7 +277,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
277
277
|
version: '0'
|
278
278
|
segments:
|
279
279
|
- 0
|
280
|
-
hash:
|
280
|
+
hash: 1341546795153992287
|
281
281
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
282
|
none: false
|
283
283
|
requirements:
|