faraday_middleware-aws-sigv4 0.3.0 → 1.0.1

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: 9dbe0c6ca7fd755540b7c4c0a282c33101c49697f856336e02d9218c5b885047
4
- data.tar.gz: 9f0846fb0a682f9675de3c9bcf3354fc2f9e870f0e06562a2e87591e16bbe3a7
3
+ metadata.gz: 1279ad2732579dde393c8914342b55a4aa2891ea6ff56103b3758c8b0d052f33
4
+ data.tar.gz: b0ec1dd7628a34807b8bc17120b9cb8407f3478d42c784f0aa986fb63463e544
5
5
  SHA512:
6
- metadata.gz: 56d40a5c79b056f329db7c5a59f382378e8b09994a4b1a9031ce7d6fe72f308088d776dc410685c925a528ed3f03ac9dca5fa5ca1adeb52f1eefc39128479a75
7
- data.tar.gz: 587bafa4f2cb5412d00ddaf606f23ea52b916fa0de7e0d75d930ef4e93b82c10765ab5245e6135c04e44618ece1f78953da2923523da4803a6c029a71a014e30
6
+ metadata.gz: c3c4df5e1c077662c2fd970c8b5d8e973e6b69519b186d16b861eaa0295eab09d418697c4a43abc902a664a929676777e5aea992a7430051fe002170c1a198ca
7
+ data.tar.gz: dbb9ed948c26ce29e0a3c9e35308d4894f1f812c28901247dddd7695b65f1f9d0184ee0f07d3fefb65f95ed466362be52d9efed5db998ff810364ef24b7ac58c
@@ -0,0 +1,55 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ include:
14
+ - ruby: 2.6
15
+ gemfile: gemfiles/faraday_2.0.gemfile
16
+ - ruby: 2.7
17
+ gemfile: gemfiles/faraday_2.0.gemfile
18
+ - ruby: 3.0
19
+ gemfile: gemfiles/faraday_2.0.gemfile
20
+ - ruby: 3.1
21
+ gemfile: gemfiles/faraday_2.0.gemfile
22
+ env:
23
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: ${{ matrix.ruby }}
29
+ - uses: actions/cache@v2
30
+ with:
31
+ path: gemfiles/vendor/bundle
32
+ key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles('faraday_middleware-aws-sigv4.gemspec', '**/Gemfile', '${{ matrix.gemfile }}') }}
33
+ restore-keys: |
34
+ ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.gemfile }}-
35
+ - name: Setup dependencies
36
+ run: |
37
+ bundle config path vendor/bundle
38
+ bundle install
39
+ - name: Run tests
40
+ run: bundle exec rake
41
+ - name: Coveralls Parallel
42
+ uses: coverallsapp/github-action@v1.1.2
43
+ with:
44
+ github-token: ${{ secrets.GITHUB_TOKEN }}
45
+ flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }}
46
+ parallel: true
47
+ finish:
48
+ needs: build
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - name: Coveralls Finished
52
+ uses: coverallsapp/github-action@v1.1.2
53
+ with:
54
+ github-token: ${{ secrets.GITHUB_TOKEN }}
55
+ parallel-finished: true
data/.rubocop.yml ADDED
@@ -0,0 +1,27 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+ AllCops:
5
+ Exclude:
6
+ - "gemfiles/**/*"
7
+ TargetRubyVersion: 2.5
8
+ NewCops: enable
9
+ Bundler/OrderedGems:
10
+ Include:
11
+ - "Appraisals"
12
+ Metrics/BlockLength:
13
+ Enabled: false
14
+ Layout/LineLength:
15
+ Enabled: false
16
+ Metrics/MethodLength:
17
+ Enabled: false
18
+ Style/Documentation:
19
+ Enabled: false
20
+ RSpec/ExampleLength:
21
+ Enabled: false
22
+ RSpec/MultipleExpectations:
23
+ Enabled: false
24
+ RSpec/MultipleMemoizedHelpers:
25
+ Enabled: false
26
+ RSpec/ContextWording:
27
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-3.1.2
data/.simplecov CHANGED
@@ -1,4 +1,4 @@
1
- SimpleCov.start do
2
- # exclude directories and files
3
- add_filter "/spec/"
4
- end
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.add_filter 'spec'
4
+ SimpleCov.start 'rails' unless SimpleCov.running
data/Appraisals CHANGED
@@ -1,7 +1,5 @@
1
- appraise 'faraday-0.15' do
2
- gem 'faraday', '~> 0.15.0'
3
- end
1
+ # frozen_string_literal: true
4
2
 
