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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71f7824aeb77ace2a14faf556f4c81a7e055dc47cfd090ccb6258f48d454d4dd
4
- data.tar.gz: b78324f2ef823c9754708844559ac3a315990f217ca2845b8c5e6f667f1a2c2d
3
+ metadata.gz: 9c0311ee13737f806f60f0a21392195a5a61cb8498b0e9b30549ea1f44ce3b65
4
+ data.tar.gz: 95c4fbeda9c5b4a91a86477d0eebec6c4a1ba6875d45011cabef75beffa62edd
5
5
  SHA512:
6
- metadata.gz: 7bd3293de14bc2965fd9de7cb36d2998f184291648bac9814d6779c46babee4ae961ad36220a672583d811b38258958c09f3d31c881807db231c285d378e287c
7
- data.tar.gz: 7b0896421ceefe1c096cb3bf452e3fb95887cace2ec9ff433eae8b17699721b592633aeb9695faddc39828010c2ed9ff7c9e47eff95f047bad1d7b64456db7ae
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.40'
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.40
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-29 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