From 973a1116eab800b17175ee66cd3bad276cec8169 Mon Sep 17 00:00:00 2001 From: Nick Nicholas Date: Tue, 21 Nov 2023 01:05:19 +1100 Subject: [PATCH] version bump --- lib/metanorma/cc/basicdoc.rng | 73 ++++++++++++++++++----------------- lib/metanorma/cc/biblio.rng | 9 +++++ lib/metanorma/cc/converter.rb | 4 +- lib/metanorma/cc/isodoc.rng | 36 ++++++++++++++++- lib/metanorma/cc/processor.rb | 1 + lib/metanorma/cc/version.rb | 2 +- metanorma-cc.gemspec | 2 +- spec/isodoc/base_spec.rb | 1 + 8 files changed, 89 insertions(+), 39 deletions(-) diff --git a/lib/metanorma/cc/basicdoc.rng b/lib/metanorma/cc/basicdoc.rng index 86214c5b..9595a390 100644 --- a/lib/metanorma/cc/basicdoc.rng +++ b/lib/metanorma/cc/basicdoc.rng @@ -914,44 +914,47 @@ --> - - + + + + + + + + + + + + + + + + + + + auto + - + + + + + + auto + + + + + + + + + + + - - - - - - - - - auto - - - - - - - - auto - - - - - - - - - - - - - - - + diff --git a/lib/metanorma/cc/biblio.rng b/lib/metanorma/cc/biblio.rng index d9bb5e4b..398a4aeb 100644 --- a/lib/metanorma/cc/biblio.rng +++ b/lib/metanorma/cc/biblio.rng @@ -348,6 +348,9 @@ + + + @@ -366,6 +369,11 @@ + + + + + @@ -942,6 +950,7 @@ obsoleted confirmed updated + corrected issued transmitted copied diff --git a/lib/metanorma/cc/converter.rb b/lib/metanorma/cc/converter.rb index bf2595f6..ae9e8d1f 100644 --- a/lib/metanorma/cc/converter.rb +++ b/lib/metanorma/cc/converter.rb @@ -60,7 +60,9 @@ def doc_converter(node) end def presentation_xml_converter(node) - IsoDoc::CC::PresentationXMLConvert.new(doc_extract_attributes(node)) + IsoDoc::CC::PresentationXMLConvert + .new(doc_extract_attributes(node) + .merge(output_formats: ::Metanorma::CC::Processor.new.output_formats)) end end end diff --git a/lib/metanorma/cc/isodoc.rng b/lib/metanorma/cc/isodoc.rng index 7825e7ae..bc0d67cc 100644 --- a/lib/metanorma/cc/isodoc.rng +++ b/lib/metanorma/cc/isodoc.rng @@ -17,7 +17,7 @@ these elements; we just want one namespace for any child grammars of this. --> - + @@ -1013,6 +1013,14 @@ + + + + + + + + common @@ -1046,6 +1054,17 @@ + + + + + + + + + + + @@ -1084,6 +1103,9 @@ + + + @@ -1386,6 +1408,9 @@ + + + @@ -1609,6 +1634,9 @@ + + + @@ -1660,6 +1688,9 @@ + + + @@ -1757,6 +1788,9 @@ + + + diff --git a/lib/metanorma/cc/processor.rb b/lib/metanorma/cc/processor.rb index 38a61e72..06ec3c7e 100644 --- a/lib/metanorma/cc/processor.rb +++ b/lib/metanorma/cc/processor.rb @@ -33,6 +33,7 @@ def version end def output(isodoc_node, inname, outname, format, options={}) + options_preprocess(options) case format when :html IsoDoc::CC::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) diff --git a/lib/metanorma/cc/version.rb b/lib/metanorma/cc/version.rb index 43804601..a4a3c6bd 100644 --- a/lib/metanorma/cc/version.rb +++ b/lib/metanorma/cc/version.rb @@ -1,5 +1,5 @@ module Metanorma module CC - VERSION = "2.3.2".freeze + VERSION = "2.3.3".freeze end end diff --git a/metanorma-cc.gemspec b/metanorma-cc.gemspec index 955b887a..4da28ead 100644 --- a/metanorma-cc.gemspec +++ b/metanorma-cc.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0") - spec.add_dependency "metanorma-generic", "~> 2.5.2" + spec.add_dependency "metanorma-generic", "~> 2.5.3" spec.add_development_dependency "debug" spec.add_development_dependency "equivalent-xml", "~> 0.6" diff --git a/spec/isodoc/base_spec.rb b/spec/isodoc/base_spec.rb index 6d669ea5..8144f15a 100644 --- a/spec/isodoc/base_spec.rb +++ b/spec/isodoc/base_spec.rb @@ -79,6 +79,7 @@ :circulateddate=>"XXX", :confirmeddate=>"XXX", :copieddate=>"XXX", + :correcteddate=>"XXX", :createddate=>"XXX", :docnumber=>"CC/WD 1000:2001", :docnumeric=>"1000",