uc3-dmp-id 0.1.22 → 0.1.24

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: ad5eee8e5a991f6fe45a85fbd7b634b5cf924c8114f652abedd0a5e4c1028dd5
4
- data.tar.gz: ee2620f6ef00c6059768af9288b27d7bd1569bb0620b11ba60db4c48c480ff01
3
+ metadata.gz: 91c01361a882520a281db0da8aa029bcb480b4873b684a4a526f2542abda9ea0
4
+ data.tar.gz: b9ca235a0c706469b4568e74a6ecbec2b39e0b44f9298d781ea11a2dd9cde749
5
5
  SHA512:
6
- metadata.gz: 2ef754d68697705e5204d2a7ac2e5fd85363687207cc821c6de4769918716575cd0f4933f82661f0f913714c95fb6d61294165c977ddc741fe8da297afc7c765
7
- data.tar.gz: bff0476cb5047e85b0549e1c7d44bcf4c9d76a5ab47cbdac3648abdeb392065be9c8bf7976440aa75eccf1f1ee081cc9478c7722dbf9ec7b65d3ef26485123da
6
+ metadata.gz: d4a5092b448ce3f1a1ad71ed53c5d81304780732a5766d35a2875d0ed244d07b660d25f156a8facd1c9a794d89e59f17915bf640692ba1266556892245b5cab9
7
+ data.tar.gz: 4e3d0e476d2479f075abd8bc0cb45028766a766e60a1fae4441a1ef68c451e58757c5cd33c4b3033ccce5784c23112b1f9cb9782b49fd17c8dd2b80f538a4d24
@@ -206,6 +206,7 @@ module Uc3DmpId
206
206
  annotated['dmphub_modification_day'] = Time.now.utc.strftime('%Y-%m-%d')
207
207
  annotated['dmphub_owner_id'] = owner_id unless owner_id.nil?
208
208
  annotated['dmphub_owner_org'] = owner_org unless owner_org.nil?
209
+ annotated['registered'] = annotated['modified'] if annotated['registered'].nil?
209
210
  return annotated unless json['dmphub_provenance_id'].nil?
210
211
 
211
212
  annotated['dmphub_provenance_id'] = provenance.fetch('PK', '')
@@ -238,7 +239,6 @@ module Uc3DmpId
238
239
  cleansed = {}
239
240
  allowable = %w[dmphub_modifications dmphub_versions]
240
241
  json.each_key do |key|
241
- next if key.to_s == 'mbox'
242
242
  next if (key.to_s.start_with?('dmphub') && !allowable.include?(key)) || %w[PK SK].include?(key.to_s)
243
243
 
244
244
  obj = json[key]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.22'
4
+ VERSION = '0.1.24'
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.22
4
+ version: 0.1.24
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-01-26 00:00:00.000000000 Z
11
+ date: 2024-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json