aws-sdk-core 3.104.1 → 3.104.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: 70a6905bf06dee70851564691ecbfd4df7e750c087d302c2c32c711c6d628c2e
4
- data.tar.gz: 7a895028e693d8ec2b65930b212e2e83ff3edccce7f3cd594df31208d00e9796
3
+ metadata.gz: 7ea4e87ee4bcc585dd68a7d3f84a7541377201010884757c328d5fd2e8e54df3
4
+ data.tar.gz: d46b0b471b52085428779e04efd7f408cc7a13783e95e13c119ba9432c748d1e
5
5
  SHA512:
6
- metadata.gz: 8a3c29b11ac10b61679545cb7c133b272f25f7717d8cbb935e85272ad588c77b8db61483e24f6d9624676704fc04db8c4c280e6d89f6399bd38816d3184a4172
7
- data.tar.gz: 673a1eb3b3a33e181426f5585117834c9c69ee4226adcae4b5c9c05e9d8e59d8311d26befcadc0d6acba21de01d762557862ac88bc5124a67e763000e1abd40d
6
+ metadata.gz: cc2c0df6b4d9ae1ae6674ca1c2b47b27296bf60d407cced97f49026c0945e958e3e558818544e043b08bfebac1410f288245c21b02a43b621500f1b761b6afc9
7
+ data.tar.gz: d845d824b9a0a6647582e094a11de8510b4a7a31de78bb09cf74ec55061a78bf788789b08e72a3b41b15eee4ecb84a1f00fe94d59ef6edc04d1b156bb4ee7937
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.104.1
1
+ 3.104.2
@@ -143,8 +143,22 @@ module Aws
143
143
  errors << expected_got(context, "true or false", value)
144
144
  end
145
145
  when BlobShape
146
- unless value.is_a?(String) || io_like?(value)
147
- errors << expected_got(context, "a String or IO object", value)
146
+ unless value.is_a?(String)
147
+ if streaming_input?(ref)
148
+ unless io_like?(value, _require_size = false)
149
+ errors << expected_got(
150
+ context,
151
+ "a String or IO like object that supports read and rewind",
152
+ value
153
+ )
154
+ end
155
+ elsif !io_like?(value, _require_size = true)
156
+ errors << expected_got(
157
+ context,
158
+ "a String or IO like object that supports read, rewind, and size",
159
+ value
160
+ )
161
+ end
148
162
  end
149
163
  else
150
164
  raise "unhandled shape type: #{ref.shape.class.name}"
@@ -167,8 +181,13 @@ module Aws
167
181
  end
168
182
  end
169
183
 
170
- def io_like?(value)
171
- value.respond_to?(:read) && value.respond_to?(:rewind)
184
+ def io_like?(value, require_size = true)
185
+ value.respond_to?(:read) && value.respond_to?(:rewind) &&
186
+ (!require_size || value.respond_to?(:size))
187
+ end
188
+
189
+ def streaming_input?(ref)
190
+ (ref["streaming"] || ref.shape["streaming"])
172
191
  end
173
192
 
174
193
  def error_messages(errors)
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-sts/customizations'
45
45
  # @service
46
46
  module Aws::STS
47
47
 
48
- GEM_VERSION = '3.104.1'
48
+ GEM_VERSION = '3.104.2'
49
49
 
50
50
  end
@@ -2189,7 +2189,7 @@ module Aws::STS
2189
2189
  params: params,
2190
2190
  config: config)
2191
2191
  context[:gem_name] = 'aws-sdk-core'
2192
- context[:gem_version] = '3.104.1'
2192
+ context[:gem_version] = '3.104.2'
2193
2193
  Seahorse::Client::Request.new(handlers, context)
2194
2194
  end
2195
2195
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.104.1
4
+ version: 3.104.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: 2020-07-20 00:00:00.000000000 Z
11
+ date: 2020-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath