aws-sdk-s3 1.61.0 → 1.61.1
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 +5 -5
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +15 -6
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 554b78dd64434c021c596a24d1f273e25ec603fba1c4391abe0a165bfa1ad620
|
4
|
+
data.tar.gz: 5316c7bae24327364e52732774aa8e52cef2f22dd35205d3135fbd1525962af1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8ec960d635d760cf22739c108e27a757f94001e0f4f5f54a1c207dad940660f20ab85f910381a46c5165100eccebc95c9a283ed46477c14829e101389cdc8b6
|
7
|
+
data.tar.gz: b00e11ea37a01ba001edad695b7ed732f3e66a4bb8a5449d5fa59d8002ec35b076f762f451880f22b6b69c9fee1911cae866b6a685b2319c1bcf40de3afe0046
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -11764,7 +11764,7 @@ module Aws::S3
|
|
11764
11764
|
params: params,
|
11765
11765
|
config: config)
|
11766
11766
|
context[:gem_name] = 'aws-sdk-s3'
|
11767
|
-
context[:gem_version] = '1.61.
|
11767
|
+
context[:gem_version] = '1.61.1'
|
11768
11768
|
Seahorse::Client::Request.new(handlers, context)
|
11769
11769
|
end
|
11770
11770
|
|
@@ -60,12 +60,21 @@ module Aws
|
|
60
60
|
|
61
61
|
def upload_parts(upload_id, options, &block)
|
62
62
|
completed = Queue.new
|
63
|
-
errors =
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
63
|
+
errors = begin
|
64
|
+
IO.pipe do |read_pipe, write_pipe|
|
65
|
+
threads = upload_in_threads(read_pipe, completed, upload_part_opts(options).merge(upload_id: upload_id))
|
66
|
+
begin
|
67
|
+
block.call(write_pipe)
|
68
|
+
ensure
|
69
|
+
# Ensure the pipe is closed to avoid https://github.com/jruby/jruby/issues/6111
|
70
|
+
write_pipe.close
|
71
|
+
end
|
72
|
+
threads.map(&:value).compact
|
73
|
+
end
|
74
|
+
rescue => e
|
75
|
+
[e]
|
68
76
|
end
|
77
|
+
|
69
78
|
if errors.empty?
|
70
79
|
Array.new(completed.size) { completed.pop }.sort_by { |part| part[:part_number] }
|
71
80
|
else
|
@@ -149,7 +158,7 @@ module Aws
|
|
149
158
|
nil
|
150
159
|
rescue => error
|
151
160
|
# keep other threads from uploading other parts
|
152
|
-
mutex.synchronize { read_pipe.close_read }
|
161
|
+
mutex.synchronize { read_pipe.close_read unless read_pipe.closed? }
|
153
162
|
error
|
154
163
|
end
|
155
164
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.61.
|
4
|
+
version: 1.61.1
|
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-03-
|
11
|
+
date: 2020-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|
@@ -161,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
- !ruby/object:Gem::Version
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
|
-
|
165
|
-
rubygems_version: 2.5.2.3
|
164
|
+
rubygems_version: 3.0.3
|
166
165
|
signing_key:
|
167
166
|
specification_version: 4
|
168
167
|
summary: AWS SDK for Ruby - Amazon S3
|