aws-sdk-core 3.99.1 → 3.99.2

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
  SHA256:
3
- metadata.gz: 5c95e49c7e9f816275a1de25b47c57dfc91498123c3fcd142193c43170d30a55
4
- data.tar.gz: 681ba0ab1299839690bc5711d95250caf05a230040075eb1e49317c1d9a7d2e4
3
+ metadata.gz: cf03bdc54ae7d2b3aaca392c246e2448afe60816e850b6f2389945be397a27f7
4
+ data.tar.gz: 0615a87c2daa9bc86e416d7403aedf6d934f5694dd1efda76d6821c0caa12ebd
5
5
  SHA512:
6
- metadata.gz: b53978c3a9f0efc394bafe6263b4f68193620136f657f5197f8f05b3c4de951dfce546e2dda86265d1fd0cccea99b6335539d54fe8ca92ac6582df61a072cf24
7
- data.tar.gz: dd885d72012720540a5e5b0f61c3218737a7f0fa1b1d5be6d006e5d3290d630236a7f4a52011e7bcd2f5e6b52decb111e850d9958c6ac65d1b158d994b238b78
6
+ metadata.gz: 8a9b4ba7e6cb3be4ab9fc0905a03162c5cc4b2d12509ebfb53eee3a0098f9f74ed0a5634df1f06f16a4101243c5c59c1e9aac2ed7d4f5ed90f1d068b30573856
7
+ data.tar.gz: f625151a68e124037dd2b0a42067a736b0562bebf975649721896d84460d4e830fad4a879d744ff45af39979f1fc75db5516ebc71b67150b412c8272afc90d01
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.99.1
1
+ 3.99.2
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-sts/customizations'
43
43
  # @service
44
44
  module Aws::STS
45
45
 
46
- GEM_VERSION = '3.99.0'
46
+ GEM_VERSION = '3.99.2'
47
47
 
48
48
  end
@@ -2187,7 +2187,7 @@ module Aws::STS
2187
2187
  params: params,
2188
2188
  config: config)
2189
2189
  context[:gem_name] = 'aws-sdk-core'
2190
- context[:gem_version] = '3.99.0'
2190
+ context[:gem_version] = '3.99.2'
2191
2191
  Seahorse::Client::Request.new(handlers, context)
2192
2192
  end
2193
2193
 
@@ -11,6 +11,7 @@ module Seahorse
11
11
  # @return [Integer]
12
12
  def write(chunk)
13
13
  @block.call(chunk)
14
+ ensure
14
15
  chunk.bytesize.tap { |chunk_size| @size += chunk_size }
15
16
  end
16
17
 
@@ -28,7 +28,13 @@ module Seahorse
28
28
  def add_event_listeners(context, target)
29
29
  handler = self
30
30
  context.http_response.on_headers(200..299) do
31
- context.http_response.body = handler.send(:io, target)
31
+ # In a fresh response body will be a StringIO
32
+ # However, when a request is retried we may have
33
+ # an existing ManagedFile or BlockIO and those
34
+ # should be reused.
35
+ if context.http_response.body.is_a? StringIO
36
+ context.http_response.body = handler.send(:io, target)
37
+ end
32
38
  end
33
39
 
34
40
  context.http_response.on_success(200..299) do
@@ -40,15 +46,18 @@ module Seahorse
40
46
 
41
47
  context.http_response.on_error do
42
48
  body = context.http_response.body
43
- File.unlink(body) if ManagedFile === body
49
+
50
+ # When using response_target of file we do not want to write
51
+ # error messages to the file. So set the body to a new StringIO
52
+ if body.is_a? ManagedFile
53
+ File.unlink(body)
54
+ context.http_response.body = StringIO.new
55
+ end
56
+
44
57
  # Aws::S3::Encryption::DecryptHandler (with lower priority)
45
58
  # has callbacks registered after ResponseTarget::Handler,
46
59
  # where http_response.body is an IODecrypter
47
- # and has error callbacks handling for it.
48
- # Thus avoid early remove of IODecrypter at ResponseTarget::Handler
49
- unless context.http_response.body.respond_to?(:io)
50
- context.http_response.body = StringIO.new
51
- end
60
+ # and has error callbacks handling for it so no action is required here
52
61
  end
53
62
  end
54
63
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.99.1
4
+ version: 3.99.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-06-11 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -294,7 +294,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
294
  - !ruby/object:Gem::Version
295
295
  version: '0'
296
296
  requirements: []
297
- rubygems_version: 3.0.3
297
+ rubyforge_project:
298
+ rubygems_version: 2.7.6.2
298
299
  signing_key:
299
300
  specification_version: 4
300
301
  summary: AWS SDK for Ruby - Core