aws-sdk-s3 1.96.0 → 1.98.0

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: 5b1326d9efe35d08da2bc1e3a669dc1d9682ba159563be2b63e2417dddfb6d49
4
- data.tar.gz: 9f59b3c440260c21d464c611d7ecc5214626c8bed29c7c4ef43c1cee3c6093ec
3
+ metadata.gz: 830f339f4af46f2943da2a8e192bc0475ce6a7716151f330b825a948011a0832
4
+ data.tar.gz: b716331657e8d1294639f01b6489acb991ae65e37c388a90fc8138671caf1ac7
5
5
  SHA512:
6
- metadata.gz: 43dc42ac70585477f4f3572ff970769a919f654dbf8561ebb0c070b0c1219e5c9ec0d754b6c942e22ecf6a636f0b379074b154ed438f402027b75e660a6b0cc4
7
- data.tar.gz: aa0415d8e278e7a06bbcef6318c965d8ccb33d2d2fa1a08b2e688b7e76699abe30421c5c900339752a850eb43c9e9bc1bbd43ac1f3e67ff2934f329a84b757a0
6
+ metadata.gz: 10366799b29c338052196c57a301f112fd46b6a183bd2cbb9661a6ecff45cbce82b8db8beb44f750bb077c592161014098d14dc7fb9e94312d8774fbd5ca738a
7
+ data.tar.gz: e550d2655df0e6da37948a8e3ab7e548f9399aaa54a0c5d69d6f1b58a0a098df6fe70f366a2b09641e4ca26ed061d78ad90c75042858439e3b19e5611baa8d01
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.98.0 (2021-07-30)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.97.0 (2021-07-28)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.96.2 (2021-07-20)
15
+ ------------------
16
+
17
+ * Issue - Fix file downloading edge case for 1 byte multipart ranges (#2561).
18
+
19
+ 1.96.1 (2021-06-10)
20
+ ------------------
21
+
22
+ * Issue - fix GetBucketLocation location_constraint XML parsing (#2536)
23
+
4
24
  1.96.0 (2021-06-03)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.96.0
1
+ 1.98.0
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.0'
72
+ GEM_VERSION = '1.98.0'
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.0'
13922
+ context[:gem_version] = '1.98.0'
13923
13923
  Seahorse::Client::Request.new(handlers, context)
13924
13924
  end
13925
13925
 
@@ -165,8 +165,8 @@ module Aws
165
165
  # to initialize the cipher, and the decrypter truncates the
166
166
  # auth tag from the body when writing the final bytes.
167
167
  def authenticated_decrypter(context, cipher, envelope)
168
- if RUBY_VERSION.match(/1.9/)
169
- raise "authenticated decryption not supported by OpenSSL in Ruby version ~> 1.9"
168
+ if RUBY_VERSION.match(/^1.9/)
169
+ msg = 'authenticated decryption not supported by OpenSSL in Ruby version ~> 1.9'
170
170
  raise Aws::Errors::NonSupportedRubyVersionError, msg
171
171
  end
172
172
  http_resp = context.http_response
@@ -166,8 +166,8 @@ module Aws
166
166
  # to initialize the cipher, and the decrypter truncates the
167
167
  # auth tag from the body when writing the final bytes.
168
168
  def authenticated_decrypter(context, cipher, envelope)
169
- if RUBY_VERSION.match(/1.9/)
170
- raise "authenticated decryption not supported by OpenSSL in Ruby version ~> 1.9"
169
+ if RUBY_VERSION.match(/^1.9/)
170
+ msg = 'authenticated decryption not supported by OpenSSL in Ruby version ~> 1.9'
171
171
  raise Aws::Errors::NonSupportedRubyVersionError, msg
172
172
  end
173
173
  http_resp = context.http_response
@@ -9,7 +9,7 @@ module Aws
9
9
  class EncryptHandler < Seahorse::Client::Handler
10
10
 
11
11
  def call(context)
12
- if RUBY_VERSION.match(/1.9/)
12
+ if RUBY_VERSION.match(/^1.9/)
13
13
  raise "authenticated encryption not supported by OpenSSL in Ruby version ~> 1.9"
14
14
  raise Aws::Errors::NonSupportedRubyVersionError, msg
15
15
  end
@@ -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
 
@@ -11,7 +11,7 @@ module Aws
11
11
  @handler.call(context).on(200) do |response|
12
12
  response.data = S3::Types::GetBucketLocationOutput.new
13
13
  xml = context.http_response.body_contents
14
- matches = xml.match(/>(.+?)<\/LocationConstraint>/)
14
+ matches = xml.match(/<LocationConstraint.*?>(.+?)<\/LocationConstraint>/)
15
15
  response.data[:location_constraint] = matches ? matches[1] : ''
16
16
  end
17
17
  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.96.0
4
+ version: 1.98.0
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-03 00:00:00.000000000 Z
11
+ date: 2021-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '3'
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 3.112.0
50
+ version: 3.119.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '3'
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 3.112.0
60
+ version: 3.119.0
61
61
  description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
62
62
  This gem is part of the AWS SDK for Ruby.
63
63
  email: