diff --git a/Gemfile.devel b/Gemfile.devel index 833866d..7a6d345 100644 --- a/Gemfile.devel +++ b/Gemfile.devel @@ -1,4 +1,7 @@ -gem "isodoc", git: "https://github.com/metanorma/isodoc", branch: "main" -gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc", branch: "main" +gem "isodoc", git: "https://github.com/metanorma/isodoc", branch: "fix/lutaml-model-0.8.0" +gem "html2doc", git: "https://github.com/metanorma/html2doc", branch: "fix/lutaml-model-0.8.0" +gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc", branch: "fix/lutaml-model-0.8.0" gem "metanorma-core", git: "https://github.com/metanorma/metanorma-core", branch: "main" -gem "html2doc", git: "https://github.com/metanorma/html2doc", branch: "main" +gem "metanorma-plugin-lutaml", git: "https://github.com/metanorma/metanorma-plugin-lutaml", branch: "fix/ruby-4.0" + + diff --git a/lib/metanorma/generic/bibdata_config.rb b/lib/metanorma/generic/bibdata_config.rb index 4d43c8b..708627e 100644 --- a/lib/metanorma/generic/bibdata_config.rb +++ b/lib/metanorma/generic/bibdata_config.rb @@ -17,7 +17,7 @@ class Bibdata < ::Lutaml::Model::Serializable def bibdata_from_xml(model, node) node or return - model.bibdata = Relaton::Cli.parse_xml(node.adapter_node) + model.bibdata = Relaton::Cli.parse_xml(node.adapter_node.native) end def bibdata_to_xml(model, parent, doc); end diff --git a/spec/metanorma/validate_spec.rb b/spec/metanorma/validate_spec.rb index ad046f2..b999d15 100644 --- a/spec/metanorma/validate_spec.rb +++ b/spec/metanorma/validate_spec.rb @@ -1,28 +1,6 @@ require "spec_helper" -require "metanorma" RSpec.describe Metanorma::Generic do - context "when xref_error.adoc compilation" do - around do |example| - FileUtils.rm_f "spec/assets/xref_error.err.html" - example.run - Dir["spec/assets/xref_error*"].each do |file| - next if file.match?(/adoc$/) - - FileUtils.rm_f(file) - end - end - - it "generates error file" do - expect do - Metanorma::Compile - .new - .compile("spec/assets/xref_error.adoc", type: "generic", "agree-to-terms": true) - end.to(change { File.exist?("spec/assets/xref_error.err.html") } - .from(false).to(true)) - end - end - it "does not issue doctype warning if doctype not supplied" do Metanorma::Generic.configure do |config| config.default_doctype = "pizza"