File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 18
18
require 'json'
19
19
require 'yaml'
20
20
21
- require 'json_schema'
22
21
require 'language_list'
23
22
24
23
# This library provides a Ruby interface to manipulate CITATION.cff files. The
29
28
module CFF
30
29
SCHEMA_PATH = ::File . join ( __dir__ , 'schema' , '1.2.0.json' ) # :nodoc:
31
30
SCHEMA_FILE = JSON . parse ( ::File . read ( SCHEMA_PATH ) ) # :nodoc:
32
- SCHEMA = JsonSchema . parse! ( SCHEMA_FILE ) # :nodoc:
33
31
end
34
32
35
33
require 'cff/version'
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ require 'json_schema'
18
+
17
19
##
18
20
module CFF
19
21
20
22
# Methods to validate CFF files/models against a formal schema.
21
23
module Validatable
22
24
25
+ # :nodoc:
26
+ SCHEMA = JsonSchema . parse! ( SCHEMA_FILE )
27
+
23
28
# :call-seq:
24
29
# validate!(fail_fast: false)
25
30
#
You can’t perform that action at this time.
0 commit comments