uc3-dmp-dynamo 0.0.11 → 0.0.13
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 +4 -4
- data/lib/uc3-dmp-dynamo/client.rb +0 -3
- data/lib/uc3-dmp-dynamo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f311e0dd14cdcdf67fbd1742427a4c0fd93857e7587fe27938788fef0f5b125
|
4
|
+
data.tar.gz: 41fb20ad5923eed5bc661e50bea069b88401d31ff4a60bbd2a2cb719cd0c6a27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8098da3523121f55f043b031d3167e3adce5f09c64dd4baf58f471711bd8d22c28e29033716f09bd09dc432adfb836c621a04d3610cc120f57517c39a2522cdb
|
7
|
+
data.tar.gz: 4dc5945515c0a6ff117e7e378bc32e98345d42f692504d146208fcd77cce92bb9910a348acbf4af4fba4f77062cc6d86d3dfec7312a971413f09b130300ec6ac
|
@@ -91,13 +91,11 @@ module Uc3DmpDynamo
|
|
91
91
|
|
92
92
|
# Create/Update an item
|
93
93
|
def put_item(json:, debug: false)
|
94
|
-
json = Helper.parse_json(json: json)
|
95
94
|
raise ClientError, MSG_INVALID_KEY unless json.is_a?(Hash) && !json['PK'].nil? && !json['SK'].nil?
|
96
95
|
|
97
96
|
resp = @connection.put_item(
|
98
97
|
{ table_name: @table,
|
99
98
|
item: json,
|
100
|
-
consistent_read: false,
|
101
99
|
return_consumed_capacity: debug ? 'TOTAL' : 'NONE'
|
102
100
|
}
|
103
101
|
)
|
@@ -115,7 +113,6 @@ module Uc3DmpDynamo
|
|
115
113
|
|
116
114
|
# Delete an item
|
117
115
|
def delete_item(p_key:, s_key:, debug: false)
|
118
|
-
json = Helper.parse_json(json: json)
|
119
116
|
raise ClientError, MSG_INVALID_KEY unless json.is_a?(Hash) && !json['PK'].nil? && !json['SK'].nil?
|
120
117
|
|
121
118
|
resp = @connection.delete_item(
|