uc3-dmp-id 0.1.39 → 0.1.41

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: 95b6443cf60f6baa7312ffb70dccf20018669ddcfdb468d24b923159313126b8
4
- data.tar.gz: 121969eb56f2dcaa026fe0e866241170b6951336602e8f498829d865ad967032
3
+ metadata.gz: 9c0311ee13737f806f60f0a21392195a5a61cb8498b0e9b30549ea1f44ce3b65
4
+ data.tar.gz: 95c4fbeda9c5b4a91a86477d0eebec6c4a1ba6875d45011cabef75beffa62edd
5
5
  SHA512:
6
- metadata.gz: aa222d18770474937bf0e06e911508adf783b6bad7158f0162a67ba888b9d33c6aa6fd575aad47ff49dc34b56a5fdaddafbd9698d1a5e06e75ade8528421447a
7
- data.tar.gz: e248c1e81c1fb622e7fd9c54aa37ca2aa6c93644ada4c9cc028cd800befaf9a5475303fa9ee2618e8eefc7e77854c4a8ab542d05a3ee26304e8f2a7eb50b3c0c
6
+ metadata.gz: a300583a83d97b57c6344ecc7a623ebb4ea3b758583b0a6624ec3decf2da699d2f13145ad8d6d45e4dd707b55f4f131e6b87e7ba6fa065b8035480b28abc821f
7
+ data.tar.gz: 7a152569e26ff816a4605b7f1787d33114005aa8a4183fc7a29d85788587136683621766886832ef02d5040d6a69ce6dd5f6434b8afb57cbd594430d409158ca
@@ -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.info(message: "Added DMP ID narrative for PK: #{p_key}, Narrative: #{url}") if logger.respond_to?(:debug)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.39'
4
+ VERSION = '0.1.41'
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.39
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-06 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json