uc3-dmp-id 0.0.123 → 0.0.125

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: 3be851812ee9f5f4261f74bd8c43dcbbbcc0ac4f24567ebfe300fcc54f57dbf8
4
- data.tar.gz: 85c0441dcdc513bae2ef6e5402fbb3d61dfc824d3ee373d9fe0c6288cc6b8535
3
+ metadata.gz: 925f59292b99ac41d21ff702d51d5dde21b915aa3c5d285f39b162422fa15826
4
+ data.tar.gz: 970ce77358af939143f9e8d2e06167ec64127a9fec42daed5acbb5f84e523c34
5
5
  SHA512:
6
- metadata.gz: 5b168ff1e3bc5111877fba15cdf5f89a59b8da20cee2a667e7114b2cd7bbaa9cbfe9696f3f397bc0106057e10757d24770ab1c9236d6751c421ff52bdeac2fb4
7
- data.tar.gz: 93b4fa5cf52047e00fe4f594f80b701f492ac022d79abf3e06f8fb7598a4665a342126924772fe2b9f29586e2eb914eb72c438bbb0f12a1e2a94a70f4312ebb1
6
+ metadata.gz: 5351fa63c776508d030f46593cd213f8d9eaa52041c4a0c7aee2fdb1709c1b1ab0139676128041e94d43a927cb9e9d31157181bfe08dab00afb274c279636773
7
+ data.tar.gz: 755d4ef03a201992cccb0d7276b01b17d279062ab912b841fca0420f83d10048066533b48c76ad0d5478c72418e1b19085a18289775d45b98ce340e69376de16
@@ -62,7 +62,7 @@ module Uc3DmpId
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
- return seed_id.gsub(%r{https?://}, '') if existing.fetch('type', 'other') == 'url' &&
65
+ return seed_id.gsub(%r{https?://}, '') if %w['doi', 'url'].include?(existing.fetch('type', 'other')) &&
66
66
  !seed_id.nil? &&
67
67
  provenance.fetch('seedingWithLiveDmpIds', false).to_s.downcase == 'true'
68
68
 
@@ -186,7 +186,7 @@ module Uc3DmpId
186
186
 
187
187
  # Set the :dmproadmap_featured flag appropriately
188
188
  featured = annotated.fetch('dmproadmap_featured', 'no')
189
- annotated['dmproadmap_featured'] = bool_vals.include?(featured.to_s.downcase) ? 1 : 0
189
+ annotated['dmproadmap_featured'] = bool_vals.include?(featured.to_s.downcase) ? '1' : '0'
190
190
 
191
191
  # Update the modification timestamps
192
192
  annotated['dmphub_modification_day'] = Time.now.strftime('%Y-%m-%d')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.123'
4
+ VERSION = '0.0.125'
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.123
4
+ version: 0.0.125
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley