uc3-dmp-id 0.0.22 → 0.0.23
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
- 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: 4f782828a3f7f2d734f02ae97e1fded41787e62cbf17d814a7e5a2e32752374b
|
4
|
+
data.tar.gz: b696b7097b38f97a28912567258ecf2a8b7285cfee2bef64878cb6dc89a105ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99f808a87e791b3c6ce5368c4a1dd830548c65ebc6f4b6c99c13d05a2167f35d07cff32871c60fd0b3cd475f9c6c8d624e4a7130d08256b77aa8069e6538e1d5
|
7
|
+
data.tar.gz: ad11e40faf5ceb18359b3b035d625e6b7600321f71e1877e59731e2fa26369e433d22ab98253b75a618160b3bd2b6c87709078b5f5eb0f8afa237643773a0636
|
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