uc3-dmp-id 0.1.76 → 0.1.78

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: 9d18daee8127652273ede255b35ce9c8401354f5082c4f1806737b2486dc7178
4
- data.tar.gz: a2b7599f05bc790822d80e5ec7dd83a64ef42ef5fd52cc4eae5db90792d0185a
3
+ metadata.gz: 10b0e02321270e309ee7352e0adfc06f9f86d5b57397dc2d34cdd373aaacaadf
4
+ data.tar.gz: 2985739c95e04e3d515cfce61f6ab61ec2e99bbb8edce925c8222b6b194216a6
5
5
  SHA512:
6
- metadata.gz: 72080a3809333bd1c3dacd7540c7bf108bf99b8fa0fa6b0450aae2180af8ff175ab273f9509f26043c01a14c0d45a478c4c242798c5f571a1befcdfe5a9784d8
7
- data.tar.gz: 887b4651957305c709eaec3139735b83854d432dd8894777c0437ee4d243d09ff98a2244f9dd9486474ec89e56c8470d8b8ddad527f2507d83b7c0c903c544e2
6
+ metadata.gz: f0594eb5e5faa1c214f953747a649dd5ff932eb7c554eada2db2e6e5dcc81c52565942768132c6d781000a84c55ccfa606829dd68f9775cd0f104b5070927c5b
7
+ data.tar.gz: 50142c1ea8e666446ca51075ed1ddfa73a46e8ef68df87e64ca75e5da5bdfc1470fded80c52fe0c6524e65b1c365dce57146535bf744552da77273d9b3881074
@@ -45,7 +45,7 @@ module Uc3DmpId
45
45
  raise UpdaterError, Helper::MSG_DMP_FORBIDDEN if owner != updater
46
46
 
47
47
  # Handle any changes to the dmphub_modifications section
48
- version = _process_harvester_mods(client:, p_key:, json: payload, logger:)
48
+ version = _process_harvester_mods(client:, p_key:, json: payload, version:, logger:)
49
49
  logger&.debug(message: 'Version after process_harvester_mods', details: version)
50
50
 
51
51
  # Remove the version info any any lingering modification blocks
@@ -174,7 +174,7 @@ module Uc3DmpId
174
174
  # rubocop:enable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
175
175
 
176
176
  # Fetch any Harvester modifications to the JSON
177
- def _process_harvester_mods(client:, p_key:, json:, logger: nil)
177
+ def _process_harvester_mods(client:, p_key:, json:, version:, logger: nil)
178
178
  logger&.debug(message: 'Incoming modifications', details: json)
179
179
  return json if json.fetch('dmphub_modifications', []).empty?
180
180
 
@@ -228,6 +228,9 @@ module Uc3DmpId
228
228
  end
229
229
 
230
230
  logger&.debug(message: 'Updating HARVESTER_MODS with:', details: original)
231
+ resp = client.put_item(json: original, logger:)
232
+ logger&.error(message: 'Unable to update HARVESTER_MODS', details: original) if resp.nil?
233
+
231
234
  logger&.debug(message: 'Returning updated VERSION:', details: version)
232
235
  version
233
236
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.76'
4
+ VERSION = '0.1.78'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.76
4
+ version: 0.1.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley