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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/aws-sigv4/signer.rb +3 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 14842135b7b85dbb735af02ed0abf4f7b2210637
4
- data.tar.gz: ead9c20e040190ce9eedef01ab271ee168a6f91a
2
+ SHA256:
3
+ metadata.gz: 03c9715c1cf282c8fee51a8fe55a3fa6e275c2b705ba750bcfd00be9d5bf1748
4
+ data.tar.gz: 7df75c859ecc8133c60ec326f5ddc9fe6ae8a3d2dda508a67f2f9c84f42df261
5
5
  SHA512:
6
- metadata.gz: 67efebc735d8688893603ac6c4a7167f4a4e4d667570a62546838da4d3cc07e80ea3f549b49289df298ca981b1ed4007dc7fb08d5c67a585368c8439c957413c
7
- data.tar.gz: de205f21528e37090f87164acaaf7cd8d6abdb5172a0e5c7baa9a1b422eb6af3a5bdda0ba39cb35d88b186c9cbd3e8fe41080c6173fbe85f28769ab95ae95f6f
6
+ metadata.gz: a06c0f5359695381e9e7735c8f9b2e4de552bcc1eac0ff721a1fc2d85f44396daae90b6ca8d2bb86174d9ffc8e3e3178d1f3783788c17649b7ef85deacd100c2
7
+ data.tar.gz: b1de160e55e4a18283392c22716c7192e5351ef3bddf8db5ab359f352ab73bcb43ed9021d9d6a4fa048de46de5bbb08aac6cde8f2366400c7655901aa6a35b01
@@ -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
- ).read
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.access_key_id && credentials.secret_access_key
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.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-02-26 00:00:00.000000000 Z
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.5.2.3
68
+ rubygems_version: 2.7.6.2
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: AWS Signature Version 4 library.