uc3-dmp-dynamo 0.0.11 → 0.0.13

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: cafdf1d130211a041170de96bbb3fb658030f948391db697843433680f4d6971
4
- data.tar.gz: f7e0e5317a22cb9efec2127332989e8b6465b599deee9a227cd31c3b2e705a2b
3
+ metadata.gz: 0f311e0dd14cdcdf67fbd1742427a4c0fd93857e7587fe27938788fef0f5b125
4
+ data.tar.gz: 41fb20ad5923eed5bc661e50bea069b88401d31ff4a60bbd2a2cb719cd0c6a27
5
5
  SHA512:
6
- metadata.gz: 3671178ca35799ab235a8f11065457b6fea2897fd32039f3c3d92ded435bedf236af2767790a4f80ef2c7c5bbf55ee00ac8671851bf15b612180ca89a7101084
7
- data.tar.gz: a14e9969869432a435242e5d600eb3537e930f6cd548e9dbe5bca64bd9f706de7b359e3c5fe93d75a82835a4b8b96bc2a8b50b874f9d5e4b30bd443b63a37b5f
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(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpDynamo
4
- VERSION = '0.0.11'
4
+ VERSION = '0.0.13'
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.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley