aws-sdk-s3 1.96.1 → 1.96.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: cf563dfa58cc9e38a37fc543994cf9722995f065e9fc7aa70e03721e5e298945
4
- data.tar.gz: ad5b910362d25d19f1f5496d4813afe0b5e7d9094be3c20f046e7a211c780a4b
3
+ metadata.gz: 242ed586795b4719f27d124b42faaa419bf14d4c5dc3b612db75583df4563685
4
+ data.tar.gz: dadf398788037a0cd952f24aa0ff0e0f11de1a3af6223381c720effee0ca4bde
5
5
  SHA512:
6
- metadata.gz: 73b8d0b4e05d6c10baf705888948ad2ec818de471badcf46ff8a8d83ca0fbbcc440cd5fb32b2d453f79d30178f0e079ad3b115880adf92265bd508624bd81421
7
- data.tar.gz: cb09214749258686bc08c0ec50a2be0d919037e37cdbafa7a0ce017cdeb6d002df918945d95c6cc403eac3745c1b78aca49692325899acf8ed3fa035ee1ae1a8
6
+ metadata.gz: 1095e47c4edccb43eb079cfbc7dadb9b6fa077d7bf2344571041cede5e587ac70d76cecdef4f514890f5c576416ffd89d6ac07bd876559bb59a229a1bb0dc103
7
+ data.tar.gz: 7df71120e7b7da8eee77f7df0fbe64a86f4452b137909578aee664d80c7126591b728b4a8efbaa8c367a102e6ab912b8cae961955dfa8fc2124aed82e0f1660f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.96.2 (2021-07-20)
5
+ ------------------
6
+
7
+ * Issue - Fix file downloading edge case for 1 byte multipart ranges (#2561).
8
+
4
9
  1.96.1 (2021-06-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.96.1
1
+ 1.96.2
data/lib/aws-sdk-s3.rb CHANGED
@@ -69,6 +69,6 @@ require_relative 'aws-sdk-s3/event_streams'
69
69
  # @!group service
70
70
  module Aws::S3
71
71
 
72
- GEM_VERSION = '1.96.1'
72
+ GEM_VERSION = '1.96.2'
73
73
 
74
74
  end
@@ -13919,7 +13919,7 @@ module Aws::S3
13919
13919
  params: params,
13920
13920
  config: config)
13921
13921
  context[:gem_name] = 'aws-sdk-s3'
13922
- context[:gem_version] = '1.96.1'
13922
+ context[:gem_version] = '1.96.2'
13923
13923
  Seahorse::Client::Request.new(handlers, context)
13924
13924
  end
13925
13925
 
@@ -94,7 +94,12 @@ module Aws
94
94
  if @chunk_size && @chunk_size > file_size
95
95
  raise ArgumentError, ":chunk_size shouldn't exceed total file size."
96
96
  else
97
- @chunk_size || [(file_size.to_f / MAX_PARTS).ceil, MIN_CHUNK_SIZE].max.to_i
97
+ chunk_size = @chunk_size || [
98
+ (file_size.to_f / MAX_PARTS).ceil,
99
+ MIN_CHUNK_SIZE
100
+ ].max.to_i
101
+ chunk_size -= 1 if file_size % chunk_size == 1
102
+ chunk_size
98
103
  end
99
104
  end
100
105
 
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.96.1
4
+ version: 1.96.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: 2021-06-10 00:00:00.000000000 Z
11
+ date: 2021-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms