uc3-dmp-id 0.1.46 → 0.1.48

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: '0797fef8b7ad115c55bcb7d094cde92501a7dbae0be7aee717e8667de6dafbda'
4
- data.tar.gz: 477a4dff24dbbc996e46839cfef1bcebaf939107bff88f7dc81a2ec07bcded24
3
+ metadata.gz: df1e41215a66fdffdf4dffce3cd952e97996488abd9e1b3a41ee7d8aecf7be85
4
+ data.tar.gz: 86644b4c270a4817d156ffbe290e3d31ff168e30802e2528a548cba9778e88b6
5
5
  SHA512:
6
- metadata.gz: 25c7c648411b5c060885e1a5675c8ee5d9f31f6d62c36bf253f34db140259c9f3e0f50b36232805bd34fee21feec10aa6cc21ed474f4b689ef5cde597ea7416c
7
- data.tar.gz: a333bc778904f1658e7863d32b9239b01e647a4db8fb8a7c8251f8525515a463b6df5e38c4d37ca56912ec681edf5c1802428d85770fec7bb0dcfc3673892ac9
6
+ metadata.gz: 7edcf7c6e2856935e19435b490a66593967d827a49a624fb6339cbbdd5a70ecd3d538aa5360601acdad05c66f6c474d3218f7848caa2427faec806b41565d13c
7
+ data.tar.gz: fb72fa2a787456b7193d98275b4e08a0afc60881073c0b2c910e851dbf6ba01600e736fd3f4bc940ee1247f325fb7a16abad006a1767739470c026d3470fcfea
@@ -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]
@@ -208,9 +208,11 @@ module Uc3DmpId
208
208
  next if entry.fetch('dmproadmap_related_identifiers', []).empty?
209
209
 
210
210
  entry['dmproadmap_related_identifiers'].each do |related|
211
- next if mods['related_works'][related.identifier].nil?
211
+ related_id = mods['related_works'][related&.identifier]
212
+ related_id = mods['related_works'][related['identifier']] if related_id.nil?
213
+ next if related_id.nil?
212
214
 
213
- mods['related_works'][related.identifier]['status'] = related['status']
215
+ mods['related_works'][related_id]['status'] = related['status']
214
216
  end
215
217
  end
216
218
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.46'
4
+ VERSION = '0.1.48'
5
5
  end
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.1.46
4
+ version: 0.1.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  requirements: []
153
- rubygems_version: 3.4.22
153
+ rubygems_version: 3.5.13
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: DMPTool gem that provides support for DMP ID records