faraday_middleware-aws-sigv4 0.5.0 → 0.6.1
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 +2 -7
- data/Appraisals +2 -26
- data/README.md +13 -9
- data/faraday_middleware-aws-sigv4.gemspec +6 -3
- data/gemfiles/{faraday_1.1.gemfile → faraday_1.8.gemfile} +1 -1
- metadata +18 -17
- data/gemfiles/faraday_0.15.gemfile +0 -7
- data/gemfiles/faraday_0.16.gemfile +0 -7
- data/gemfiles/faraday_0.17.gemfile +0 -7
- data/gemfiles/faraday_1.0.gemfile +0 -7
- data/gemfiles/faraday_1.2.gemfile +0 -7
- data/gemfiles/faraday_1.3.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: 6c529e426730ad685dc287898b42b6b27345d63e4faba1e016ad2c7126c29612
|
4
|
+
data.tar.gz: 812fb0fdbb3f7158f4811c03e08f5004eeeda9f127ee7e1627403f6ebe3ec96f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e43f5ab344a052c4e37f22bdda9127091367bd927d2a5f7b16b2832ab4ae3684a2daa34c111372dfeb2cc28de77d04cecbe13557e56de166ac277e560f5e481f
|
7
|
+
data.tar.gz: 68cfd56f08e416e3d020a916a10a81ff8e1d813fbbc694ec17484150516dc5cd2fa3d3d09bab4022f018c36478e2109d0a0e307414fe226b7cb6ff74f7737ef3
|
data/.github/workflows/test.yml
CHANGED
@@ -15,14 +15,9 @@ jobs:
|
|
15
15
|
- 2.5
|
16
16
|
- 2.6
|
17
17
|
- 2.7
|
18
|
+
- 3.0
|
18
19
|
gemfile:
|
19
|
-
- gemfiles/
|
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
|
20
|
+
- gemfiles/faraday_1.8.gemfile
|
26
21
|
env:
|
27
22
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
28
23
|
steps:
|
data/Appraisals
CHANGED
@@ -1,29 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise 'faraday-
|
4
|
-
gem 'faraday', '~>
|
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'
|
3
|
+
appraise 'faraday-1.8' do
|
4
|
+
gem 'faraday', '~> 1.8.0'
|
29
5
|
end
|
data/README.md
CHANGED
@@ -3,16 +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
|
+
[![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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
## Required dependency version
|
10
|
+
|
11
|
+
| version | ruby | faraday |
|
12
|
+
|------------|----------|-----------|
|
13
|
+
| `>= 0.6.0` | `>= 2.4` | `>= 1.8` |
|
14
|
+
| `>= 0.5.0` | `>= 2.4` | `>= 0.15` |
|
15
|
+
| `>= 0.3.0` | `>= 2.3` | `>= 0.15` |
|
16
|
+
| `< 0.3.0` | - | `< 0.15` |
|
16
17
|
|
17
18
|
## Installation
|
18
19
|
|
@@ -53,6 +54,9 @@ conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |farada
|
|
53
54
|
faraday.response :json, content_type: /\bjson\b/
|
54
55
|
faraday.response :raise_error
|
55
56
|
|
57
|
+
|
58
|
+
# NOTE: If you need to send case sensitive headers like `x-amz-access-token` in `SP API`.
|
59
|
+
# cf. https://github.com/lostisland/faraday/issues/747#issuecomment-439864181
|
56
60
|
faraday.adapter Faraday.default_adapter
|
57
61
|
end
|
58
62
|
|
@@ -79,7 +83,7 @@ If you previously provided the `service_name` option, you need to rename it `ser
|
|
79
83
|
```sh
|
80
84
|
bundle install
|
81
85
|
bundle exec appraisal install
|
82
|
-
bundle exec appraisal faraday-
|
86
|
+
bundle exec appraisal faraday-1.8 rake
|
83
87
|
```
|
84
88
|
|
85
89
|
## Related Links
|
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'faraday_middleware-aws-sigv4'
|
8
|
-
spec.version = '0.
|
8
|
+
spec.version = '0.6.1'
|
9
9
|
spec.authors = ['Genki Sugawara']
|
10
10
|
spec.email = ['sugawara@cookpad.com']
|
11
11
|
|
@@ -24,10 +24,10 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.required_ruby_version = '>= 2.4'
|
25
25
|
|
26
26
|
spec.add_dependency 'aws-sigv4', '~> 1.0'
|
27
|
-
spec.add_dependency 'faraday', '>=
|
27
|
+
spec.add_dependency 'faraday', '>= 1.8', '< 2'
|
28
28
|
|
29
29
|
spec.add_development_dependency 'appraisal', '>= 2.2'
|
30
|
-
spec.add_development_dependency 'aws-sdk-core', '
|
30
|
+
spec.add_development_dependency 'aws-sdk-core', '>= 3.124.0'
|
31
31
|
spec.add_development_dependency 'bundler'
|
32
32
|
spec.add_development_dependency 'faraday_middleware'
|
33
33
|
spec.add_development_dependency 'rake'
|
@@ -38,4 +38,7 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency 'simplecov'
|
39
39
|
spec.add_development_dependency 'simplecov-lcov'
|
40
40
|
spec.add_development_dependency 'timecop'
|
41
|
+
spec.metadata = {
|
42
|
+
'rubygems_mfa_required' => 'true'
|
43
|
+
}
|
41
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|
@@ -30,14 +30,20 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.8'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
43
|
+
version: '1.8'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: appraisal
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +62,16 @@ dependencies:
|
|
56
62
|
name: aws-sdk-core
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - "
|
65
|
+
- - ">="
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
67
|
+
version: 3.124.0
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - "
|
72
|
+
- - ">="
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.
|
74
|
+
version: 3.124.0
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: bundler
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -225,20 +231,15 @@ files:
|
|
225
231
|
- Rakefile
|
226
232
|
- faraday_middleware-aws-sigv4.gemspec
|
227
233
|
- gemfiles/.bundle/config
|
228
|
-
- gemfiles/
|
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
|
234
|
+
- gemfiles/faraday_1.8.gemfile
|
235
235
|
- lib/faraday_middleware/aws_sigv4.rb
|
236
236
|
- lib/faraday_middleware/request/aws_sigv4.rb
|
237
237
|
- lib/faraday_middleware/request/aws_sigv4_util.rb
|
238
238
|
homepage: https://github.com/winebarrel/faraday_middleware-aws-sigv4
|
239
239
|
licenses:
|
240
240
|
- MIT
|
241
|
-
metadata:
|
241
|
+
metadata:
|
242
|
+
rubygems_mfa_required: 'true'
|
242
243
|
post_install_message:
|
243
244
|
rdoc_options: []
|
244
245
|
require_paths:
|
@@ -254,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
255
|
- !ruby/object:Gem::Version
|
255
256
|
version: '0'
|
256
257
|
requirements: []
|
257
|
-
rubygems_version: 3.
|
258
|
+
rubygems_version: 3.2.32
|
258
259
|
signing_key:
|
259
260
|
specification_version: 4
|
260
261
|
summary: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
|