uc3-dmp-dynamo 0.0.15 → 0.0.16

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
  SHA256:
3
- metadata.gz: 0e232855e0dddf52bce679e4128755c52ad6b168c76ee8e95024cf552756796d
4
- data.tar.gz: 6bb543acf5b330f2cd69e929fea73f9c855586e88a46d3f5a62451f78ab0e782
3
+ metadata.gz: 2fcdba6dc1e42019bc664159cf1e2cfa4e89658a5f05b3370d3e4172e8e6a4e3
4
+ data.tar.gz: 9a0046dc12b25523263f85669173db965011fe2fd97086cbd20b27419b674b62
5
5
  SHA512:
6
- metadata.gz: 4d72c2ebab13c2abe974e6849a8209e5b836c05cb091885be47b800e0183e335ece6df20d263e5437262f077f396c205fab68ff272868c99d67d99140efd57e8
7
- data.tar.gz: ce129bdb743e76939d465dff87c3e8e45b0b8954d5ada0218e304c4a8719bf9bbd6f9165a2ea6b7d553b85df21e9deaa3da7dbee3b553e4208999b64f3530f78
6
+ metadata.gz: 5b3e34ecf69e21e83a3a19affd699f4e2a27c0bf9a32ff5b39fb854b97f1b15c72a90e1874fad2f4b8ce9f7c948135114217ef05153e35bff61529d5db7bc236
7
+ data.tar.gz: 4a87b60f7eb9d4df527ffb9097d187199281b4043bfcdb758993f764686e75556ed355985a37a1feb3e7006c92f34cb801dc5ba0898579e93436664f3e83ca8c
@@ -21,10 +21,10 @@ module Uc3DmpDynamo
21
21
  end
22
22
 
23
23
  # Quick get_item that only returns the PK to validate that the item exists
24
- def pk_exists?(key:)
24
+ def pk_exists?(key:, logger: nil)
25
25
  return nil unless key.is_a?(Hash) && !key['PK'].nil?
26
26
 
27
- resp = client.get_item(table_name: @table, key: key, projection_expression: 'PK')
27
+ resp = client.get_item(table_name: @table, key: key, projection_expression: 'PK', logger: logger)
28
28
  resp.item.is_a?(Hash) && resp.item['PK'] == key['PK']
29
29
  end
30
30
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpDynamo
4
- VERSION = '0.0.15'
4
+ VERSION = '0.0.16'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-dynamo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley