aws-sdk-s3 1.61.0 → 1.61.1

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
- SHA1:
3
- metadata.gz: 0da3bfd3b5b86514694701d043129e63a20061d5
4
- data.tar.gz: 23b6ae8f0aa5237eea50c2f0615085c05fadecac
2
+ SHA256:
3
+ metadata.gz: 554b78dd64434c021c596a24d1f273e25ec603fba1c4391abe0a165bfa1ad620
4
+ data.tar.gz: 5316c7bae24327364e52732774aa8e52cef2f22dd35205d3135fbd1525962af1
5
5
  SHA512:
6
- metadata.gz: c48ccfd91350839d27f92712ce9d167eeff24bbdab758cd1c7ff999c0914510ad1180a888114ba1da9aa2518cb14ca2590f523173b15e93350bfe59af9b032e6
7
- data.tar.gz: 6cc8009f8566e5f44f19e51b6d5e6d083c5247a7c9f0c8518b6383e8022007b6d43082743ececc647924757c66c65543d602f496a3b6739ef56e1329afb1429b
6
+ metadata.gz: b8ec960d635d760cf22739c108e27a757f94001e0f4f5f54a1c207dad940660f20ab85f910381a46c5165100eccebc95c9a283ed46477c14829e101389cdc8b6
7
+ data.tar.gz: b00e11ea37a01ba001edad695b7ed732f3e66a4bb8a5449d5fa59d8002ec35b076f762f451880f22b6b69c9fee1911cae866b6a685b2319c1bcf40de3afe0046
@@ -66,6 +66,6 @@ require_relative 'aws-sdk-s3/event_streams'
66
66
  # @service
67
67
  module Aws::S3
68
68
 
69
- GEM_VERSION = '1.61.0'
69
+ GEM_VERSION = '1.61.1'
70
70
 
71
71
  end
@@ -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.0'
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 = IO.pipe do |read_pipe, write_pipe|
64
- threads = upload_in_threads(read_pipe, completed, upload_part_opts(options).merge(upload_id: upload_id))
65
- block.call(write_pipe)
66
- write_pipe.close
67
- threads.map(&:value).compact
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.0
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-09 00:00:00.000000000 Z
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
- rubyforge_project:
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