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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b0b86530ec40ded5adc4b94c7729bc616f6fc33
|
4
|
+
data.tar.gz: 9aac6dda3371ac89267185863ef73be361b3863b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 536275f710e33b71e973266f3956c5a9d0b7072d2de0e78606543cef627cff8acbe7d07953e454eee7a6f807a18396312700bc7472a880b72545bb8bcc5733fe
|
7
|
+
data.tar.gz: d6dd6893485857cfd9b51f46ac7a5d00ac204842ab8e97b8e7958e03c4f1f7d1a987d3c7f6e046a53da7c81d273d52a5015b64f2f3a63cd41d21144d8aed231e
|
@@ -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.
|
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-
|
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.
|
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.
|