aws-sdk-resources 2.11.164 → 2.11.165

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: 11ff4f9f34f5af125657c1a5b8ab0675ce0e85c4
4
- data.tar.gz: 65884b32a2fc1d6c739db3ec7130873cd48640dc
3
+ metadata.gz: aa675c12247f023dc01b91a34cc9aa95ec78e1da
4
+ data.tar.gz: ed27fbfbd9ed9ae2e1a794931080b7eac8297f34
5
5
  SHA512:
6
- metadata.gz: f5a7c9506a3a410e289ac6725b6342bc40b3cb4ee595e38e15fa9357e18145fc619f4f8d0b0f7e29e13625301847d83e23cb018d5148dc6b98f789392791c209
7
- data.tar.gz: faf6f4deddafbd598ab49afe251c36df82610bb03b15389184acf1f4637ad331d35e24a698a1bfe15483770d6ff546f6107224b5593717cfa8ad45070256e35d
6
+ metadata.gz: a102e1af70e43d4a7c682c606fb9b77ef594ea318bc26bb7b5b31d30e168a1bcca921df0e83193a8dd7d5eec5464a7beb58d1b1f624070dfea046ffda5d46534
7
+ data.tar.gz: ac446d60ff557f0fa9a87ae77050e355e6cfc825ccb0c37068e87f8b2a0638455c29a4d2cc1241df516638196a927ee72f67afa34f571271dcadd518154c5274
@@ -22,8 +22,10 @@ module Aws
22
22
 
23
23
  def write(chunk)
24
24
  chunk = truncate_chunk(chunk)
25
- @bytes_written += chunk.bytesize
26
- @decrypter.write(chunk)
25
+ if chunk.bytesize > 0
26
+ @bytes_written += chunk.bytesize
27
+ @decrypter.write(chunk)
28
+ end
27
29
  end
28
30
 
29
31
  def finalize
@@ -39,8 +41,12 @@ module Aws
39
41
  def truncate_chunk(chunk)
40
42
  if chunk.bytesize + @bytes_written <= @max_bytes
41
43
  chunk
42
- else
44
+ elsif @bytes_written < @max_bytes
43
45
  chunk[0..(@max_bytes - @bytes_written - 1)]
46
+ else
47
+ # If the tag was sent over after the full body has been read,
48
+ # we don't want to accidentally append it.
49
+ ""
44
50
  end
45
51
  end
46
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.164
4
+ version: 2.11.165
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: 2018-11-05 00:00:00.000000000 Z
11
+ date: 2018-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.11.164
19
+ version: 2.11.165
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.11.164
26
+ version: 2.11.165
27
27
  description: Provides resource oriented interfaces and other higher-level abstractions
28
28
  for many AWS services. This gem is part of the official AWS SDK for Ruby.
29
29
  email: