uc3-dmp-id 0.1.40 → 0.1.41
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/updater.rb +3 -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: 9c0311ee13737f806f60f0a21392195a5a61cb8498b0e9b30549ea1f44ce3b65
|
4
|
+
data.tar.gz: 95c4fbeda9c5b4a91a86477d0eebec6c4a1ba6875d45011cabef75beffa62edd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a300583a83d97b57c6344ecc7a623ebb4ea3b758583b0a6624ec3decf2da699d2f13145ad8d6d45e4dd707b55f4f131e6b87e7ba6fa065b8035480b28abc821f
|
7
|
+
data.tar.gz: 7a152569e26ff816a4605b7f1787d33114005aa8a4183fc7a29d85788587136683621766886832ef02d5040d6a69ce6dd5f6434b8afb57cbd594430d409158ca
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -87,6 +87,8 @@ module Uc3DmpId
|
|
87
87
|
raise UpdaterError, Helper::MSG_DMP_FORBIDDEN unless provenance.is_a?(Hash) && !provenance['PK'].nil? &&
|
88
88
|
provenance['PK'] == dmp['dmp']['dmphub_provenance_id']
|
89
89
|
|
90
|
+
logger&.debug(message: "DMP Prior to narrative attachment", details: dmp)
|
91
|
+
|
90
92
|
# Add the download URl for the PDF as a related identifier on the DMP ID record
|
91
93
|
annotated = Helper.annotate_dmp_json(provenance:, p_key:, json: dmp['dmp'])
|
92
94
|
annotated['dmproadmap_related_identifiers'] = [] if annotated['dmproadmap_related_identifiers'].nil?
|
@@ -98,7 +100,7 @@ module Uc3DmpId
|
|
98
100
|
resp = client.put_item(json: annotated, logger:)
|
99
101
|
raise UpdaterError, Helper::MSG_DMP_UNABLE_TO_VERSION if resp.nil?
|
100
102
|
|
101
|
-
logger
|
103
|
+
logger&.debug(message: "Added DMP ID narrative for PK: #{p_key}, Narrative: #{url}", details: annotated)
|
102
104
|
true
|
103
105
|
end
|
104
106
|
# rubocop:enable Metrics/AbcSize
|
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.41
|
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-05
|
11
|
+
date: 2024-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|