faraday_middleware-aws-signers-v4 0.1.8 → 0.1.9

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: ffc4824573d7e7ace8f3fbfdfacc4192a7c62909
4
- data.tar.gz: 83c573698eecef4ee97568fab6881749ef7fbb06
3
+ metadata.gz: e51ab083a12196ffff95baaa679c8e97f28c9808
4
+ data.tar.gz: 6e9a768361ff3324d17ec87950f62abd1cf2ef87
5
5
  SHA512:
6
- metadata.gz: fed193d06185aa0a2b71f659db520ca9501a268cf7ef5c291808315cca6ee1e88e573b4fc5ce141cf55d1b0071a29003c237b8d642fbba109323a3e05a517778
7
- data.tar.gz: 39f8a587c72debf89af127001072e8bdcc09459b792578fc1cfa0625101a2fe76b93519646cdb3b9bf179269c984be660ab6ed9d82673bc942293110f24c5646
6
+ metadata.gz: 54094f40bea88a65ab3a881d979e1727b490db066c1025b7150e8b026e22965946b0a4e1f5bedb654dd46121ecfd71e41127d696894a98c7c312b4c804a2e508
7
+ data.tar.gz: 18c3665bd56978eab9e0105f91757cf8ce4045f7364f6dcb33a6311e431a1be9d2f2bf2993fba8e0913814074956b683a83a4d2665c324a7778b84ca7cec4019
data/README.md CHANGED
@@ -6,6 +6,10 @@
6
6
  [![Build Status](https://travis-ci.org/winebarrel/faraday_middleware-aws-signers-v4.svg)](https://travis-ci.org/winebarrel/faraday_middleware-aws-signers-v4)
7
7
  [![Coverage Status](https://coveralls.io/repos/winebarrel/faraday_middleware-aws-signers-v4/badge.svg?branch=master&service=github)](https://coveralls.io/github/winebarrel/faraday_middleware-aws-signers-v4?branch=master)
8
8
 
9
+ **Currently developing new gem to support aws-sdk-v3.**
10
+
11
+ **see https://github.com/winebarrel/faraday_middleware-aws-sigv4**
12
+
9
13
  ## Installation
10
14
 
11
15
  Add this line to your application's Gemfile:
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = 'faraday_middleware-aws-signers-v4'
4
- spec.version = '0.1.8'
4
+ spec.version = '0.1.9'
5
5
  spec.authors = ['Genki Sugawara']
6
6
  spec.email = ['sgwr_dts@yahoo.co.jp']
7
7
 
@@ -47,29 +47,11 @@ class FaradayMiddleware::AwsSignersV4 < Faraday::Middleware
47
47
  @credentials = options.fetch(:credentials)
48
48
  @service_name = options.fetch(:service_name)
49
49
  @region = options.fetch(:region)
50
- @net_http = net_http?(app)
51
50
  end
52
51
 
53
52
  def call(env)
54
- normalize_for_net_http!(env)
55
53
  req = Request.new(env)
56
54
  Aws::Signers::V4.new(@credentials, @service_name, @region).sign(req)
57
55
  @app.call(env)
58
56
  end
59
-
60
- private
61
-
62
- def net_http?(app)
63
- app.is_a?(Faraday::Adapter::NetHttp)
64
- end
65
-
66
- def normalize_for_net_http!(env)
67
- return unless @net_http
68
-
69
- if Net::HTTP::HAVE_ZLIB
70
- env.request_headers['Accept-Encoding'] ||= 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3'
71
- end
72
-
73
- env.request_headers['Accept'] ||= '*/*'
74
- end
75
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-aws-signers-v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
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-01 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
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  requirements: []
186
186
  rubyforge_project:
187
- rubygems_version: 2.5.2
187
+ rubygems_version: 2.6.13
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: Faraday middleware for AWS Signature Version 4.