aws-sdk-core 3.99.1 → 3.99.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/seahorse/client/block_io.rb +1 -0
- data/lib/seahorse/client/plugins/response_target.rb +16 -7
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf03bdc54ae7d2b3aaca392c246e2448afe60816e850b6f2389945be397a27f7
|
4
|
+
data.tar.gz: 0615a87c2daa9bc86e416d7403aedf6d934f5694dd1efda76d6821c0caa12ebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a9b4ba7e6cb3be4ab9fc0905a03162c5cc4b2d12509ebfb53eee3a0098f9f74ed0a5634df1f06f16a4101243c5c59c1e9aac2ed7d4f5ed90f1d068b30573856
|
7
|
+
data.tar.gz: f625151a68e124037dd2b0a42067a736b0562bebf975649721896d84460d4e830fad4a879d744ff45af39979f1fc75db5516ebc71b67150b412c8272afc90d01
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.99.
|
1
|
+
3.99.2
|
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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.
|
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
|
+
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
|
-
|
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
|