dynameek 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ module Dynameek
2
2
  module Model
3
3
  module DynamoDb
4
4
  def convert_from_dynamodb(type, value)
5
+ return nil if value.nil?
5
6
  case type
6
7
  when :integer
7
8
  value.to_i
@@ -18,6 +19,7 @@ module Dynameek
18
19
  end
19
20
  end
20
21
  def convert_to_dynamodb(type, value)
22
+ return nil if value.nil?
21
23
  case type
22
24
  when :datetime
23
25
  value.to_time.to_f
@@ -1,3 +1,3 @@
1
1
  module Dynameek
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynameek
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.5
5
+ version: 0.3.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Max Dupenois
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-04-17 00:00:00 Z
13
+ date: 2013-05-03 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk