dynamini 1.4.3 → 1.4.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dynamini/base.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 785c01327ea477e0c86ce9363c710ffe185977b7
4
- data.tar.gz: 193a777b00b85ddb886e75f004f021783ffbdab4
3
+ metadata.gz: f65e4e539187be02eec99df8a3ef5e0655e48d9a
4
+ data.tar.gz: 725533bd0c3e8e6957991a254b6b28a6769ca312
5
5
  SHA512:
6
- metadata.gz: e06299539113f9dead461b3b6498813db7150210e7fec4c807629f7868b1e135b5f0331dc579dcab96fccc10d8185c25e29a512c156f7483a30e96aafedb8f14
7
- data.tar.gz: 51f9b6b2af4ee31edf97250066d7fa5b20405cf43486d4331cae9427d6552e932976d50ae2c8b6dfec7ee6d5645143f263924df134a9e0205e8023bcf2bc39ae
6
+ metadata.gz: 79e2610363aac43843fc7b3052ecccb8c2118759cbf845196b5acbba349a586a7b8a582ede16f9ee0651c5a66dffff832303aef26b7694782cbb22adfc6ee2e1
7
+ data.tar.gz: abb930cd9c43428e0caaf4d22299721626e02ec3dbf6f79a68131edde9801e055b8772b60d6b9e7140684c6322861ae2e1e7f6a0f940c78e7b22b64a47387712
data/lib/dynamini/base.rb CHANGED
@@ -78,11 +78,11 @@ module Dynamini
78
78
  end
79
79
 
80
80
  def find_or_new(key)
81
- response = client.get_item(table_name: table_name, key: {hash_key => key})
81
+ response = client.get_item(table_name: table_name, key: {hash_key => key.to_s})
82
82
  if response.item
83
83
  self.new(response.item.symbolize_keys, false)
84
84
  else
85
- self.new(hash_key => key)
85
+ self.new(hash_key => key.to_s)
86
86
  end
87
87
  end
88
88
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamini
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Ward