faraday_middleware-aws-sigv4 0.3.0 → 0.4.0

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: d0e5eb23ca6df3387ac50a4917e304311f606276c96fbab4aa0a8e8946ed97c4
4
+ data.tar.gz: 326b17872f5fe6d1127533eec5a46af0f2c5d5918485be48bfaf6c53ed198328
5
5
  SHA512:
6
- metadata.gz: 56d40a5c79b056f329db7c5a59f382378e8b09994a4b1a9031ce7d6fe72f308088d776dc410685c925a528ed3f03ac9dca5fa5ca1adeb52f1eefc39128479a75
7
- data.tar.gz: 587bafa4f2cb5412d00ddaf606f23ea52b916fa0de7e0d75d930ef4e93b82c10765ab5245e6135c04e44618ece1f78953da2923523da4803a6c029a71a014e30
6
+ metadata.gz: 7cb0cc83b9b82920b26106ebc2039684c17679161ef97c93a65c01a72bcf54daa9d510cc0d0d7e40fbb6888db28dcd1a4a62b6c3defc9823b4889aba75088570
7
+ data.tar.gz: c5165646f89f56de6b3c653112d6f71bcdb60cf63dcc1949de6fb9ec905bd9858c32c552564ecc916cde03479ee7f01f63890bbd883276fc6dedc9e8a2a7f3af
@@ -0,0 +1,50 @@
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
+
23
+ steps:
24
+ - uses: actions/checkout@v2
25
+ - uses: actions/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
+
35
+ - name: Setup dependencies
36
+ run: |
37
+ bundle config path vendor/bundle
38
+ bundle install
39
+ env:
40
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
41
+
42
+ - name: Run tests
43
+ run: ${{ matrix.env }} bundle exec rake
44
+ env:
45
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
46
+
47
+ - name: Coveralls GitHub Action
48
+ uses: coverallsapp/github-action@v1.1.2
49
+ with:
50
+ github-token: ${{ secrets.GITHUB_TOKEN }}
data/Appraisals CHANGED
@@ -5,3 +5,11 @@ end
5
5
  appraise 'faraday-0.16' do
6
6
  gem 'faraday', '~> 0.16.0'
7
7
  end
8
+
9
+ appraise 'faraday-0.17' do
10
+ gem 'faraday', '~> 0.17.0'
11
+ end
12
+
13
+ appraise 'faraday-1.0' do
14
+ gem 'faraday', '~> 1.0.0'
15
+ end
data/README.md CHANGED
@@ -3,7 +3,7 @@
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
+ ![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
9
  * `faraday_middleware-aws-sigv4 < 0.3.0`
@@ -31,7 +31,8 @@ Or install it yourself as:
31
31
  ## Usage
32
32
 
33
33
  ```ruby
34
- # `gem install faraday_middleware` is required.
34
+ # `gem install faraday_middleware` is required for this example.
35
+ # However, FaradayMiddleware::AwsSigV4 works without faraday_middleware.
35
36
  require 'faraday_middleware'
36
37
  require 'faraday_middleware/aws_sigv4'
37
38
  require 'pp'
@@ -44,6 +45,9 @@ conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |farada
44
45
  secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
45
46
  # see http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
46
47
 
48
+ # NOTE: The following middleware is from `faraday_middleware`
49
+ # cf. https://github.com/lostisland/faraday_middleware/blob/master/lib/faraday_middleware.rb
50
+ # **It is not an essential middleware to work.**
47
51
  faraday.response :json, content_type: /\bjson\b/
48
52
  faraday.response :raise_error
49
53
 
@@ -79,4 +83,3 @@ bundle exec appraisal faraday-0.16 rake
79
83
  ## Related Links
80
84
 
81
85
  * 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)
@@ -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.3.0'
7
+ spec.version = '0.4.0'
8
8
  spec.authors = ['Genki Sugawara']
9
9
  spec.email = ['sugawara@cookpad.com']
10
10
 
@@ -30,7 +30,8 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'rake'
31
31
  spec.add_development_dependency 'rspec', '~> 3.0'
32
32
  spec.add_development_dependency 'timecop'
33
- spec.add_development_dependency 'coveralls'
34
33
  spec.add_development_dependency 'aws-sdk-core', '~> 3.14.0'
35
34
  spec.add_development_dependency 'appraisal', '>= 2.2'
35
+ spec.add_development_dependency 'simplecov'
36
+ spec.add_development_dependency 'simplecov-lcov'
36
37
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 0.17.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", "~> 1.0.0"
6
+
7
+ gemspec path: "../"
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -109,47 +109,61 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: coveralls
112
+ name: aws-sdk-core
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 3.14.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 3.14.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: appraisal
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ">="
116
130
  - !ruby/object:Gem::Version
117
- version: '0'
131
+ version: '2.2'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - ">="
123
137
  - !ruby/object:Gem::Version
124
- version: '0'
138
+ version: '2.2'
125
139
  - !ruby/object:Gem::Dependency
126
- name: aws-sdk-core
140
+ name: simplecov
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - "~>"
143
+ - - ">="
130
144
  - !ruby/object:Gem::Version
131
- version: 3.14.0
145
+ version: '0'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - "~>"
150
+ - - ">="
137
151
  - !ruby/object:Gem::Version
138
- version: 3.14.0
152
+ version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
- name: appraisal
154
+ name: simplecov-lcov
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - ">="
144
158
  - !ruby/object:Gem::Version
145
- version: '2.2'
159
+ version: '0'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - ">="
151
165
  - !ruby/object:Gem::Version
152
- version: '2.2'
166
+ version: '0'
153
167
  description: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
154
168
  email:
155
169
  - sugawara@cookpad.com
@@ -157,11 +171,10 @@ executables: []
157
171
  extensions: []
158
172
  extra_rdoc_files: []
159
173
  files:
160
- - ".coveralls.yml"
174
+ - ".github/workflows/test.yml"
161
175
  - ".gitignore"
162
176
  - ".rspec"
163
177
  - ".simplecov"
164
- - ".travis.yml"
165
178
  - Appraisals
166
179
  - Gemfile
167
180
  - LICENSE.txt
@@ -173,6 +186,8 @@ files:
173
186
  - gemfiles/.bundle/config
174
187
  - gemfiles/faraday_0.15.gemfile
175
188
  - gemfiles/faraday_0.16.gemfile
189
+ - gemfiles/faraday_0.17.gemfile
190
+ - gemfiles/faraday_1.0.gemfile
176
191
  - lib/faraday_middleware/aws_sigv4.rb
177
192
  - lib/faraday_middleware/request/aws_sigv4.rb
178
193
  - lib/faraday_middleware/request/aws_sigv4_util.rb
@@ -195,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
210
  - !ruby/object:Gem::Version
196
211
  version: '0'
197
212
  requirements: []
198
- rubygems_version: 3.0.3
213
+ rubygems_version: 3.1.2
199
214
  signing_key:
200
215
  specification_version: 4
201
216
  summary: Faraday middleware for AWS Signature Version 4 using aws-sigv4.
@@ -1 +0,0 @@
1
- service_name: travis-ci
@@ -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