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 +4 -4
- data/lib/uc3-dmp-id/finder.rb +4 -4
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 065ecc4da26d0fdcba442b32917bb1a5aecd30936b3afb024986aee736e300f1
|
4
|
+
data.tar.gz: 89eea9750fe251ae54af39f29517944413386dd60ec6d6824c163dc80a49873f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad530cbaa5749ea3eae3a6d2e3b79022626ae9af0992ccc537c87b8c25c51949d87ca9c9227294e08ee95939da98292463e094e9bf8801fb381ffaa23d545b70
|
7
|
+
data.tar.gz: 25a35ba9938a827f25a75f88a09b888a2f5637169f1d2c2d2427000f50182e5f48fa1e1fd0f1af7b1930423dcebadac21631d8054f2c2ef7a0e51d2c2d852589
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -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(
|
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
|
80
|
+
return nil if dmp['dmp']['PK'].nil?
|
81
81
|
|
82
|
-
_append_versions(p_key:
|
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
|
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'])
|
data/lib/uc3-dmp-id/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|