faraday_middleware-aws-sigv4 0.2.3 → 0.2.4

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: 5b0b86530ec40ded5adc4b94c7729bc616f6fc33
4
- data.tar.gz: 9aac6dda3371ac89267185863ef73be361b3863b
3
+ metadata.gz: ae42ac4e7548669be9c22cb4b6eac908ed0d58e6
4
+ data.tar.gz: 8e5c4ef7612c008c528a20f5a635d50054625066
5
5
  SHA512:
6
- metadata.gz: 536275f710e33b71e973266f3956c5a9d0b7072d2de0e78606543cef627cff8acbe7d07953e454eee7a6f807a18396312700bc7472a880b72545bb8bcc5733fe
7
- data.tar.gz: d6dd6893485857cfd9b51f46ac7a5d00ac204842ab8e97b8e7958e03c4f1f7d1a987d3c7f6e046a53da7c81d273d52a5015b64f2f3a63cd41d21144d8aed231e
6
+ metadata.gz: 125db0938c9de262473db0f91eb50d5ceed97cf39935952ea245fef02613411c42f19c02c642126fd6a3b3c2e52e771ae46a16be5ad213cdfdb39ec9883c0591
7
+ data.tar.gz: f4c359a15af49de3cd1f68b4dd95845a6304834228d2c167445261c1ea88cade914a21ca7fd6ab61f9403c353afeb31d7383a91f861a17daffcb3b7adf57bd16
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.gitignore CHANGED
@@ -8,6 +8,7 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  test.rb
11
+ /gemfiles/*.lock
11
12
 
12
13
  # rspec failure tracking
13
14
  .rspec_status
@@ -0,0 +1,4 @@
1
+ SimpleCov.start do
2
+ # exclude directories and files
3
+ add_filter "/spec/"
4
+ end
@@ -2,7 +2,19 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.2.6
6
- - 2.3.4
7
- - 2.4.1
8
- before_install: gem install bundler -v 1.14.3
5
+ - 2.1.10
6
+ - 2.2.9
7
+ - 2.3.6
8
+ - 2.4.3
9
+ - 2.5.0
10
+ before_install:
11
+ - gem update --system
12
+ script:
13
+ - bundle exec rake
14
+ gemfile:
15
+ - gemfiles/faraday_0.9.gemfile
16
+ - gemfiles/faraday_0.10.gemfile
17
+ - gemfiles/faraday_0.11.gemfile
18
+ - gemfiles/faraday_0.12.gemfile
19
+ - gemfiles/faraday_0.13.gemfile
20
+ - gemfiles/faraday_0.14.gemfile
@@ -0,0 +1,23 @@
1
+ appraise 'faraday-0.9' do
2
+ gem 'faraday', '~> 0.9.0'
3
+ end
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'
23
+ end
data/README.md CHANGED
@@ -38,7 +38,7 @@ conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |farada
38
38
  secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
39
39
  # see http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
40
40
 
41
- faraday.response :json, :content_type => /\bjson\b/
41
+ faraday.response :json, content_type: /\bjson\b/
42
42
  faraday.response :raise_error
43
43
 
44
44
  faraday.adapter Faraday.default_adapter
@@ -58,6 +58,10 @@ pp res.body
58
58
  # "throttleSettings"=>{"rateLimit"=>10000.0, "burstLimit"=>5000}}
59
59
  ```
60
60
 
61
+ ## Upgrading from `faraday_middleware-aws-signers-v4`
62
+
63
+ If you previously provided the `service_name` option, you need to rename it `service`
64
+
61
65
  ## Related Links
62
66
 
63
67
  * 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.3'
7
+ spec.version = '0.2.4'
8
8
  spec.authors = ['Genki Sugawara']
9
9
  spec.email = ['sugawara@cookpad.com']
10
10
 
@@ -20,7 +20,7 @@ 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.13'
23
+ spec.add_dependency 'faraday', '>= 0.9'
24
24
  spec.add_dependency 'aws-sigv4', '~> 1.0'
25
25
 
26
26
  spec.add_development_dependency 'faraday_middleware'
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'timecop'
31
31
  spec.add_development_dependency 'coveralls'
32
32
  spec.add_development_dependency 'aws-sdk-core', '~> 3.0'
33
+ spec.add_development_dependency 'appraisal', '>= 2.2'
33
34
  end
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 0.10.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 0.11.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 0.12.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 0.13.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 0.14.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 0.9.0"
6
+
7
+ gemspec path: "../"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-aws-sigv4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.13'
19
+ version: '0.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0.13'
26
+ version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sigv4
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '3.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: appraisal
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '2.2'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '2.2'
139
153
  description: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
140
154
  email:
141
155
  - sugawara@cookpad.com
@@ -143,9 +157,12 @@ executables: []
143
157
  extensions: []
144
158
  extra_rdoc_files: []
145
159
  files:
160
+ - ".coveralls.yml"
146
161
  - ".gitignore"
147
162
  - ".rspec"
163
+ - ".simplecov"
148
164
  - ".travis.yml"
165
+ - Appraisals
149
166
  - Gemfile
150
167
  - LICENSE.txt
151
168
  - README.md
@@ -153,6 +170,13 @@ files:
153
170
  - bin/console
154
171
  - bin/setup
155
172
  - faraday_middleware-aws-sigv4.gemspec
173
+ - gemfiles/.bundle/config
174
+ - gemfiles/faraday_0.10.gemfile
175
+ - gemfiles/faraday_0.11.gemfile
176
+ - gemfiles/faraday_0.12.gemfile
177
+ - gemfiles/faraday_0.13.gemfile
178
+ - gemfiles/faraday_0.14.gemfile
179
+ - gemfiles/faraday_0.9.gemfile
156
180
  - lib/faraday_middleware/aws_sigv4.rb
157
181
  - lib/faraday_middleware/request/aws_sigv4.rb
158
182
  - lib/faraday_middleware/request/aws_sigv4_util.rb