uc3-dmp-id 0.1.45 → 0.1.47

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: 9d7dcde4fbbe78fd142a19c4479d9859971705a28382c6c713ac2bdb86909878
4
- data.tar.gz: '009db949440c54efb31aebcc526aa8bed4b488e60d61c5725fdb7e2e8dc0df92'
3
+ metadata.gz: e2548c97edb7b838e0e0c04c681d85525884793a77db4af25de598726e1e70cb
4
+ data.tar.gz: 24534c9225ab84215d101717a604e76124dc1857c7243cd5dd5535b96ff7fc96
5
5
  SHA512:
6
- metadata.gz: 5dd3fb63bb152a9bd1b2213bf3d1cf3c4541998df05f494882585ab0b0ba3f3c2cd3ff83fb80d2f7f5bb13c83321ab8e72fda58c132d60b3d26910805b526aa4
7
- data.tar.gz: 4c5b37240d88c4fab00f11b03a3af14d6e8e8faf5eafd6edee2151f0d04d1ff6060689bf483eeb06392d676207f4d1b43ad41b8aff30cb1453e346a34ec8ebac
6
+ metadata.gz: f34251ee1a1f47796edb4e1beb9d3c9379bbc4f8eaa893b14ad5074451554d892261c54fb71c461558197b5ed546e47c87704bfe32a590fe9dfa7b32a203002c
7
+ data.tar.gz: b4922c487d5a20fbceed64de0b63b6bbbab66fca7862edab9bf7130b8bf159d1b89145cba3f5ad9bcdc02ac0c335eb057dde3f0ac4544d4e39e9fed53c7ceacd
@@ -92,7 +92,7 @@ module Uc3DmpId
92
92
  dmp = resp['dmp'].nil? ? resp : resp['dmp']
93
93
  logger.info(message: 'Existing latest record', details: dmp) if logger.respond_to?(:debug)
94
94
  raise UpdaterError, Helper::MSG_DMP_FORBIDDEN unless provenance.is_a?(Hash) && !provenance['PK'].nil? &&
95
- provenance['PK'] == dmp['dmp']['dmphub_provenance_id']
95
+ provenance['PK'] == dmp['dmphub_provenance_id']
96
96
 
97
97
  logger&.debug(message: "DMP Prior to narrative attachment", details: dmp)
98
98
 
@@ -138,7 +138,7 @@ module Uc3DmpId
138
138
  logger.debug(message: 'Modifications before merge.', details: mods) if logger.respond_to?(:debug)
139
139
  keys_to_retain = version.keys.select do |key|
140
140
  (key.start_with?('dmphub_') && !%w[dmphub_modifications dmphub_versions].include?(key)) ||
141
- key.start_with?('PK') || key.start_with?('SK')
141
+ key.start_with?('PK') || key.start_with?('SK') || key.start_with?('dmproadmap_related_identifiers')
142
142
  end
143
143
  keys_to_retain.each do |key|
144
144
  mods[key] = version[key]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.45'
4
+ VERSION = '0.1.47'
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.1.45
4
+ version: 0.1.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley