uc3-dmp-id 0.0.73 → 0.0.74

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: 887398e3e0a37412b53474a625428c286279daec1c7a7c2ef6bd809d7fc7c7e7
4
- data.tar.gz: ae415d68ee2443712e08c92328dc2770bfeae68135143afb8bea946d7204939d
3
+ metadata.gz: aafd3e027681cfa713fad3c48471dae7a192cd844546e67a55cec59ae0c2e1d8
4
+ data.tar.gz: deda47068b080ccbfddd35091cde8626bde787110ae5a4df6bb204f0b248ff89
5
5
  SHA512:
6
- metadata.gz: ba0cb83cf68f8d4d30200e628790a9c55c78ed094612e025c70de6f547453ef269612d8ef6ac78c29363e5e9052723b46cded49ca6f20ec235f81e99074fe830
7
- data.tar.gz: 2106286ee96a94ed380c9dea0dcdde7aa629d39bf986efa1cd40c3a8ec6ea150c924ce41c633f8de19b4e6edccc50ffe981112d4495ae35451c6f2dd2932773f
6
+ metadata.gz: 578c94e8fc0da1b8bb36b163eca0cdd656fc1ae63cbdb02f4be104a6746d137f83b5dc6cd36424549c8f227eba20b69f7058710fb188a400fa546db28a52e08a
7
+ data.tar.gz: fc2e39ea16382559b2eac7459528e7cf241623dd9256497088f4c000819dda5d491a80a7f555ed6e357a510d85228884aa842c38b5175e64c15c0666dfb2df26
@@ -57,9 +57,9 @@ module Uc3DmpId
57
57
  seed_id = json.fetch('dmp', {})['dmproadmap_external_system_identifier']
58
58
 
59
59
  # If we are seeding already registered DMP IDs from the Provenance system, then return the original DMP ID
60
- return seed_id if existing.fetch('type', 'other') == 'url' &&
61
- !seed_id.nil? &&
62
- provenance.fetch('seedingWithLiveDmpIds', false).to_s.downcase == 'true'
60
+ return seed_id.gsub(%r{https?://}, '') if existing.fetch('type', 'other') == 'url' &&
61
+ !seed_id.nil? &&
62
+ provenance.fetch('seedingWithLiveDmpIds', false).to_s.downcase == 'true'
63
63
 
64
64
  #Generate a new DMP ID
65
65
  dmp_id = ''
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.73'
4
+ VERSION = '0.0.74'
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.73
4
+ version: 0.0.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley