faraday_middleware-aws-sigv4 0.2.5 → 0.3.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
  SHA256:
3
- metadata.gz: 1a77ee4938b7453624b76b5dcc23ac5db5150c4353a7001f361d6cfb003ab251
4
- data.tar.gz: e207124854d90e975b1bc72123436457008ce8cd8705ae61249d4ef542a38ac5
3
+ metadata.gz: 9dbe0c6ca7fd755540b7c4c0a282c33101c49697f856336e02d9218c5b885047
4
+ data.tar.gz: 9f0846fb0a682f9675de3c9bcf3354fc2f9e870f0e06562a2e87591e16bbe3a7
5
5
  SHA512:
6
- metadata.gz: 61858593f11565d44f1fb51fd8f054edb1b815fcf5572513fcd4dedf7e6aec81d76be57209611799b1e3c81814dc9254566c1911d69ccec12cd41c3784cf8b0e
7
- data.tar.gz: 38829e809f60b9b60a430aea6cf91e3ff7f1b3c678b416ea301265b0bc4d8f19ef656362e7ef5b6462a4322e91222fe53c90abc2159bd08159bdcd111aeb3b78
6
+ metadata.gz: 56d40a5c79b056f329db7c5a59f382378e8b09994a4b1a9031ce7d6fe72f308088d776dc410685c925a528ed3f03ac9dca5fa5ca1adeb52f1eefc39128479a75
7
+ data.tar.gz: 587bafa4f2cb5412d00ddaf606f23ea52b916fa0de7e0d75d930ef4e93b82c10765ab5245e6135c04e44618ece1f78953da2923523da4803a6c029a71a014e30
data/.travis.yml CHANGED
@@ -2,7 +2,6 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.2.10
6
5
  - 2.3.8
7
6
  - 2.4.7
8
7
  - 2.5.6
@@ -10,9 +9,5 @@ rvm:
10
9
  script:
11
10
  - bundle exec rake
12
11
  gemfile:
13
- - gemfiles/faraday_0.9.gemfile
14
- - gemfiles/faraday_0.10.gemfile
15
- - gemfiles/faraday_0.11.gemfile
16
- - gemfiles/faraday_0.12.gemfile
17
- - gemfiles/faraday_0.13.gemfile
18
- - gemfiles/faraday_0.14.gemfile
12
+ - gemfiles/faraday_0.15.gemfile
13
+ - gemfiles/faraday_0.16.gemfile
data/Appraisals CHANGED
@@ -1,23 +1,7 @@
1
- appraise 'faraday-0.9' do
2
- gem 'faraday', '~> 0.9.0'
1
+ appraise 'faraday-0.15' do
2
+ gem 'faraday', '~> 0.15.0'
3
3
  end
4
4
 
5
- appraise 'faraday-0.10' do
6
- gem 'faraday', '~> 0.10.0'
7
- end
8
-
9
- appraise 'faraday-0.11' do
10
- gem 'faraday', '~> 0.11.0'
11
- end
12
-
13
- appraise 'faraday-0.12' do
14
- gem 'faraday', '~> 0.12.0'
15
- end
16
-
17
- appraise 'faraday-0.13' do
18
- gem 'faraday', '~> 0.13.0'
19
- end
20
-
21
- appraise 'faraday-0.14' do
22
- gem 'faraday', '~> 0.14.0'
5
+ appraise 'faraday-0.16' do
6
+ gem 'faraday', '~> 0.16.0'
23
7
  end
data/README.md CHANGED
@@ -6,6 +6,12 @@
6
6
  [![Build Status](https://travis-ci.org/winebarrel/faraday_middleware-aws-sigv4.svg?branch=master)](https://travis-ci.org/winebarrel/faraday_middleware-aws-sigv4)
7
7
  [![Coverage Status](https://coveralls.io/repos/github/winebarrel/faraday_middleware-aws-sigv4/badge.svg?branch=master)](https://coveralls.io/github/winebarrel/faraday_middleware-aws-sigv4?branch=master)
8
8
 
9
+ * `faraday_middleware-aws-sigv4 < 0.3.0`
10
+ * `faraday < 0.15`
11
+ * `faraday_middleware-aws-sigv4 >= 0.3.0`
12
+ * `ruby >= 2.3`
13
+ * `faraday >= 0.15`
14
+
9
15
  ## Installation
10
16
 
11
17
  Add this line to your application's Gemfile:
@@ -62,6 +68,14 @@ pp res.body
62
68
 
63
69
  If you previously provided the `service_name` option, you need to rename it `service`
64
70
 
71
+ ## Test
72
+
73
+ ```sh
74
+ bundle install
75
+ bundle exec appraisal install
76
+ bundle exec appraisal faraday-0.16 rake
77
+ ```
78
+
65
79
  ## Related Links
66
80
 
67
81
  * http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'faraday_middleware-aws-sigv4'
7
- spec.version = '0.2.5'
7
+ spec.version = '0.3.0'
8
8
  spec.authors = ['Genki Sugawara']
9
9
  spec.email = ['sugawara@cookpad.com']
10
10
 
@@ -20,7 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_dependency 'faraday', '>= 0.9', '< 0.15'
23
+ spec.required_ruby_version = '>= 2.3'
24
+
25
+ spec.add_dependency 'faraday', '>= 0.15'
24
26
  spec.add_dependency 'aws-sigv4', '~> 1.0'
25
27
 
26
28
  spec.add_development_dependency 'faraday_middleware'
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "faraday", "~> 0.10.0"
5
+ gem "faraday", "~> 0.15.0"
6
6
 
7
7
  gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "faraday", "~> 0.11.0"
5
+ gem "faraday", "~> 0.16.0"
6
6
 
7
7
  gemspec path: "../"
@@ -21,7 +21,9 @@ class FaradayMiddleware::AwsSigV4 < Faraday::Middleware
21
21
  request = build_aws_sigv4_request(env)
22
22
  signature = @signer.sign_request(request)
23
23
 
24
- env.request_headers.update(signature.headers)
24
+ signature.headers.each do |name, value|
25
+ env.request_headers[name] = value
26
+ end
25
27
  end
26
28
 
27
29
  def build_aws_sigv4_request(env)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-aws-sigv4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
@@ -15,9 +15,6 @@ dependencies:
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0.9'
20
- - - "<"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '0.15'
23
20
  type: :runtime
@@ -25,9 +22,6 @@ dependencies:
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '0.9'
30
- - - "<"
31
25
  - !ruby/object:Gem::Version
32
26
  version: '0.15'
33
27
  - !ruby/object:Gem::Dependency
@@ -177,12 +171,8 @@ files:
177
171
  - bin/setup
178
172
  - faraday_middleware-aws-sigv4.gemspec
179
173
  - gemfiles/.bundle/config
180
- - gemfiles/faraday_0.10.gemfile
181
- - gemfiles/faraday_0.11.gemfile
182
- - gemfiles/faraday_0.12.gemfile
183
- - gemfiles/faraday_0.13.gemfile
184
- - gemfiles/faraday_0.14.gemfile
185
- - gemfiles/faraday_0.9.gemfile
174
+ - gemfiles/faraday_0.15.gemfile
175
+ - gemfiles/faraday_0.16.gemfile
186
176
  - lib/faraday_middleware/aws_sigv4.rb
187
177
  - lib/faraday_middleware/request/aws_sigv4.rb
188
178
  - lib/faraday_middleware/request/aws_sigv4_util.rb
@@ -198,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
188
  requirements:
199
189
  - - ">="
200
190
  - !ruby/object:Gem::Version
201
- version: '0'
191
+ version: '2.3'
202
192
  required_rubygems_version: !ruby/object:Gem::Requirement
203
193
  requirements:
204
194
  - - ">="
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "faraday", "~> 0.12.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "faraday", "~> 0.13.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "faraday", "~> 0.14.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "faraday", "~> 0.9.0"
6
-
7
- gemspec path: "../"