uc3-dmp-id 0.0.27 → 0.0.29
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/validator.rb +1 -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: d3b21e9c1f4c217bfeec57e033c2516a09f0e23d426d7f9fbf13a225bbd4824c
|
4
|
+
data.tar.gz: 8b3fd850e2301b032b2aecdf0e84878f1526d7b42499505402aac045d37b16fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac256390f7852b18a633eed62279318a5d4b282f579b8c6ed3ac84fe0dfb188b915e17b11342608c7c7d1ef5dc6872ab81c68eb1da13f42bf52b7b31be618065
|
7
|
+
data.tar.gz: 9ba658b187f9a4e4ba465448b6e11f466c9881f1e108c88b4aec698eb747349b71d9805e50ff66cf2bf7153ad9af99860de8d11136c8446b7ff69652648c4cc1
|
data/lib/uc3-dmp-id/validator.rb
CHANGED
@@ -51,7 +51,7 @@ puts "Schemas::Author defined? #{Object.const_defined?('Schemas::Author')}"
|
|
51
51
|
puts "Author defined? #{Object.const_defined?('Author')}"
|
52
52
|
|
53
53
|
# Instatiate the matching schema
|
54
|
-
schema = "Schemas::#{mode.to_s.downcase.capitalize}".split('::').inject(Object) { |o,c| o.const_get c }
|
54
|
+
schema = "Uc3DmpId::Schemas::#{mode.to_s.downcase.capitalize}".split('::').inject(Object) { |o,c| o.const_get c }
|
55
55
|
schema.respond_to?(:load) ? schema.load : nil
|
56
56
|
end
|
57
57
|
|
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(
|
32
|
+
def new_version(provenance:, p_key:, client: nil, dmp:, latest_version: {})
|
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?
|