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 +4 -4
- data/lib/uc3-dmp-id/helper.rb +1 -1
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91c01361a882520a281db0da8aa029bcb480b4873b684a4a526f2542abda9ea0
|
4
|
+
data.tar.gz: b9ca235a0c706469b4568e74a6ecbec2b39e0b44f9298d781ea11a2dd9cde749
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4a5092b448ce3f1a1ad71ed53c5d81304780732a5766d35a2875d0ed244d07b660d25f156a8facd1c9a794d89e59f17915bf640692ba1266556892245b5cab9
|
7
|
+
data.tar.gz: 4e3d0e476d2479f075abd8bc0cb45028766a766e60a1fae4441a1ef68c451e58757c5cd33c4b3033ccce5784c23112b1f9cb9782b49fd17c8dd2b80f538a4d24
|
data/lib/uc3-dmp-id/helper.rb
CHANGED
@@ -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]
|
data/lib/uc3-dmp-id/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|