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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5f7760c4099466f5a99377669e189dfc33cfe2e718d1bf0c96b06b251f5ff77
4
- data.tar.gz: dd6b30e66d7848e8810bd4c735ce5d007e7c0dd80c059e2341813db873e74c35
3
+ metadata.gz: 3418dd8af735864977c543a68498d11fe7cb4712ac72a9a8bfaf0012f266b060
4
+ data.tar.gz: bac33a07e9508b71d1beb2bd5311baef2b165d2d4c23cc65b0d7d24de1d858ed
5
5
  SHA512:
6
- metadata.gz: 9b2ebf8b2d1919f15bc9b538373fcafddb077c432754b0ba27c8706de6352db07d0db51ec41e5bb4bdc1469a55d45162d45127fc14e4df0c4699d63ed10963e5
7
- data.tar.gz: 6470cf64e86138c08c343c299dea73a5d5add92755c6716684ad33e25378bfb36f6c3e440a142d5c66f439655d4b3600516c417efd31c9dc7ae4dac0047e416b
6
+ metadata.gz: 6b08e7ca993e7ecbd61ccd8b18f6b9a227cdedcaec33f925fe646274d543329e3aa2f4a5f3c0a849e7ac3fb74e3225bccada17b4626733129402d5c320399649
7
+ data.tar.gz: 355925d4725effc1ea2255511986640e74d428ae6ade11cfe3a934a9dd4f8e59268221ec37aad65963bbde78534b71197f5ed852e0b6a4964b71625d29915576
@@ -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
@@ -254,8 +254,8 @@ module Uc3DmpId
254
254
 
255
255
  # Set the :modified timestamps
256
256
  now = Time.now.utc
257
- version['modified'] = now.iso8601
258
- version['dmphub_modification_day'] = now.strftime('%Y-%m-%d')
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.87'
4
+ VERSION = '0.1.89'
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.87
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: 2024-07-17 00:00:00.000000000 Z
11
+ date: 2025-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json