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 +4 -4
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/lib/aws-sdk-dynamodb/attribute_value.rb +6 -0
- data/lib/aws-sdk-dynamodb/client.rb +1 -1
- data/lib/aws-sdk-dynamodb/table.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a88d3009c822abdd22389f643210ec0dcb1d7ff0
|
4
|
+
data.tar.gz: 4297e24f4a08bd46b5c9cb0e8e45b0303497394a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 067ff1418ea2b3781148a484fef24f840670ebe0f4d232cb1e8f6d4d53f8edb140127861ac9edc2103dd50df08a3a62d711fd1bc9648ebe91e13cbb2af033fdd
|
7
|
+
data.tar.gz: 5c9ae155316ed952907a5a422969dd956f39031d09986bffaa97f8dde9462f35858c099584f87e1332a865b5abd0c2a481de832e76981e6ff8f77488cc5e4026
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
@@ -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.
|
6536
|
+
context[:gem_version] = '1.42.0'
|
6537
6537
|
Seahorse::Client::Request.new(handlers, context)
|
6538
6538
|
end
|
6539
6539
|
|
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.
|
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:
|
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
|