uc3-dmp-id 0.0.22 → 0.0.24
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 +4 -1
- data/lib/uc3-dmp-id/version.rb +1 -1
- data/lib/uc3-dmp-id.rb +2 -0
- 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: f71bf88908949d2b8514ea8177c71e97334663740156b7b676368b5600e31f34
|
4
|
+
data.tar.gz: a4a807c92d00c78f5bf9a5d3898d6cbdbab3fd05b95f97a4dfc7104ac5e12438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99d8b88c1b74b6e5cef633674c6487e3b5617e448f803664ecb07ff6077296b1ccff4969fc80d33dcadad03c9afa504fac217a718f138b392a540bdc20dcc000
|
7
|
+
data.tar.gz: f2cfda840d062a017452e5372c882fad94b0196117ca35cbc74c790ce2ea54ce11f51c63ae3bb131b688733927fdddc7e18f88e72f3197a27f75507dde71c8dd
|
data/lib/uc3-dmp-id/validator.rb
CHANGED
@@ -44,8 +44,11 @@ module Uc3DmpId
|
|
44
44
|
# Load the JSON schema that corresponds with the mode
|
45
45
|
# ------------------------------------------------------------------------------------
|
46
46
|
def _load_schema(mode:)
|
47
|
+
|
48
|
+
puts "Loading schema -- Uc3DmpId::Schemas::#{mode.to_s.downcase.capitalize}"
|
49
|
+
|
47
50
|
# Instatiate the matching schema
|
48
|
-
schema =
|
51
|
+
schema = "Uc3DmpId::Schemas::#{mode.to_s.downcase.capitalize}".split('::').inject(Object) { |o,c| o.const_get c }
|
49
52
|
schema.respond_to?(:load) ? schema.load : nil
|
50
53
|
end
|
51
54
|
|
data/lib/uc3-dmp-id/version.rb
CHANGED
data/lib/uc3-dmp-id.rb
CHANGED
@@ -11,6 +11,8 @@ require 'uc3-dmp-id/helper'
|
|
11
11
|
require 'uc3-dmp-id/updater'
|
12
12
|
require 'uc3-dmp-id/validator'
|
13
13
|
require 'uc3-dmp-id/versioner'
|
14
|
+
require 'uc3-dmp-id/schemas/amend'
|
15
|
+
require 'uc3-dmp-id/schemas/author'
|
14
16
|
|
15
17
|
module Uc3DmpId
|
16
18
|
MSG_DMP_EXISTS = 'DMP already exists. Try :update instead.'
|