uc3-dmp-id 0.0.125 → 0.0.127
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/creator.rb +3 -4
- data/lib/uc3-dmp-id/schemas/amend.rb +1 -0
- data/lib/uc3-dmp-id/schemas/author.rb +1 -0
- 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: 505619f9a95410b5398d081efe3f01b98b34a438d5bcfc74403e06b9ea3d1b8a
|
4
|
+
data.tar.gz: 957721679c8a517c6210c2f98cf8002e887c06e1288d2f07bf7523183e78fd86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44775e67e24a75d165a8b6ed32f22354fb1cae956cdd1ab49296f00d83a40a2a41dcb11e7c10de3c686c475265b162763fe09c18ac44e8522488deb79b3fe4e
|
7
|
+
data.tar.gz: c9857691517801a6985826f7816cad3afad3e08c0579c129d310aa43ed1a72c1bc3dc7b6f519f69986ec0c00b664cdb58a8d4f469c7f0ae88f47058ef9ca983d
|
data/lib/uc3-dmp-id/creator.rb
CHANGED
@@ -58,13 +58,12 @@ module Uc3DmpId
|
|
58
58
|
|
59
59
|
def _preregister_dmp_id(client:, provenance:, json:, logger: nil)
|
60
60
|
# Use the specified DMP ID if the provenance has permission
|
61
|
-
|
61
|
+
seeding = provenance.fetch('seedingWithLiveDmpIds', false).to_s.downcase == 'true'
|
62
62
|
seed_id = json.fetch('dmp', {})['dmproadmap_external_system_identifier']
|
63
63
|
|
64
64
|
# If we are seeding already registered DMP IDs from the Provenance system, then return the original DMP ID
|
65
|
-
|
66
|
-
|
67
|
-
provenance.fetch('seedingWithLiveDmpIds', false).to_s.downcase == 'true'
|
65
|
+
logger.debug(message: "Seeding DMP ID with #{seed_id.gsub(%r{https?://}, '')}") if seeding && !seed_id.nil?
|
66
|
+
return seed_id.gsub(%r{https?://}, '') if seeding && !seed_id.nil?
|
68
67
|
|
69
68
|
#Generate a new DMP ID
|
70
69
|
dmp_id = ''
|
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.127
|
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-08-
|
11
|
+
date: 2023-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|