faraday_middleware-aws-sigv4 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 5261b18d9aa30fdf39be58b9c030156590629001
4
- data.tar.gz: 7e8879d43e869b8a7c72b869601d3265d9a3f0ab
3
+ metadata.gz: 5b0b86530ec40ded5adc4b94c7729bc616f6fc33
4
+ data.tar.gz: 9aac6dda3371ac89267185863ef73be361b3863b
5
5
  SHA512:
6
- metadata.gz: fde65a4dbb4c7f1099b08262db7d699757e4b77bf13c5e028bcd1671b974f978c7a3da5d6bcb045aafe3d94343b9d085b10e8bc757ca78574180352bd72b0858
7
- data.tar.gz: 9a5f8f306279fb1ee07b4ef29d214bc77ad8b07d38b0df5d9d0609fbd8eb8a93b609956d93d5c1af9defd611babc0489fc3a4303fef451299d619bf8c631a106
6
+ metadata.gz: 536275f710e33b71e973266f3956c5a9d0b7072d2de0e78606543cef627cff8acbe7d07953e454eee7a6f807a18396312700bc7472a880b72545bb8bcc5733fe
7
+ data.tar.gz: d6dd6893485857cfd9b51f46ac7a5d00ac204842ab8e97b8e7958e03c4f1f7d1a987d3c7f6e046a53da7c81d273d52a5015b64f2f3a63cd41d21144d8aed231e
@@ -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.2.2'
7
+ spec.version = '0.2.3'
8
8
  spec.authors = ['Genki Sugawara']
9
9
  spec.email = ['sugawara@cookpad.com']
10
10
 
@@ -18,10 +18,6 @@ class FaradayMiddleware::AwsSigV4 < Faraday::Middleware
18
18
  private
19
19
 
20
20
  def sign!(env)
21
- if net_http_adapter?
22
- normalize_for_net_http!(env)
23
- end
24
-
25
21
  request = build_aws_sigv4_request(env)
26
22
  signature = @signer.sign_request(request)
27
23
 
@@ -36,8 +32,4 @@ class FaradayMiddleware::AwsSigV4 < Faraday::Middleware
36
32
  body: env.body,
37
33
  }
38
34
  end
39
-
40
- def net_http_adapter?
41
- @app.is_a?(Faraday::Adapter::NetHttp)
42
- end
43
35
  end
@@ -1,13 +1,4 @@
1
1
  module FaradayMiddleware::AwsSigV4Util
2
- def normalize_for_net_http!(env)
3
- if Net::HTTP::HAVE_ZLIB
4
- env.request_headers['Accept-Encoding'] ||= 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3'
5
- end
6
-
7
- env.request_headers['Accept'] ||= '*/*'
8
- env
9
- end
10
-
11
2
  def seahorse_encode_query(url)
12
3
  return url unless url.query
13
4
 
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.5.2
179
+ rubygems_version: 2.6.13
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Faraday middleware for AWS Signature Version 4 using aws-sigv4.