uc3-dmp-id 0.0.13 → 0.0.15

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: 7305cd9930a1eb2f2feb56fa439ef8ebfc95ce5550184f81801989b570b9e56e
4
- data.tar.gz: dafe80d52cb7ef18b1dc63c15708955eb8abb608bace639d29df2cbcd96e0aaf
3
+ metadata.gz: 065ecc4da26d0fdcba442b32917bb1a5aecd30936b3afb024986aee736e300f1
4
+ data.tar.gz: 89eea9750fe251ae54af39f29517944413386dd60ec6d6824c163dc80a49873f
5
5
  SHA512:
6
- metadata.gz: 2b14d04b52398da535ef787b15e5f883f9fdf93a6adb1adf34c5e82c459f13c40f481fb214bb17f770502e06a8fe67e3a6692359a2a8e96a5a6918dcd2e134c3
7
- data.tar.gz: 3c9eded9447bc3fd9a4b3f2168bc289d812b5b1613a86e4e407ba83ad402be23ca4fd01d113373e93f23c951d1d96d36d6b75863cbad14be27c47376cc9f2ebc
6
+ metadata.gz: ad530cbaa5749ea3eae3a6d2e3b79022626ae9af0992ccc537c87b8c25c51949d87ca9c9227294e08ee95939da98292463e094e9bf8801fb381ffaa23d545b70
7
+ data.tar.gz: 25a35ba9938a827f25a75f88a09b888a2f5637169f1d2c2d2427000f50182e5f48fa1e1fd0f1af7b1930423dcebadac21631d8054f2c2ef7a0e51d2c2d852589
@@ -34,7 +34,7 @@ module Uc3DmpId
34
34
  scan_index_forward: false
35
35
  }
36
36
  client = client.nil? ? Uc3DmpDynamo::Client.new(debug: debug) : client
37
- client.query(**args)
37
+ client.query(args: args, debug: debug)
38
38
  end
39
39
 
40
40
  # Find a DMP based on the contents of the incoming JSON
@@ -77,9 +77,9 @@ puts "FETCHED:"
77
77
  puts resp
78
78
 
79
79
  dmp = resp['dmp'].nil? ? JSON.parse({ dmp: resp }.to_json) : resp
80
- return nil if resp['dmp']['PK'].nil?
80
+ return nil if dmp['dmp']['PK'].nil?
81
81
 
82
- _append_versions(p_key: resp['dmp']['PK'], dmp: dmp, client: client, debug: debug)
82
+ _append_versions(p_key: dmp['dmp']['PK'], dmp: dmp, client: client, debug: debug)
83
83
  end
84
84
 
85
85
  # Attempt to find the DMP item by the provenance system's identifier
@@ -103,7 +103,7 @@ puts resp
103
103
  return resp unless resp.is_a?(Hash)
104
104
 
105
105
  dmp = resp['dmp'].nil? ? JSON.parse({ dmp: resp }.to_json) : resp
106
- return nil if resp['dmp']['PK'].nil?
106
+ return nil if dmp['dmp']['PK'].nil?
107
107
 
108
108
  # If we got a hit, fetch the DMP and return it.
109
109
  by_pk(p_key: dmp['dmp']['PK'], s_key: dmp['dmp']['SK'])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.13'
4
+ VERSION = '0.0.15'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json