aws-sdk-s3 1.232.2 → 1.232.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecc05275841ac516f5ca697b319593901203e00c3ef3674870fa0ae842c11453
4
- data.tar.gz: 59326a69cd6659c12d2975b9d180aafa4be788d567048f03ad6a1b22f9e1e382
3
+ metadata.gz: 1e53747d17067bcac309f1ce7937b8c9a05760df36e34c63f9da0c2dd428f3ad
4
+ data.tar.gz: 5c0eaa9a807e3035ca1550cdef86e340a48c1cc715ec81d0ff26dcf1d892f13d
5
5
  SHA512:
6
- metadata.gz: 0657b49f47f041cd1d3cfed2f1eb6edcd2c0529809f83e94b8986f008615c3b34df9f75937026f06578709895e21c811ec258dfd52275455d1647ca0c9243194
7
- data.tar.gz: fd1d722abbeb71f60fe3ec8d3ecf4c1a808d2d8e54ec9f4260f1dc628c7797c343671d7f001e4d0df85004cea2a26c7df71897aa6258b9f8ed7774fd2f2c0388
6
+ metadata.gz: 2477bd4aa0776bbb4e050c3104d43289bb7885dd962b121215f35411435fe4ad1bfcbb0becc8e8167dc6684da467a36c8c6fa0c4d00d79844cf7fc50fcfa613a
7
+ data.tar.gz: cd587d89b38d9fdf9c92f1ec3f1925dff7361d6505d27d191fb81171e020fa9222bf8351f3e1ac2beffc2c9870eeff60d30b842a0494b1f3bd93956839fe9edc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.232.3 (2026-09-28)
5
+ ------------------
6
+
7
+ * Issue - Remove `:thread_count` from transfer options even when a custom `:executor` is configured on `TransferManager`, fixing an `ArgumentError` raised on single-part `upload_file` calls.
8
+
9
+ * Issue - Fix `:thread_count` being ignored by the deprecated `Object#download_file`, which always used the default thread count.
10
+
4
11
  1.232.2 (2026-09-25)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.232.2
1
+ 1.232.3
@@ -24209,7 +24209,7 @@ module Aws::S3
24209
24209
  tracer: tracer
24210
24210
  )
24211
24211
  context[:gem_name] = 'aws-sdk-s3'
24212
- context[:gem_version] = '1.232.2'
24212
+ context[:gem_version] = '1.232.3'
24213
24213
  Seahorse::Client::Request.new(handlers, context)
24214
24214
  end
24215
24215
 
@@ -567,7 +567,7 @@ module Aws
567
567
  # @see Client#head_object
568
568
  def download_file(destination, options = {})
569
569
  download_opts = options.merge(bucket: bucket_name, key: key)
570
- executor = DefaultExecutor.new(max_threads: download_opts.delete([:thread_count]))
570
+ executor = DefaultExecutor.new(max_threads: download_opts.delete(:thread_count))
571
571
  begin
572
572
  downloader = FileDownloader.new(client: client, executor: executor)
573
573
  Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
@@ -160,7 +160,8 @@ module Aws
160
160
  # * `:errors` - Array of errors for failed downloads (only present when failures occur)
161
161
  def download_directory(destination, bucket:, **options)
162
162
  Aws::Plugins::UserAgent.metric('S3_TRANSFER', 'S3_TRANSFER_DOWNLOAD_DIRECTORY') do
163
- executor = @executor || DefaultExecutor.new(max_threads: options.delete(:thread_count))
163
+ thread_count = options.delete(:thread_count)
164
+ executor = @executor || DefaultExecutor.new(max_threads: thread_count)
164
165
  begin
165
166
  downloader = DirectoryDownloader.new(client: @client, executor: executor, logger: @logger)
166
167
  downloader.download(destination, bucket: bucket, **options)
@@ -247,7 +248,8 @@ module Aws
247
248
  # @see Client#head_object
248
249
  def download_file(destination, bucket:, key:, **options)
249
250
  download_opts = options.merge(bucket: bucket, key: key)
250
- executor = @executor || DefaultExecutor.new(max_threads: download_opts.delete(:thread_count))
251
+ thread_count = download_opts.delete(:thread_count)
252
+ executor = @executor || DefaultExecutor.new(max_threads: thread_count)
251
253
  begin
252
254
  downloader = FileDownloader.new(client: @client, executor: executor)
253
255
  downloader.download(destination, download_opts)
@@ -365,7 +367,8 @@ module Aws
365
367
  # * `:errors` - Array of error objects for failed uploads (only present when failures occur)
366
368
  def upload_directory(source, bucket:, **options)
367
369
  Aws::Plugins::UserAgent.metric('S3_TRANSFER', 'S3_TRANSFER_UPLOAD_DIRECTORY') do
368
- executor = @executor || DefaultExecutor.new(max_threads: options.delete(:thread_count))
370
+ thread_count = options.delete(:thread_count)
371
+ executor = @executor || DefaultExecutor.new(max_threads: thread_count)
369
372
  begin
370
373
  uploader = DirectoryUploader.new(client: @client, executor: executor, logger: @logger)
371
374
  uploader.upload(source, bucket, **options.merge(http_chunk_size: resolve_http_chunk_size(options)))
@@ -450,8 +453,8 @@ module Aws
450
453
  def upload_file(source, bucket:, key:, **options)
451
454
  upload_opts = options.merge(bucket: bucket, key: key)
452
455
  http_chunk_size = resolve_http_chunk_size(upload_opts)
453
-
454
- executor = @executor || DefaultExecutor.new(max_threads: upload_opts.delete(:thread_count))
456
+ thread_count = upload_opts.delete(:thread_count)
457
+ executor = @executor || DefaultExecutor.new(max_threads: thread_count)
455
458
  begin
456
459
  uploader = FileUploader.new(
457
460
  multipart_threshold: upload_opts.delete(:multipart_threshold),
@@ -521,7 +524,8 @@ module Aws
521
524
  # @see Client#upload_part
522
525
  def upload_stream(bucket:, key:, **options, &block)
523
526
  upload_opts = options.merge(bucket: bucket, key: key)
524
- executor = @executor || DefaultExecutor.new(max_threads: upload_opts.delete(:thread_count))
527
+ thread_count = upload_opts.delete(:thread_count)
528
+ executor = @executor || DefaultExecutor.new(max_threads: thread_count)
525
529
  begin
526
530
  uploader = MultipartStreamUploader.new(
527
531
  client: @client,
data/lib/aws-sdk-s3.rb CHANGED
@@ -75,7 +75,7 @@ module Aws::S3
75
75
  autoload :ObjectVersion, 'aws-sdk-s3/object_version'
76
76
  autoload :EventStreams, 'aws-sdk-s3/event_streams'
77
77
 
78
- GEM_VERSION = '1.232.2'
78
+ GEM_VERSION = '1.232.3'
79
79
 
80
80
  end
81
81
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.232.2
4
+ version: 1.232.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services