faraday_middleware-aws-sigv4 0.2.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/test.yml +59 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +16 -0
- data/.simplecov +6 -0
- data/Appraisals +29 -0
- data/Gemfile +2 -0
- data/README.md +27 -4
- data/Rakefile +8 -1
- data/faraday_middleware-aws-sigv4.gemspec +17 -9
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/faraday_0.15.gemfile +7 -0
- data/gemfiles/faraday_0.16.gemfile +7 -0
- data/gemfiles/faraday_0.17.gemfile +7 -0
- data/gemfiles/faraday_1.0.gemfile +7 -0
- data/gemfiles/faraday_1.1.gemfile +7 -0
- data/gemfiles/faraday_1.2.gemfile +7 -0
- data/gemfiles/faraday_1.3.gemfile +7 -0
- data/lib/faraday_middleware/aws_sigv4.rb +3 -1
- data/lib/faraday_middleware/request/aws_sigv4.rb +30 -24
- data/lib/faraday_middleware/request/aws_sigv4_util.rb +27 -23
- metadata +105 -27
- data/.travis.yml +0 -8
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e09732db4f0a13230a9c0cf1da3940aba5fa6f70d9ec1f6ccda9d12cfc1e81fa
|
4
|
+
data.tar.gz: f16d00f7a1a92babfb14ca2401335f75ff2f6d37096beb0451da4db14edef79b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a43623245d5ac14ad75c180ee0f7aff685e4a0cd5fb282730e453fb08363e89fe1a5781e186b55623451c2acf5c6a1132b749c27fd3a968c7641f914a5863e74
|
7
|
+
data.tar.gz: 23b6b71e035f9467dd97d6d82ee3a4aebe5e2502243c6d357da86fac4b51bb8901d686d54aa9438a24db1ba265bc671caa17148e563056314c17f864a0cb068e
|
@@ -0,0 +1,59 @@
|
|
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
|
+
ruby:
|
14
|
+
- 2.4
|
15
|
+
- 2.5
|
16
|
+
- 2.6
|
17
|
+
- 2.7
|
18
|
+
gemfile:
|
19
|
+
- gemfiles/faraday_0.15.gemfile
|
20
|
+
- gemfiles/faraday_0.16.gemfile
|
21
|
+
- gemfiles/faraday_0.17.gemfile
|
22
|
+
- gemfiles/faraday_1.0.gemfile
|
23
|
+
- gemfiles/faraday_1.1.gemfile
|
24
|
+
- gemfiles/faraday_1.2.gemfile
|
25
|
+
- gemfiles/faraday_1.3.gemfile
|
26
|
+
env:
|
27
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
28
|
+
steps:
|
29
|
+
- uses: actions/checkout@v2
|
30
|
+
- uses: ruby/setup-ruby@v1
|
31
|
+
with:
|
32
|
+
ruby-version: ${{ matrix.ruby }}
|
33
|
+
- uses: actions/cache@v2
|
34
|
+
with:
|
35
|
+
path: gemfiles/vendor/bundle
|
36
|
+
key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles('faraday_middleware-aws-sigv4.gemspec', '**/Gemfile', '${{ matrix.gemfile }}') }}
|
37
|
+
restore-keys: |
|
38
|
+
${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.gemfile }}-
|
39
|
+
- name: Setup dependencies
|
40
|
+
run: |
|
41
|
+
bundle config path vendor/bundle
|
42
|
+
bundle install
|
43
|
+
- name: Run tests
|
44
|
+
run: bundle exec rake
|
45
|
+
- name: Coveralls Parallel
|
46
|
+
uses: coverallsapp/github-action@v1.1.2
|
47
|
+
with:
|
48
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
49
|
+
flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }}
|
50
|
+
parallel: true
|
51
|
+
finish:
|
52
|
+
needs: build
|
53
|
+
runs-on: ubuntu-latest
|
54
|
+
steps:
|
55
|
+
- name: Coveralls Finished
|
56
|
+
uses: coverallsapp/github-action@v1.1.2
|
57
|
+
with:
|
58
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
59
|
+
parallel-finished: true
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- 'gemfiles/**/*'
|
4
|
+
TargetRubyVersion: 2.4
|
5
|
+
NewCops: enable
|
6
|
+
Bundler/OrderedGems:
|
7
|
+
Include:
|
8
|
+
- 'Appraisals'
|
9
|
+
Metrics/BlockLength:
|
10
|
+
Enabled: false
|
11
|
+
Layout/LineLength:
|
12
|
+
Enabled: false
|
13
|
+
Metrics/MethodLength:
|
14
|
+
Enabled: false
|
15
|
+
Style/Documentation:
|
16
|
+
Enabled: false
|
data/.simplecov
ADDED
data/Appraisals
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
appraise 'faraday-0.15' do
|
4
|
+
gem 'faraday', '~> 0.15.0'
|
5
|
+
end
|
6
|
+
|
7
|
+
appraise 'faraday-0.16' do
|
8
|
+
gem 'faraday', '~> 0.16.0'
|
9
|
+
end
|
10
|
+
|
11
|
+
appraise 'faraday-0.17' do
|
12
|
+
gem 'faraday', '~> 0.17.0'
|
13
|
+
end
|
14
|
+
|
15
|
+
appraise 'faraday-1.0' do
|
16
|
+
gem 'faraday', '~> 1.0.0'
|
17
|
+
end
|
18
|
+
|
19
|
+
appraise 'faraday-1.1' do
|
20
|
+
gem 'faraday', '~> 1.1.0'
|
21
|
+
end
|
22
|
+
|
23
|
+
appraise 'faraday-1.2' do
|
24
|
+
gem 'faraday', '~> 1.2.0'
|
25
|
+
end
|
26
|
+
|
27
|
+
appraise 'faraday-1.3' do
|
28
|
+
gem 'faraday', '~> 1.3.0'
|
29
|
+
end
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,9 +3,17 @@
|
|
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
|
-
|
6
|
+
![test](https://github.com/winebarrel/faraday_middleware-aws-sigv4/workflows/test/badge.svg)
|
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
|
+
* `faraday_middleware-aws-sigv4 >= 0.5.0`
|
15
|
+
* `ruby >= 2.4`
|
16
|
+
|
9
17
|
## Installation
|
10
18
|
|
11
19
|
Add this line to your application's Gemfile:
|
@@ -25,7 +33,8 @@ Or install it yourself as:
|
|
25
33
|
## Usage
|
26
34
|
|
27
35
|
```ruby
|
28
|
-
# `gem install faraday_middleware` is required.
|
36
|
+
# `gem install faraday_middleware` is required for this example.
|
37
|
+
# However, FaradayMiddleware::AwsSigV4 works without faraday_middleware.
|
29
38
|
require 'faraday_middleware'
|
30
39
|
require 'faraday_middleware/aws_sigv4'
|
31
40
|
require 'pp'
|
@@ -38,7 +47,10 @@ conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |farada
|
|
38
47
|
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
|
39
48
|
# see http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
|
40
49
|
|
41
|
-
|
50
|
+
# NOTE: The following middleware is from `faraday_middleware`
|
51
|
+
# cf. https://github.com/lostisland/faraday_middleware/blob/master/lib/faraday_middleware.rb
|
52
|
+
# **It is not an essential middleware to work.**
|
53
|
+
faraday.response :json, content_type: /\bjson\b/
|
42
54
|
faraday.response :raise_error
|
43
55
|
|
44
56
|
faraday.adapter Faraday.default_adapter
|
@@ -58,7 +70,18 @@ pp res.body
|
|
58
70
|
# "throttleSettings"=>{"rateLimit"=>10000.0, "burstLimit"=>5000}}
|
59
71
|
```
|
60
72
|
|
73
|
+
## Upgrading from `faraday_middleware-aws-signers-v4`
|
74
|
+
|
75
|
+
If you previously provided the `service_name` option, you need to rename it `service`
|
76
|
+
|
77
|
+
## Test
|
78
|
+
|
79
|
+
```sh
|
80
|
+
bundle install
|
81
|
+
bundle exec appraisal install
|
82
|
+
bundle exec appraisal faraday-0.16 rake
|
83
|
+
```
|
84
|
+
|
61
85
|
## Related Links
|
62
86
|
|
63
87
|
* http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
|
64
|
-
* 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
|
-
|
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
|
-
#
|
2
|
-
|
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.
|
8
|
+
spec.version = '0.5.0'
|
8
9
|
spec.authors = ['Genki Sugawara']
|
9
10
|
spec.email = ['sugawara@cookpad.com']
|
10
11
|
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
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,14 +21,21 @@ 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.
|
24
|
+
spec.required_ruby_version = '>= 2.4'
|
25
|
+
|
24
26
|
spec.add_dependency 'aws-sigv4', '~> 1.0'
|
27
|
+
spec.add_dependency 'faraday', '>= 0.15'
|
25
28
|
|
26
|
-
spec.add_development_dependency '
|
29
|
+
spec.add_development_dependency 'appraisal', '>= 2.2'
|
30
|
+
spec.add_development_dependency 'aws-sdk-core', '~> 3.14.0'
|
27
31
|
spec.add_development_dependency 'bundler'
|
32
|
+
spec.add_development_dependency 'faraday_middleware'
|
28
33
|
spec.add_development_dependency 'rake'
|
29
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
35
|
+
spec.add_development_dependency 'rubocop', '>= 1.8.0'
|
36
|
+
spec.add_development_dependency 'rubocop-rake'
|
37
|
+
spec.add_development_dependency 'rubocop-rspec'
|
38
|
+
spec.add_development_dependency 'simplecov'
|
39
|
+
spec.add_development_dependency 'simplecov-lcov'
|
30
40
|
spec.add_development_dependency 'timecop'
|
31
|
-
spec.add_development_dependency 'coveralls'
|
32
|
-
spec.add_development_dependency 'aws-sdk-core', '~> 3.0'
|
33
41
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'faraday'
|
2
4
|
|
3
5
|
module FaradayMiddleware
|
4
6
|
autoload :AwsSigV4, 'faraday_middleware/request/aws_sigv4'
|
5
|
-
Faraday::Request.register_middleware aws_sigv4:
|
7
|
+
Faraday::Request.register_middleware aws_sigv4: -> { AwsSigV4 }
|
6
8
|
end
|
@@ -1,35 +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
|
-
|
5
|
-
|
6
|
+
module FaradayMiddleware
|
7
|
+
class AwsSigV4 < Faraday::Middleware
|
8
|
+
include FaradayMiddleware::AwsSigV4Util
|
6
9
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
def initialize(app, options = nil)
|
11
|
+
super(app)
|
12
|
+
@signer = Aws::Sigv4::Signer.new(options)
|
13
|
+
@options = options
|
14
|
+
end
|
12
15
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
16
|
+
def call(env)
|
17
|
+
sign!(env)
|
18
|
+
@app.call(env)
|
19
|
+
end
|
17
20
|
|
18
|
-
|
21
|
+
private
|
19
22
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
+
def sign!(env)
|
24
|
+
request = build_aws_sigv4_request(env)
|
25
|
+
signature = @signer.sign_request(request)
|
23
26
|
|
24
|
-
|
25
|
-
|
27
|
+
signature.headers.each do |name, value|
|
28
|
+
env.request_headers[name] = value
|
29
|
+
end
|
30
|
+
end
|
26
31
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
34
40
|
end
|
35
41
|
end
|
@@ -1,32 +1,36 @@
|
|
1
|
-
|
2
|
-
def seahorse_encode_query(url)
|
3
|
-
return url unless url.query
|
1
|
+
# frozen_string_literal: true
|
4
2
|
|
5
|
-
|
3
|
+
module FaradayMiddleware
|
4
|
+
module AwsSigV4Util
|
5
|
+
def seahorse_encode_query(url)
|
6
|
+
return url unless url.query
|
6
7
|
|
7
|
-
|
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
|
-
|
13
|
-
|
10
|
+
if params.any? { |_, v| v["\s"] }
|
11
|
+
url = url.dup
|
12
|
+
url.query = seahorse_encode_www_form(params)
|
13
|
+
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
encoded_key = URI.encode_www_form_component(key)
|
15
|
+
url
|
16
|
+
end
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
-
|
33
|
+
end.join('&')
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|
metadata
CHANGED
@@ -1,45 +1,73 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday_middleware-aws-sigv4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
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:
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: aws-sigv4
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '1.0'
|
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
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0.15'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.15'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: appraisal
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: aws-sdk-core
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
37
58
|
requirements:
|
38
59
|
- - "~>"
|
39
60
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
61
|
+
version: 3.14.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.14.0
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
70
|
+
name: bundler
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
44
72
|
requirements:
|
45
73
|
- - ">="
|
@@ -53,7 +81,7 @@ dependencies:
|
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: '0'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
84
|
+
name: faraday_middleware
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
58
86
|
requirements:
|
59
87
|
- - ">="
|
@@ -95,7 +123,21 @@ dependencies:
|
|
95
123
|
- !ruby/object:Gem::Version
|
96
124
|
version: '3.0'
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
126
|
+
name: rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.8.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.8.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop-rake
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
100
142
|
requirements:
|
101
143
|
- - ">="
|
@@ -109,7 +151,7 @@ dependencies:
|
|
109
151
|
- !ruby/object:Gem::Version
|
110
152
|
version: '0'
|
111
153
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
154
|
+
name: rubocop-rspec
|
113
155
|
requirement: !ruby/object:Gem::Requirement
|
114
156
|
requirements:
|
115
157
|
- - ">="
|
@@ -123,19 +165,47 @@ dependencies:
|
|
123
165
|
- !ruby/object:Gem::Version
|
124
166
|
version: '0'
|
125
167
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
168
|
+
name: simplecov
|
127
169
|
requirement: !ruby/object:Gem::Requirement
|
128
170
|
requirements:
|
129
|
-
- - "
|
171
|
+
- - ">="
|
130
172
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
173
|
+
version: '0'
|
132
174
|
type: :development
|
133
175
|
prerelease: false
|
134
176
|
version_requirements: !ruby/object:Gem::Requirement
|
135
177
|
requirements:
|
136
|
-
- - "
|
178
|
+
- - ">="
|
137
179
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: simplecov-lcov
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: timecop
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
139
209
|
description: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
|
140
210
|
email:
|
141
211
|
- sugawara@cookpad.com
|
@@ -143,16 +213,25 @@ executables: []
|
|
143
213
|
extensions: []
|
144
214
|
extra_rdoc_files: []
|
145
215
|
files:
|
216
|
+
- ".github/workflows/test.yml"
|
146
217
|
- ".gitignore"
|
147
218
|
- ".rspec"
|
148
|
-
- ".
|
219
|
+
- ".rubocop.yml"
|
220
|
+
- ".simplecov"
|
221
|
+
- Appraisals
|
149
222
|
- Gemfile
|
150
223
|
- LICENSE.txt
|
151
224
|
- README.md
|
152
225
|
- Rakefile
|
153
|
-
- bin/console
|
154
|
-
- bin/setup
|
155
226
|
- faraday_middleware-aws-sigv4.gemspec
|
227
|
+
- gemfiles/.bundle/config
|
228
|
+
- gemfiles/faraday_0.15.gemfile
|
229
|
+
- gemfiles/faraday_0.16.gemfile
|
230
|
+
- gemfiles/faraday_0.17.gemfile
|
231
|
+
- gemfiles/faraday_1.0.gemfile
|
232
|
+
- gemfiles/faraday_1.1.gemfile
|
233
|
+
- gemfiles/faraday_1.2.gemfile
|
234
|
+
- gemfiles/faraday_1.3.gemfile
|
156
235
|
- lib/faraday_middleware/aws_sigv4.rb
|
157
236
|
- lib/faraday_middleware/request/aws_sigv4.rb
|
158
237
|
- lib/faraday_middleware/request/aws_sigv4_util.rb
|
@@ -160,7 +239,7 @@ homepage: https://github.com/winebarrel/faraday_middleware-aws-sigv4
|
|
160
239
|
licenses:
|
161
240
|
- MIT
|
162
241
|
metadata: {}
|
163
|
-
post_install_message:
|
242
|
+
post_install_message:
|
164
243
|
rdoc_options: []
|
165
244
|
require_paths:
|
166
245
|
- lib
|
@@ -168,16 +247,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
247
|
requirements:
|
169
248
|
- - ">="
|
170
249
|
- !ruby/object:Gem::Version
|
171
|
-
version: '
|
250
|
+
version: '2.4'
|
172
251
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
252
|
requirements:
|
174
253
|
- - ">="
|
175
254
|
- !ruby/object:Gem::Version
|
176
255
|
version: '0'
|
177
256
|
requirements: []
|
178
|
-
|
179
|
-
|
180
|
-
signing_key:
|
257
|
+
rubygems_version: 3.0.3
|
258
|
+
signing_key:
|
181
259
|
specification_version: 4
|
182
260
|
summary: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
|
183
261
|
test_files: []
|
data/.travis.yml
DELETED
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__)
|