faraday_middleware-aws-sigv4 0.2.5 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +54 -0
- data/.rubocop.yml +16 -0
- data/.simplecov +3 -1
- data/Appraisals +3 -21
- data/Gemfile +2 -0
- data/README.md +28 -3
- data/Rakefile +8 -1
- data/faraday_middleware-aws-sigv4.gemspec +20 -10
- data/gemfiles/{faraday_0.9.gemfile → faraday_1.8.gemfile} +1 -1
- 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 +90 -40
- data/.coveralls.yml +0 -1
- data/.travis.yml +0 -18
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/gemfiles/faraday_0.10.gemfile +0 -7
- data/gemfiles/faraday_0.11.gemfile +0 -7
- data/gemfiles/faraday_0.12.gemfile +0 -7
- data/gemfiles/faraday_0.13.gemfile +0 -7
- data/gemfiles/faraday_0.14.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aece4ba770cfc65206b68652239d1595d1ef73e8692e43c79d110d8adfd34b5d
|
4
|
+
data.tar.gz: 4b5ff35af060d864fcecd5f4c9c00ff470be0695802f0717e6fb90c4cb197d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acb30a0fe66f7315547d41c6bebd6a135e76be1a922c4850f89dae56a04cd512d0f05f790e5bbdd7b696fe8e5f90772b4dac649fc2137f5af643b4de475b8bb1
|
7
|
+
data.tar.gz: e6c6dd41687cb84135c1ac378eb96b0164f9cfb7ae659fb1d7e185dec677b174b3c5beff486cf4c0825b868ff3c977e50fcb3744b2838b3aa39af5d32bf56b16
|
@@ -0,0 +1,54 @@
|
|
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
|
+
- 3.0
|
19
|
+
gemfile:
|
20
|
+
- gemfiles/faraday_1.8.gemfile
|
21
|
+
env:
|
22
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
23
|
+
steps:
|
24
|
+
- uses: actions/checkout@v2
|
25
|
+
- uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ${{ matrix.ruby }}
|
28
|
+
- uses: actions/cache@v2
|
29
|
+
with:
|
30
|
+
path: gemfiles/vendor/bundle
|
31
|
+
key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles('faraday_middleware-aws-sigv4.gemspec', '**/Gemfile', '${{ matrix.gemfile }}') }}
|
32
|
+
restore-keys: |
|
33
|
+
${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.gemfile }}-
|
34
|
+
- name: Setup dependencies
|
35
|
+
run: |
|
36
|
+
bundle config path vendor/bundle
|
37
|
+
bundle install
|
38
|
+
- name: Run tests
|
39
|
+
run: bundle exec rake
|
40
|
+
- name: Coveralls Parallel
|
41
|
+
uses: coverallsapp/github-action@v1.1.2
|
42
|
+
with:
|
43
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
44
|
+
flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }}
|
45
|
+
parallel: true
|
46
|
+
finish:
|
47
|
+
needs: build
|
48
|
+
runs-on: ubuntu-latest
|
49
|
+
steps:
|
50
|
+
- name: Coveralls Finished
|
51
|
+
uses: coverallsapp/github-action@v1.1.2
|
52
|
+
with:
|
53
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
54
|
+
parallel-finished: true
|
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
CHANGED
data/Appraisals
CHANGED
@@ -1,23 +1,5 @@
|
|
1
|
-
|
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
|
1
|
+
# frozen_string_literal: true
|
20
2
|
|
21
|
-
appraise 'faraday-
|
22
|
-
gem 'faraday', '~>
|
3
|
+
appraise 'faraday-1.8' do
|
4
|
+
gem 'faraday', '~> 1.8.0'
|
23
5
|
end
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,9 +3,20 @@
|
|
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://
|
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`
|
14
|
+
* `faraday_middleware-aws-sigv4 >= 0.5.0`
|
15
|
+
* `ruby >= 2.4`
|
16
|
+
* `faraday_middleware-aws-sigv4 >= 0.6.0`
|
17
|
+
* `ruby >= 2.4`
|
18
|
+
* `faraday >= 0.18`
|
19
|
+
|
9
20
|
## Installation
|
10
21
|
|
11
22
|
Add this line to your application's Gemfile:
|
@@ -25,7 +36,8 @@ Or install it yourself as:
|
|
25
36
|
## Usage
|
26
37
|
|
27
38
|
```ruby
|
28
|
-
# `gem install faraday_middleware` is required.
|
39
|
+
# `gem install faraday_middleware` is required for this example.
|
40
|
+
# However, FaradayMiddleware::AwsSigV4 works without faraday_middleware.
|
29
41
|
require 'faraday_middleware'
|
30
42
|
require 'faraday_middleware/aws_sigv4'
|
31
43
|
require 'pp'
|
@@ -38,9 +50,15 @@ conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |farada
|
|
38
50
|
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
|
39
51
|
# see http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
|
40
52
|
|
53
|
+
# NOTE: The following middleware is from `faraday_middleware`
|
54
|
+
# cf. https://github.com/lostisland/faraday_middleware/blob/master/lib/faraday_middleware.rb
|
55
|
+
# **It is not an essential middleware to work.**
|
41
56
|
faraday.response :json, content_type: /\bjson\b/
|
42
57
|
faraday.response :raise_error
|
43
58
|
|
59
|
+
|
60
|
+
# NOTE: If you need to send case sensitive headers like `x-amz-access-token` in `SP API`.
|
61
|
+
# cf. https://github.com/lostisland/faraday/issues/747#issuecomment-439864181
|
44
62
|
faraday.adapter Faraday.default_adapter
|
45
63
|
end
|
46
64
|
|
@@ -62,7 +80,14 @@ pp res.body
|
|
62
80
|
|
63
81
|
If you previously provided the `service_name` option, you need to rename it `service`
|
64
82
|
|
83
|
+
## Test
|
84
|
+
|
85
|
+
```sh
|
86
|
+
bundle install
|
87
|
+
bundle exec appraisal install
|
88
|
+
bundle exec appraisal faraday-1.8 rake
|
89
|
+
```
|
90
|
+
|
65
91
|
## Related Links
|
66
92
|
|
67
93
|
* http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
|
68
|
-
* 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.6.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,15 +21,24 @@ 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.18', '< 2'
|
25
28
|
|
26
|
-
spec.add_development_dependency '
|
29
|
+
spec.add_development_dependency 'appraisal', '>= 2.2'
|
30
|
+
spec.add_development_dependency 'aws-sdk-core', '>= 3.124.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.
|
32
|
-
|
33
|
-
|
41
|
+
spec.metadata = {
|
42
|
+
'rubygems_mfa_required' => 'true'
|
43
|
+
}
|
34
44
|
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,51 +1,79 @@
|
|
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.6.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-12-18 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.
|
33
|
+
version: '0.18'
|
20
34
|
- - "<"
|
21
35
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
36
|
+
version: '2'
|
23
37
|
type: :runtime
|
24
38
|
prerelease: false
|
25
39
|
version_requirements: !ruby/object:Gem::Requirement
|
26
40
|
requirements:
|
27
41
|
- - ">="
|
28
42
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
43
|
+
version: '0.18'
|
30
44
|
- - "<"
|
31
45
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
46
|
+
version: '2'
|
33
47
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
48
|
+
name: appraisal
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
36
50
|
requirements:
|
37
|
-
- - "
|
51
|
+
- - ">="
|
38
52
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
type: :
|
53
|
+
version: '2.2'
|
54
|
+
type: :development
|
41
55
|
prerelease: false
|
42
56
|
version_requirements: !ruby/object:Gem::Requirement
|
43
57
|
requirements:
|
44
|
-
- - "
|
58
|
+
- - ">="
|
45
59
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
60
|
+
version: '2.2'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
62
|
+
name: aws-sdk-core
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 3.124.0
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 3.124.0
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: bundler
|
49
77
|
requirement: !ruby/object:Gem::Requirement
|
50
78
|
requirements:
|
51
79
|
- - ">="
|
@@ -59,7 +87,7 @@ dependencies:
|
|
59
87
|
- !ruby/object:Gem::Version
|
60
88
|
version: '0'
|
61
89
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
90
|
+
name: faraday_middleware
|
63
91
|
requirement: !ruby/object:Gem::Requirement
|
64
92
|
requirements:
|
65
93
|
- - ">="
|
@@ -101,7 +129,21 @@ dependencies:
|
|
101
129
|
- !ruby/object:Gem::Version
|
102
130
|
version: '3.0'
|
103
131
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
132
|
+
name: rubocop
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 1.8.0
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 1.8.0
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: rubocop-rake
|
105
147
|
requirement: !ruby/object:Gem::Requirement
|
106
148
|
requirements:
|
107
149
|
- - ">="
|
@@ -115,7 +157,7 @@ dependencies:
|
|
115
157
|
- !ruby/object:Gem::Version
|
116
158
|
version: '0'
|
117
159
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
160
|
+
name: rubocop-rspec
|
119
161
|
requirement: !ruby/object:Gem::Requirement
|
120
162
|
requirements:
|
121
163
|
- - ">="
|
@@ -129,33 +171,47 @@ dependencies:
|
|
129
171
|
- !ruby/object:Gem::Version
|
130
172
|
version: '0'
|
131
173
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
174
|
+
name: simplecov
|
133
175
|
requirement: !ruby/object:Gem::Requirement
|
134
176
|
requirements:
|
135
|
-
- - "
|
177
|
+
- - ">="
|
136
178
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
179
|
+
version: '0'
|
138
180
|
type: :development
|
139
181
|
prerelease: false
|
140
182
|
version_requirements: !ruby/object:Gem::Requirement
|
141
183
|
requirements:
|
142
|
-
- - "
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: simplecov-lcov
|
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
|
+
- - ">="
|
143
199
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
200
|
+
version: '0'
|
145
201
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
202
|
+
name: timecop
|
147
203
|
requirement: !ruby/object:Gem::Requirement
|
148
204
|
requirements:
|
149
205
|
- - ">="
|
150
206
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
207
|
+
version: '0'
|
152
208
|
type: :development
|
153
209
|
prerelease: false
|
154
210
|
version_requirements: !ruby/object:Gem::Requirement
|
155
211
|
requirements:
|
156
212
|
- - ">="
|
157
213
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
214
|
+
version: '0'
|
159
215
|
description: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
|
160
216
|
email:
|
161
217
|
- sugawara@cookpad.com
|
@@ -163,34 +219,28 @@ executables: []
|
|
163
219
|
extensions: []
|
164
220
|
extra_rdoc_files: []
|
165
221
|
files:
|
166
|
-
- ".
|
222
|
+
- ".github/workflows/test.yml"
|
167
223
|
- ".gitignore"
|
168
224
|
- ".rspec"
|
225
|
+
- ".rubocop.yml"
|
169
226
|
- ".simplecov"
|
170
|
-
- ".travis.yml"
|
171
227
|
- Appraisals
|
172
228
|
- Gemfile
|
173
229
|
- LICENSE.txt
|
174
230
|
- README.md
|
175
231
|
- Rakefile
|
176
|
-
- bin/console
|
177
|
-
- bin/setup
|
178
232
|
- faraday_middleware-aws-sigv4.gemspec
|
179
233
|
- gemfiles/.bundle/config
|
180
|
-
- gemfiles/
|
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
|
234
|
+
- gemfiles/faraday_1.8.gemfile
|
186
235
|
- lib/faraday_middleware/aws_sigv4.rb
|
187
236
|
- lib/faraday_middleware/request/aws_sigv4.rb
|
188
237
|
- lib/faraday_middleware/request/aws_sigv4_util.rb
|
189
238
|
homepage: https://github.com/winebarrel/faraday_middleware-aws-sigv4
|
190
239
|
licenses:
|
191
240
|
- MIT
|
192
|
-
metadata:
|
193
|
-
|
241
|
+
metadata:
|
242
|
+
rubygems_mfa_required: 'true'
|
243
|
+
post_install_message:
|
194
244
|
rdoc_options: []
|
195
245
|
require_paths:
|
196
246
|
- lib
|
@@ -198,15 +248,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
248
|
requirements:
|
199
249
|
- - ">="
|
200
250
|
- !ruby/object:Gem::Version
|
201
|
-
version: '
|
251
|
+
version: '2.4'
|
202
252
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
253
|
requirements:
|
204
254
|
- - ">="
|
205
255
|
- !ruby/object:Gem::Version
|
206
256
|
version: '0'
|
207
257
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
209
|
-
signing_key:
|
258
|
+
rubygems_version: 3.2.32
|
259
|
+
signing_key:
|
210
260
|
specification_version: 4
|
211
261
|
summary: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
|
212
262
|
test_files: []
|
data/.coveralls.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
service_name: travis-ci
|
data/.travis.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
rvm:
|
5
|
-
- 2.2.10
|
6
|
-
- 2.3.8
|
7
|
-
- 2.4.7
|
8
|
-
- 2.5.6
|
9
|
-
- 2.6.4
|
10
|
-
script:
|
11
|
-
- bundle exec rake
|
12
|
-
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
|
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