uc3-dmp-id 0.1.74 → 0.1.75

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: 216eee2772c1e88ec1426ef8d0414e61958cfd3185149c999d19c02e38a9d32d
4
- data.tar.gz: f97512390c550f0714381c75a8d8c9365de356d0d02db87be16081608084ac89
3
+ metadata.gz: 18cc7a2a74f91898c76cb8686c511023bc31dd2147d92bd172ae7a00a2dd72b3
4
+ data.tar.gz: ab9b8e2009e384fc1b20a99ea92dc92ddabc1779c9c6d02ed369d171724766cb
5
5
  SHA512:
6
- metadata.gz: 26491648692773b00eeae89efeb47f1f3c9c33897705974c6497193b21cbfc4a4b184b7ba0e9976751b2dad9e4c7d72c2cfc2867458bbbc81c4803614a4bff12
7
- data.tar.gz: 59a869cb83864807167ccb21a4ce9f409afd73d60895d32ba91270da5fa7715e59d8e5310f576d6c582e40ec33961f2fe6fa2715622d5a71c5448234ad915830
6
+ metadata.gz: d989d0ea6f7e7cb0486f9b7982a40f4085dc4056576c7f4bb0225b5d37f1fb9175fc57f3628a3d1e1cd2cf342305fb79791681798657c58f0be6bccc61bee5aa
7
+ data.tar.gz: 71379ba74f63add7f9443b0a85b30cb64664e5602499cabd91f27512a5b0567bb88f83e9890efd42e8b6914267457aabfb177ee616eb3925939991c147e1fe4d
@@ -141,12 +141,12 @@ module Uc3DmpId
141
141
 
142
142
  logger.debug(message: 'Modifications before merge.', details: mods) if logger.respond_to?(:debug)
143
143
  keys_to_retain = version.keys.select do |key|
144
- (key.start_with?('dmphub_') && !%w[dmphub_modifications dmphub_versions].include?(key)) ||
145
- key.start_with?('PK') || key.start_with?('dmproadmap_related_identifiers')
146
- end
147
- keys_to_retain.each do |key|
148
- mods[key] = version[key]
144
+ key.start_with?('dmphub_') &&
145
+ !%w[dmphub_modifications dmphub_versions].include?(key)
149
146
  end
147
+ keys_to_retain.each { |key| mods[key] = version[key] }
148
+
149
+ mods['PK'] = version['PK']
150
150
  mods['SK'] = Helper::DMP_LATEST_VERSION
151
151
  logger.debug(message: 'Modifications after merge.', details: mods) if logger.respond_to?(:debug)
152
152
  mods
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.74'
4
+ VERSION = '0.1.75'
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.74
4
+ version: 0.1.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley