uc3-dmp-id 0.0.117 → 0.0.118
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/helper.rb +1 -1
- data/lib/uc3-dmp-id/version.rb +1 -1
- data/lib/uc3-dmp-id/versioner.rb +3 -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: d8c6957a44305c0672094337dece821e95d6717789f7287964879c5bf1f79899
|
4
|
+
data.tar.gz: b370d9a55508323ff2eb8602cdf216d975221cd802594188cdd2f7d1976155a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 573a61ed707f036719d3cd96720c257cdab95d12474c9072ba2eeccfde1f86470acb8b717b4fff725be2a43275df891f9d8622d8d4597250c5993f3e25c3713b
|
7
|
+
data.tar.gz: 1dec43e2f2247a3da2299170418a430edae5778b96a2313354f82a8930c68e02ea20a9b4b85bedacf7e774ae8665e6c37502e121037d0a73e7ce18f685caf142
|
data/lib/uc3-dmp-id/helper.rb
CHANGED
@@ -218,7 +218,7 @@ module Uc3DmpId
|
|
218
218
|
return json.map { |obj| cleanse_dmp_json(json: obj) }.compact if json.is_a?(Array)
|
219
219
|
|
220
220
|
cleansed = {}
|
221
|
-
allowable = %w[
|
221
|
+
allowable = %w[dmphub_created_at dmphub_updated_at dmphub_versions]
|
222
222
|
json.each_key do |key|
|
223
223
|
next if (key.to_s.start_with?('dmphub') && !allowable.include?(key)) || %w[PK SK].include?(key.to_s)
|
224
224
|
|
data/lib/uc3-dmp-id/version.rb
CHANGED
data/lib/uc3-dmp-id/versioner.rb
CHANGED
@@ -58,7 +58,9 @@ module Uc3DmpId
|
|
58
58
|
|
59
59
|
msg = "#{SOURCE} created version PK: #{prior['PK']} SK: #{prior['SK']}"
|
60
60
|
logger.info(message: msg, details: prior) if logger.respond_to?(:debug)
|
61
|
-
|
61
|
+
|
62
|
+
# Set the modification dates to now and then return the latest version
|
63
|
+
latest_version['dmphub_modified_at'] = Time.now.iso8601
|
62
64
|
latest_version
|
63
65
|
end
|
64
66
|
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|