uc3-dmp-id 0.0.50 → 0.0.51

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: be8e880666031df3010f048c10afe83dbd614d7a5e51015f53fc67964a1519f5
4
- data.tar.gz: d765faf0c263d97c09ee30a0b64aa176e9968fbe1b4eb065b273d3a1aacfc6f5
3
+ metadata.gz: bfeca7fa5375efa50a0ebcf8226695a7a172d9664a7a97444d8654b01e67a088
4
+ data.tar.gz: 2a31f49349406d4622653ed033029d22ae9deeb375b4323f1248860250ce0378
5
5
  SHA512:
6
- metadata.gz: 422f3912f9fa3eda4fa33a989e898378f3afb6080c8191c7ae43de6edea116b6f3aed0859b1825eddf09582416b5c5f69b51175a330846d3fed8fddcb197a380
7
- data.tar.gz: a819663b7e7bbe5be506a71b83d94a337dd3699c5f3cde9378f6b5bf2323dda56cca4e9b170c0d81d36e840d4939d556fd064a8329d1e820f62a743e47397176
6
+ metadata.gz: 9b3a0d5540564443aebe581e57f9d026db7caa7dd89cc9dd9128e5ad75278703b29ea8a1442d42d8a849ee84fcdd793d709f16ec241c4b109390387e544f6317
7
+ data.tar.gz: 5143d9fca0e5f8352c48b1bacecdab81f5a7d05acf29bda69b54fe28cddda4a8f3c843f27d559f1f4b84aab326655b1689d6b0b69516be6d8c2ed54cc34c7c9b
@@ -54,7 +54,7 @@ module Uc3DmpId
54
54
 
55
55
  def _preregister_dmp_id(client:, provenance:, json:, debug: false)
56
56
  # Use the specified DMP ID if the provenance has permission
57
- existing = json.fetch('dmp_id', {})
57
+ existing = json.fetch('dmp', {}).fetch('dmp_id', {})
58
58
  id = existing['identifier'].gsub(%r{https?://}, Helper::PK_DMP_PREFIX) if existing.is_a?(Hash) &&
59
59
  !existing['identifier'].nil?
60
60
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.50'
4
+ VERSION = '0.0.51'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.50
4
+ version: 0.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley