aws-sdk-dynamodb 1.41.0 → 1.42.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
  SHA1:
3
- metadata.gz: 81ad191242222469517e5f80653ed01d78faafc0
4
- data.tar.gz: 11e48194b98dd92fdcea796bf60e14a65c094ea4
3
+ metadata.gz: a88d3009c822abdd22389f643210ec0dcb1d7ff0
4
+ data.tar.gz: 4297e24f4a08bd46b5c9cb0e8e45b0303497394a
5
5
  SHA512:
6
- metadata.gz: eddde96b11b5a323b140ed54d7230d0156dc0efb4cb565c04197857303765ba5e6a7bd94f9bd9583c2751bc9008c93717d4ec77ec00dc313747c6e2c6831b38d
7
- data.tar.gz: '03844f501cb7e79932c70abfa80c5d8955c862d8e5c3b8ddf3447734d0036a33c9b4fec5e029db6c2301b785dcfc2c030f27ed0b944daff52832ca0c37197163'
6
+ metadata.gz: 067ff1418ea2b3781148a484fef24f840670ebe0f4d232cb1e8f6d4d53f8edb140127861ac9edc2103dd50df08a3a62d711fd1bc9648ebe91e13cbb2af033fdd
7
+ data.tar.gz: 5c9ae155316ed952907a5a422969dd956f39031d09986bffaa97f8dde9462f35858c099584f87e1332a865b5abd0c2a481de832e76981e6ff8f77488cc5e4026
@@ -44,6 +44,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
44
44
  # @service
45
45
  module Aws::DynamoDB
46
46
 
47
- GEM_VERSION = '1.41.0'
47
+ GEM_VERSION = '1.42.0'
48
48
 
49
49
  end
@@ -21,6 +21,7 @@ module Aws
21
21
  end
22
22
 
23
23
  class Marshaler
24
+ HASHY_TEST = lambda { |val| val.nil? ? false : val.respond_to?(:to_h) }
24
25
  STRINGY_TEST = lambda { |val| val.respond_to?(:to_str) }
25
26
 
26
27
  def format(obj)
@@ -39,6 +40,11 @@ module Aws
39
40
  when Numeric then { n: obj.to_s }
40
41
  when StringIO, IO then { b: obj }
41
42
  when Set then format_set(obj)
43
+ when HASHY_TEST
44
+ hash = obj.to_h
45
+ hash.each.with_object(m:{}) do |(key, value), map|
46
+ map[:m][key.to_s] = format(value)
47
+ end
42
48
  when true, false then { bool: obj }
43
49
  when nil then { null: true }
44
50
  else
@@ -6533,7 +6533,7 @@ module Aws::DynamoDB
6533
6533
  params: params,
6534
6534
  config: config)
6535
6535
  context[:gem_name] = 'aws-sdk-dynamodb'
6536
- context[:gem_version] = '1.41.0'
6536
+ context[:gem_version] = '1.42.0'
6537
6537
  Seahorse::Client::Request.new(handlers, context)
6538
6538
  end
6539
6539
 
@@ -21,6 +21,7 @@ module Aws::DynamoDB
21
21
  @name = extract_name(args, options)
22
22
  @data = options.delete(:data)
23
23
  @client = options.delete(:client) || Client.new(options)
24
+ @waiter_block_warned = false
24
25
  end
25
26
 
26
27
  # @!group Read-Only Attributes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-dynamodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.41.0
4
+ version: 1.42.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: 2019-12-02 00:00:00.000000000 Z
11
+ date: 2020-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core