uc3-dmp-id 0.1.76 → 0.1.77
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 +2 -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: dcc7bf54d3beeb3610d64490a6037022fbef6569ae0ee67188eeafea34a67ae7
|
4
|
+
data.tar.gz: 722e4bd441ed71e9265d6bde56663cccc6b4ccbf49178ac24d1b46072aa97295
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 293ab0fd326ff54633662b53aae5a82a24b456593134196c0f15e167a3acaf57706ee2c432e4ba3bb1ef382f80540f3df9cc7074312606d58c6ec3d1a9c54da9
|
7
|
+
data.tar.gz: a0f9ee659c34501642287dfc4cbbd77b4e184d09272cac143df8d2fd60fab51a05ab5c24d50647c5650b9b8dcd55162b4c4394e65f54748e6ff0ca2e0f4a429a
|
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
|
|
data/lib/uc3-dmp-id/version.rb
CHANGED