uc3-dmp-id 0.0.13 → 0.0.14
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 +3 -3
- data/lib/uc3-dmp-id/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: db1f76572c527c11eaf8e14afa51c095eab796c53c631d6fe1b78bca2c5f3395
|
4
|
+
data.tar.gz: 671c4b0a629837069b23286876b2cd871caab2f9df1bc011b91e68f68bf45bff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76c00b9f95b7b5fefac06ba75696e6b5fc6b1ddb244093888b08899b79d2df98996a70c7c3026bcebcc3bf91030fced1172587dc1494419dad101cd30e1a87bf
|
7
|
+
data.tar.gz: 4664882d1dbf1ef2ba593b8ca4858829b4c05e767bb94e107a7db6b24370ca6739983b53b66eef56909bb7f713fdaeba05f8d71217ae181ad87ef43824d6d64d
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -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