uc3-dmp-id 0.1.87 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-id/finder.rb +0 -9
- data/lib/uc3-dmp-id/updater.rb +2 -2
- 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: 3418dd8af735864977c543a68498d11fe7cb4712ac72a9a8bfaf0012f266b060
|
4
|
+
data.tar.gz: bac33a07e9508b71d1beb2bd5311baef2b165d2d4c23cc65b0d7d24de1d858ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b08e7ca993e7ecbd61ccd8b18f6b9a227cdedcaec33f925fe646274d543329e3aa2f4a5f3c0a849e7ac3fb74e3225bccada17b4626733129402d5c320399649
|
7
|
+
data.tar.gz: 355925d4725effc1ea2255511986640e74d428ae6ade11cfe3a934a9dd4f8e59268221ec37aad65963bbde78534b71197f5ed852e0b6a4964b71625d29915576
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -41,19 +41,12 @@ module Uc3DmpId
|
|
41
41
|
org_pks = org.nil? ? [] : org.split('|').map { |o| _by_org(org: o, client:, logger:) }
|
42
42
|
org_pks = org_pks.flatten.uniq
|
43
43
|
funder_pks = funder.nil? ? [] : _by_funder(funder: funder, client:, logger:)
|
44
|
-
# pks = [owner_pks, org_pks, funder_pks].reject(&:empty?)
|
45
44
|
logger&.debug(
|
46
45
|
message: 'PKs found',
|
47
46
|
details: { owner: owner_pks, org: org_pks, funder: funder_pks }
|
48
47
|
)
|
49
|
-
# return [] if pks.nil? || pks.empty?
|
50
|
-
|
51
|
-
# Only use the DMPs that fit all of the filter criteria
|
52
|
-
# dmps = pks.reduce(:&).flatten.uniq
|
53
|
-
# return [] if dmps.nil? || dmps.empty?
|
54
48
|
|
55
49
|
[owner_pks, org_pks, funder_pks].flatten.uniq
|
56
|
-
|
57
50
|
end
|
58
51
|
|
59
52
|
# Find a DMP based on the contents of the incoming JSON
|
@@ -227,8 +220,6 @@ module Uc3DmpId
|
|
227
220
|
next if item.nil?
|
228
221
|
|
229
222
|
dmp = item['dmp'].nil? ? JSON.parse({ dmp: item }.to_json) : item
|
230
|
-
# dmp = _remove_narrative_if_private(json: dmp)
|
231
|
-
# Helper.cleanse_dmp_json(json: dmp)
|
232
223
|
end
|
233
224
|
results.compact.uniq
|
234
225
|
end
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -254,8 +254,8 @@ module Uc3DmpId
|
|
254
254
|
|
255
255
|
# Set the :modified timestamps
|
256
256
|
now = Time.now.utc
|
257
|
-
|
258
|
-
|
257
|
+
payload['modified'] = now.iso8601
|
258
|
+
payload['dmphub_modification_day'] = now.strftime('%Y-%m-%d')
|
259
259
|
|
260
260
|
# Retain all the other attributes on the original version unless they are
|
261
261
|
# in the list of exclusions OR the incoming payload already has a value for it
|
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.89
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|