uc3-dmp-id 0.1.76 → 0.1.78
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 +4 -4
- data/lib/uc3-dmp-id/updater.rb +5 -2
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10b0e02321270e309ee7352e0adfc06f9f86d5b57397dc2d34cdd373aaacaadf
|
|
4
|
+
data.tar.gz: 2985739c95e04e3d515cfce61f6ab61ec2e99bbb8edce925c8222b6b194216a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0594eb5e5faa1c214f953747a649dd5ff932eb7c554eada2db2e6e5dcc81c52565942768132c6d781000a84c55ccfa606829dd68f9775cd0f104b5070927c5b
|
|
7
|
+
data.tar.gz: 50142c1ea8e666446ca51075ed1ddfa73a46e8ef68df87e64ca75e5da5bdfc1470fded80c52fe0c6524e65b1c365dce57146535bf744552da77273d9b3881074
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
|
@@ -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
|
data/lib/uc3-dmp-id/version.rb
CHANGED