uc3-dmp-id 0.0.33 → 0.0.34
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 +1 -1
- 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: 34abba8c31224a2fd5609c38cf4123adfbb65c0fee23ea2b7c60be624c93e4bc
|
4
|
+
data.tar.gz: a00f307c3871588552faf3dccc2a7bdb42ab23290454fe5c870f6c6606690516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4a03380d9d10ef00523cd5969e50ef6aa8e9e97e23fac56d56df7a5016ae815879e19676057a4ab48682ede6f4119a44f675937f11fb92653429bd405123fdc
|
7
|
+
data.tar.gz: c28117b7464eae273667331d300f82d84d0c820af60821e964b3665925c324f5ab33a53ed11e5f69bf295187d516ce4799d3a859fd24450c8f80059a5b340469
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -24,7 +24,7 @@ module Uc3DmpId
|
|
24
24
|
# Find a DMP based on the contents of the incoming JSON
|
25
25
|
# -------------------------------------------------------------------------
|
26
26
|
def by_json(json:, debug: false)
|
27
|
-
json =
|
27
|
+
json = Helper.parse_json(json: json)&.fetch('dmp', {})
|
28
28
|
raise FinderError, MSG_INVALID_ARGS if json.nil? || (json['PK'].nil? && json['dmp_id'].nil?)
|
29
29
|
|
30
30
|
p_key = json['PK']
|
data/lib/uc3-dmp-id/version.rb
CHANGED