5
- appraise 'faraday-0.16' do
6
- gem 'faraday', '~> 0.16.0'
3
+ appraise 'faraday-2.0' do
4
+ gem 'faraday', '~> 2.0.0'
7
5
  end
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in faraday_middleware-aws-sigv4.gemspec
data/README.md CHANGED
@@ -3,14 +3,18 @@
3
3
  [Faraday](https://github.com/lostisland/faraday) middleware for AWS Signature Version 4 using [aws-sigv4](https://rubygems.org/gems/aws-sigv4).
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/faraday_middleware-aws-sigv4.svg)](https://badge.fury.io/rb/faraday_middleware-aws-sigv4)
6
- [![Build Status](https://travis-ci.org/winebarrel/faraday_middleware-aws-sigv4.svg?branch=master)](https://travis-ci.org/winebarrel/faraday_middleware-aws-sigv4)
6
+ [![Build Status](https://github.com/winebarrel/faraday_middleware-aws-sigv4/workflows/test/badge.svg?branch=master)](https://github.com/winebarrel/faraday_middleware-aws-sigv4/actions)
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`
9
+ ## Required dependency version
10
+
11
+ | version | ruby | faraday |
12
+ |------------|----------|-----------|
13
+ | `>= 1.0.0` | `>= 2.5` | `>= 2.0` |
14
+ | `>= 0.6.0` | `>= 2.4` | `>= 1.8` |
15
+ | `>= 0.5.0` | `>= 2.4` | `>= 0.15` |
16
+ | `>= 0.3.0` | `>= 2.3` | `>= 0.15` |
17
+ | `< 0.3.0` | - | `< 0.15` |
14
18
 
15
19
  ## Installation
16
20
 
@@ -31,8 +35,6 @@ Or install it yourself as:
31
35
  ## Usage
32
36
 
33
37
  ```ruby
34
- # `gem install faraday_middleware` is required.
35
- require 'faraday_middleware'
36
38
  require 'faraday_middleware/aws_sigv4'
37
39
  require 'pp'
38
40
 
@@ -45,8 +47,9 @@ conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |farada
45
47
  # see http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
46
48
 
47
49
  faraday.response :json, content_type: /\bjson\b/
48
- faraday.response :raise_error
49
50
 
51
+ # NOTE: If you need to send case sensitive headers like `x-amz-access-token` in `SP API`.
52
+ # cf. https://github.com/lostisland/faraday/issues/747#issuecomment-439864181
50
53
  faraday.adapter Faraday.default_adapter
51
54
  end
52
55
 
@@ -73,10 +76,9 @@ If you previously provided the `service_name` option, you need to rename it `ser
73
76
  ```sh
74
77
  bundle install
75
78
  bundle exec appraisal install
76
- bundle exec appraisal faraday-0.16 rake
79
+ bundle exec appraisal faraday-2.0 rake
77
80
  ```
78
81
 
79
82
  ## Related Links
80
83
 
81
84
  * http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
82
- * https://github.com/winebarrel/faraday_middleware-aws-signers-v4 (aws-sdk-v2 version)
data/Rakefile CHANGED
@@ -1,6 +1,13 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
3
6
 
4
7
  RSpec::Core::RakeTask.new(:spec)
5
8
 
6
- task :default => :spec
9
+ RuboCop::RakeTask.new do |task|
10
+ task.options = %w[-c .rubocop.yml]
11
+ end
12
+
13
+ task default: %i[rubocop spec]
@@ -1,15 +1,16 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
 
5
6
  Gem::Specification.new do |spec|
6
7
  spec.name = 'faraday_middleware-aws-sigv4'
7
- spec.version = '0.3.0'
8
+ spec.version = '1.0.1'
8
9
  spec.authors = ['Genki Sugawara']
9
- spec.email = ['sugawara@cookpad.com']
10
+ spec.email = ['sugawara@winebarrel.jp']
10
11
 
11
- spec.summary = %q{Faraday middleware for AWS Signature Version 4 using aws-sigv4.}
12
- spec.description = %q{Faraday middleware for AWS Signature Version 4 using aws-sigv4.}
12
+ spec.summary = 'Faraday middleware for AWS Signature Version 4 using aws-sigv4.'
13
+ spec.description = 'Faraday middleware for AWS Signature Version 4 using aws-sigv4.'
13
14
  spec.homepage = 'https://github.com/winebarrel/faraday_middleware-aws-sigv4'
14
15
  spec.license = 'MIT'
15
16
 
@@ -20,17 +21,23 @@ Gem::Specification.new do |spec|
20
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
22
  spec.require_paths = ['lib']
22
23
 
23
- spec.required_ruby_version = '>= 2.3'
24
+ spec.required_ruby_version = '>= 2.5'
24
25
 
25
- spec.add_dependency 'faraday', '>= 0.15'
26
26
  spec.add_dependency 'aws-sigv4', '~> 1.0'
27
+ spec.add_dependency 'faraday', '>= 2.0', '< 3'
27
28
 
28
- spec.add_development_dependency 'faraday_middleware'
29
+ spec.add_development_dependency 'appraisal', '>= 2.2'
30
+ spec.add_development_dependency 'aws-sdk-core', '>= 3.124.0'
29
31
  spec.add_development_dependency 'bundler'
30
32
  spec.add_development_dependency 'rake'
31
33
  spec.add_development_dependency 'rspec', '~> 3.0'
34
+ spec.add_development_dependency 'rubocop', '>= 1.36.0'
35
+ spec.add_development_dependency 'rubocop-rake'
36
+ spec.add_development_dependency 'rubocop-rspec'
37
+ spec.add_development_dependency 'simplecov'
38
+ spec.add_development_dependency 'simplecov-lcov'
32
39
  spec.add_development_dependency 'timecop'
33
- spec.add_development_dependency 'coveralls'
34
- spec.add_development_dependency 'aws-sdk-core', '~> 3.14.0'
35
- spec.add_development_dependency 'appraisal', '>= 2.2'
40
+ spec.metadata = {
41
+ 'rubygems_mfa_required' => 'true'
42
+ }
36
43
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "faraday", "~> 0.15.0"
5
+ gem "faraday", "~> 2.0.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'faraday'
4
+ require 'faraday_middleware/request/aws_sigv4'
2
5
 
3
6
  module FaradayMiddleware
4
- autoload :AwsSigV4, 'faraday_middleware/request/aws_sigv4'
5
- Faraday::Request.register_middleware aws_sigv4: lambda { AwsSigV4 }
7
+ Faraday::Request.register_middleware aws_sigv4: FaradayMiddleware::AwsSigV4
6
8
  end
@@ -1,37 +1,41 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'aws-sigv4'
2
4
  require 'faraday_middleware/request/aws_sigv4_util'
3
5
 
4
- class FaradayMiddleware::AwsSigV4 < Faraday::Middleware
5
- include FaradayMiddleware::AwsSigV4Util
6
+ module FaradayMiddleware
7
+ class AwsSigV4 < Faraday::Middleware
8
+ include FaradayMiddleware::AwsSigV4Util
6
9
 
7
- def initialize(app, options = nil)
8
- super(app)
9
- @signer = Aws::Sigv4::Signer.new(options)
10
- @options = options
11
- end
10
+ def initialize(app, options = nil)
11
+ super(app)
12
+ @signer = Aws::Sigv4::Signer.new(options)
13
+ @options = options
14
+ end
12
15
 
13
- def call(env)
14
- sign!(env)
15
- @app.call(env)
16
- end
16
+ def call(env)
17
+ sign!(env)
18
+ @app.call(env)
19
+ end
17
20
 
18
- private
21
+ private
19
22
 
20
- def sign!(env)
21
- request = build_aws_sigv4_request(env)
22
- signature = @signer.sign_request(request)
23
+ def sign!(env)
24
+ request = build_aws_sigv4_request(env)
25
+ signature = @signer.sign_request(request)
23
26
 
24
- signature.headers.each do |name, value|
25
- env.request_headers[name] = value
27
+ signature.headers.each do |name, value|
28
+ env.request_headers[name] = value
29
+ end
26
30
  end
27
- end
28
31
 
29
- def build_aws_sigv4_request(env)
30
- {
31
- http_method: env.method.to_s,
32
- url: seahorse_encode_query(env.url),
33
- headers: env.request_headers,
34
- body: env.body,
35
- }
32
+ def build_aws_sigv4_request(env)
33
+ {
34
+ http_method: env.method.to_s,
35
+ url: seahorse_encode_query(env.url),
36
+ headers: env.request_headers,
37
+ body: env.body
38
+ }
39
+ end
36
40
  end
37
41
  end
@@ -1,32 +1,36 @@
1
- module FaradayMiddleware::AwsSigV4Util
2
- def seahorse_encode_query(url)
3
- return url unless url.query
1
+ # frozen_string_literal: true
4
2
 
5
- params = URI.decode_www_form(url.query)
3
+ module FaradayMiddleware
4
+ module AwsSigV4Util
5
+ def seahorse_encode_query(url)
6
+ return url unless url.query
6
7
 
7
- if params.any? {|_, v| v[?\s] }
8
- url = url.dup
9
- url.query = seahorse_encode_www_form(params)
10
- end
8
+ params = URI.decode_www_form(url.query)
11
9
 
12
- url
13
- end
10
+ if params.any? { |_, v| v["\s"] }
11
+ url = url.dup
12
+ url.query = seahorse_encode_www_form(params)
13
+ end
14
14
 
15
- def seahorse_encode_www_form(params)
16
- params.flat_map {|key, value|
17
- encoded_key = URI.encode_www_form_component(key)
15
+ url
16
+ end
18
17
 
19
- if value.nil?
20
- encoded_key
21
- else
22
- Array(value).map do |v|
23
- if v.nil?
24
- # nothing to do
25
- else
26
- encoded_key + '=' + Aws::Sigv4::Signer.uri_escape(v)
18
+ def seahorse_encode_www_form(params)
19
+ params.flat_map do |key, value|
20
+ encoded_key = URI.encode_www_form_component(key)
21
+
22
+ if value.nil?
23
+ encoded_key
24
+ else
25
+ Array(value).map do |v|
26
+ if v.nil?
27
+ # nothing to do
28
+ else
29
+ "#{encoded_key}=#{Aws::Sigv4::Signer.uri_escape(v)}"
30
+ end
27
31
  end
28
32
  end
29
- end
30
- }.join(?&)
33
+ end.join('&')
34
+ end
31
35
  end
32
36
  end
metadata CHANGED
@@ -1,57 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-aws-sigv4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2022-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-sigv4
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: faraday
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: '0.15'
33
+ version: '2.0'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
20
37
  type: :runtime
21
38
  prerelease: false
22
39
  version_requirements: !ruby/object:Gem::Requirement
23
40
  requirements:
24
41
  - - ">="
25
42
  - !ruby/object:Gem::Version
26
- version: '0.15'
43
+ version: '2.0'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
27
47
  - !ruby/object:Gem::Dependency
28
- name: aws-sigv4
48
+ name: appraisal
29
49
  requirement: !ruby/object:Gem::Requirement
30
50
  requirements:
31
- - - "~>"
51
+ - - ">="
32
52
  - !ruby/object:Gem::Version
33
- version: '1.0'
34
- type: :runtime
53
+ version: '2.2'
54
+ type: :development
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
37
57
  requirements:
38
- - - "~>"
58
+ - - ">="
39
59
  - !ruby/object:Gem::Version
40
- version: '1.0'
60
+ version: '2.2'
41
61
  - !ruby/object:Gem::Dependency
42
- name: faraday_middleware
62
+ name: aws-sdk-core
43
63
  requirement: !ruby/object:Gem::Requirement
44
64
  requirements:
45
65
  - - ">="
46
66
  - !ruby/object:Gem::Version
47
- version: '0'
67
+ version: 3.124.0
48
68
  type: :development
49
69
  prerelease: false
50
70
  version_requirements: !ruby/object:Gem::Requirement
51
71
  requirements:
52
72
  - - ">="
53
73
  - !ruby/object:Gem::Version
54
- version: '0'
74
+ version: 3.124.0
55
75
  - !ruby/object:Gem::Dependency
56
76
  name: bundler
57
77
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +115,21 @@ dependencies:
95
115
  - !ruby/object:Gem::Version
96
116
  version: '3.0'
97
117
  - !ruby/object:Gem::Dependency
98
- name: timecop
118
+ name: rubocop
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: 1.36.0
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: 1.36.0
131
+ - !ruby/object:Gem::Dependency
132
+ name: rubocop-rake
99
133
  requirement: !ruby/object:Gem::Requirement
100
134
  requirements:
101
135
  - - ">="
@@ -109,7 +143,7 @@ dependencies:
109
143
  - !ruby/object:Gem::Version
110
144
  version: '0'
111
145
  - !ruby/object:Gem::Dependency
112
- name: coveralls
146
+ name: rubocop-rspec
113
147
  requirement: !ruby/object:Gem::Requirement
114
148
  requirements:
115
149
  - - ">="
@@ -123,64 +157,77 @@ dependencies:
123
157
  - !ruby/object:Gem::Version
124
158
  version: '0'
125
159
  - !ruby/object:Gem::Dependency
126
- name: aws-sdk-core
160
+ name: simplecov
127
161
  requirement: !ruby/object:Gem::Requirement
128
162
  requirements:
129
- - - "~>"
163
+ - - ">="
130
164
  - !ruby/object:Gem::Version
131
- version: 3.14.0
165
+ version: '0'
132
166
  type: :development
133
167
  prerelease: false
134
168
  version_requirements: !ruby/object:Gem::Requirement
135
169
  requirements:
136
- - - "~>"
170
+ - - ">="
137
171
  - !ruby/object:Gem::Version
138
- version: 3.14.0
172
+ version: '0'
139
173
  - !ruby/object:Gem::Dependency
140
- name: appraisal
174
+ name: simplecov-lcov
141
175
  requirement: !ruby/object:Gem::Requirement
142
176
  requirements:
143
177
  - - ">="
144
178
  - !ruby/object:Gem::Version
145
- version: '2.2'
179
+ version: '0'
146
180
  type: :development
147
181
  prerelease: false
148
182
  version_requirements: !ruby/object:Gem::Requirement
149
183
  requirements:
150
184
  - - ">="
151
185
  - !ruby/object:Gem::Version
152
- version: '2.2'
186
+ version: '0'
187
+ - !ruby/object:Gem::Dependency
188
+ name: timecop
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
153
201
  description: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
154
202
  email:
155
- - sugawara@cookpad.com
203
+ - sugawara@winebarrel.jp
156
204
  executables: []
157
205
  extensions: []
158
206
  extra_rdoc_files: []
159
207
  files:
160
- - ".coveralls.yml"
208
+ - ".github/workflows/test.yml"
161
209
  - ".gitignore"
162
210
  - ".rspec"
211
+ - ".rubocop.yml"
212
+ - ".ruby-version"
163
213
  - ".simplecov"
164
- - ".travis.yml"
165
214
  - Appraisals
166
215
  - Gemfile
167
216
  - LICENSE.txt
168
217
  - README.md
169
218
  - Rakefile
170
- - bin/console
171
- - bin/setup
172
219
  - faraday_middleware-aws-sigv4.gemspec
173
220
  - gemfiles/.bundle/config
174
- - gemfiles/faraday_0.15.gemfile
175
- - gemfiles/faraday_0.16.gemfile
221
+ - gemfiles/faraday_2.0.gemfile
176
222
  - lib/faraday_middleware/aws_sigv4.rb
177
223
  - lib/faraday_middleware/request/aws_sigv4.rb
178
224
  - lib/faraday_middleware/request/aws_sigv4_util.rb
179
225
  homepage: https://github.com/winebarrel/faraday_middleware-aws-sigv4
180
226
  licenses:
181
227
  - MIT
182
- metadata: {}
183
- post_install_message:
228
+ metadata:
229
+ rubygems_mfa_required: 'true'
230
+ post_install_message:
184
231
  rdoc_options: []
185
232
  require_paths:
186
233
  - lib
@@ -188,15 +235,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
235
  requirements:
189
236
  - - ">="
190
237
  - !ruby/object:Gem::Version
191
- version: '2.3'
238
+ version: '2.5'
192
239
  required_rubygems_version: !ruby/object:Gem::Requirement
193
240
  requirements:
194
241
  - - ">="
195
242
  - !ruby/object:Gem::Version
196
243
  version: '0'
197
244
  requirements: []
198
- rubygems_version: 3.0.3
199
- signing_key:
245
+ rubygems_version: 3.3.7
246
+ signing_key:
200
247
  specification_version: 4
201
248
  summary: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
202
249
  test_files: []
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- service_name: travis-ci
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.3.8
6
- - 2.4.7
7
- - 2.5.6
8
- - 2.6.4
9
- script:
10
- - bundle exec rake
11
- gemfile:
12
- - gemfiles/faraday_0.15.gemfile
13
- - gemfiles/faraday_0.16.gemfile
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "faraday_middleware/aws/sigv4"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "faraday", "~> 0.16.0"
6
-
7
- gemspec path: "../"