aws-record 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3d5eae4de88bc967f473b49bf9294047a6ee6821
4
- data.tar.gz: 5c2e4404ad3b47f909d572b546f3cd70a8e0e93d
2
+ SHA256:
3
+ metadata.gz: 7b1ff4831b48174ce4404f6f24108ee85b11a104da96aa5176a218fdfeb8dcb8
4
+ data.tar.gz: 0610b848e4705bbbb013e8833b8b54f701f100a617714ae9f5bc7891f2d63a99
5
5
  SHA512:
6
- metadata.gz: c261673f84aa256222fdd9c17f715ab9161c1a1a1fd23978b494c62627312d12dd314d824321ef43296f87fe92be35ab135de104b6094bb753b746fe3e7235f6
7
- data.tar.gz: 7742ea625d83be44c72602f0d55b05f7614f87971cd69bcb402f02de0e7c55057b9870a77b43b0d2adfe02f428565b7be7e770317ba9220bc8b2386528306750
6
+ metadata.gz: fa1408a44611715ae071ce35b937f40d2c8eae43d1dff2c4d4848a000b34e6944591f56478175ca5b5c3fb0e08e0711cb23ef171def537983d250854ff52a31d
7
+ data.tar.gz: 73a5ae3dc603b55e2827cd8126219bddc066a61674ff328a6beed41fca855b3c2e3c8161be3fe57fdec6c7d095b0c482495200b87e5a9f5f10672b7e0b0e4a6e
@@ -55,6 +55,8 @@ module Aws
55
55
  raw_value
56
56
  when Integer # timestamp
57
57
  ::Time.at(raw_value)
58
+ when BigDecimal
59
+ ::Time.at(raw_value)
58
60
  else # Date, DateTime, or String
59
61
  ::Time.parse(raw_value.to_s)
60
62
  end
@@ -74,18 +74,18 @@ module Aws
74
74
  # end
75
75
  # end
76
76
  #
77
- # @example A model with a Time to Live attribute
78
- # class ExpiringTokens
79
- # string_attr :token_uuid, hash_key: true
80
- # epoch_time_attr :ttl
81
- # end
77
+ # @example A model with a Time to Live attribute
78
+ # class ExpiringTokens
79
+ # string_attr :token_uuid, hash_key: true
80
+ # epoch_time_attr :ttl
81
+ # end
82
82
  #
83
- # table_config = Aws::Record::TableConfig.define do |t|
84
- # t.model_class ExpiringTokens
85
- # t.read_capacity_units 10
86
- # t.write_capacity_units 1
87
- # t.ttl_attribute :ttl
88
- # end
83
+ # table_config = Aws::Record::TableConfig.define do |t|
84
+ # t.model_class ExpiringTokens
85
+ # t.read_capacity_units 10
86
+ # t.write_capacity_units 1
87
+ # t.ttl_attribute :ttl
88
+ # end
89
89
  #
90
90
  class TableConfig
91
91
 
@@ -13,6 +13,6 @@
13
13
 
14
14
  module Aws
15
15
  module Record
16
- VERSION = '2.1.1'
16
+ VERSION = '2.1.2'
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.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: 2018-07-10 00:00:00.000000000 Z
11
+ date: 2018-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.6.13
82
+ rubygems_version: 2.7.6
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: AWS Record library for Amazon DynamoDB