uc3-dmp-id 0.0.88 → 0.0.89
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 -1
- data/lib/uc3-dmp-id/version.rb +1 -1
- data/lib/uc3-dmp-id/versioner.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: 060e5579b7df045a30beb6431b0954b19e8542b42e1dacc933c9f0f025d521a8
|
4
|
+
data.tar.gz: b784e85e55401583d782363b0b9d99f23839db175aac2e4ccfa498b5c98481c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bc49726eb20d814984f6bd3585510f7d45b5dd00479cc95933f6ade4e5ca2b77a191d18377b05af0d3303b3ba19f7cedb54a85abb11d77ea45a712305c0816b
|
7
|
+
data.tar.gz: 1c6048b78d7b9c38b16433e93b3bc64df70ccfcecda64e6cc4f223ce7253bde6868b9d53834c0d3e7e17fc46cac1569acaf76a1588bf3c5a38fb2e76154f6d72
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -30,7 +30,8 @@ puts annotated
|
|
30
30
|
raise UpdaterError, MSG_NO_CHANGE if Helper.eql?(dmp_a: existing, dmp_b: dmp)
|
31
31
|
|
32
32
|
# Generate a new version of the DMP. This involves versioning the current latest version
|
33
|
-
new_version = Versioner.new_version(p_key: p_key,
|
33
|
+
new_version = Versioner.new_version(provenance: provenance, p_key: p_key, client: client, debug: debug,
|
34
|
+
dmp: dmp, latest_version: existing)
|
34
35
|
|
35
36
|
puts 'New version:'
|
36
37
|
puts new_version
|
data/lib/uc3-dmp-id/version.rb
CHANGED
data/lib/uc3-dmp-id/versioner.rb
CHANGED
@@ -29,7 +29,7 @@ module Uc3DmpId
|
|
29
29
|
# - Saving the new `VERSION=yyyy-mm-ddThh:mm:ss+zz:zz` item
|
30
30
|
# - Splicing in the current changes onto the existing `VERSION#latest` item
|
31
31
|
# - Returning the spliced `VERSION#latest` back to this method
|
32
|
-
def new_version(provenance:, p_key:, client: nil, dmp:, latest_version: {})
|
32
|
+
def new_version(provenance:, p_key:, client: nil, dmp:, latest_version: {}, debug: false)
|
33
33
|
return nil unless p_key.is_a?(String) && !p_key.strip.empty? && _versionable?(dmp: dmp)
|
34
34
|
|
35
35
|
client = Uc3DmpDynamo::Client.new(debug: debug) if client.nil?
|