aws-sigv4 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sigv4/signer.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 03c9715c1cf282c8fee51a8fe55a3fa6e275c2b705ba750bcfd00be9d5bf1748
|
4
|
+
data.tar.gz: 7df75c859ecc8133c60ec326f5ddc9fe6ae8a3d2dda508a67f2f9c84f42df261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06c0f5359695381e9e7735c8f9b2e4de552bcc1eac0ff721a1fc2d85f44396daae90b6ca8d2bb86174d9ffc8e3e3178d1f3783788c17649b7ef85deacd100c2
|
7
|
+
data.tar.gz: b1de160e55e4a18283392c22716c7192e5351ef3bddf8db5ab359f352ab73bcb43ed9021d9d6a4fa048de46de5bbb08aac6cde8f2366400c7655901aa6a35b01
|
data/lib/aws-sigv4/signer.rb
CHANGED
@@ -286,7 +286,7 @@ module Aws
|
|
286
286
|
|
287
287
|
datetime = time.utc.strftime("%Y%m%dT%H%M%SZ")
|
288
288
|
date = datetime[0,8]
|
289
|
-
headers[':date'] = Aws::EventStream::HeaderValue.new(value: time.to_i*1000, type: 'timestamp')
|
289
|
+
headers[':date'] = Aws::EventStream::HeaderValue.new(value: time.to_i * 1000, type: 'timestamp')
|
290
290
|
|
291
291
|
sts = event_string_to_sign(datetime, headers, payload, prior_signature, encoder)
|
292
292
|
sig = event_signature(creds.secret_access_key, date, sts)
|
@@ -441,7 +441,7 @@ module Aws
|
|
441
441
|
def event_string_to_sign(datetime, headers, payload, prior_signature, encoder)
|
442
442
|
encoded_headers = encoder.encode_headers(
|
443
443
|
Aws::EventStream::Message.new(headers: headers, payload: payload)
|
444
|
-
)
|
444
|
+
)
|
445
445
|
[
|
446
446
|
"AWS4-HMAC-SHA256-PAYLOAD",
|
447
447
|
datetime,
|
@@ -654,7 +654,7 @@ module Aws
|
|
654
654
|
|
655
655
|
def fetch_credentials
|
656
656
|
credentials = @credentials_provider.credentials
|
657
|
-
if credentials.
|
657
|
+
if credentials.set?
|
658
658
|
credentials
|
659
659
|
else
|
660
660
|
raise Errors::MissingCredentialsError,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sigv4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-eventstream
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project:
|
68
|
-
rubygems_version: 2.
|
68
|
+
rubygems_version: 2.7.6.2
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: AWS Signature Version 4 library.
|