-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent Module naming: https://github.com/metanorma/metanorma/issu… #318
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc", branch: "feature/ext-flavor" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module IsoDoc | ||
module CC | ||
module Cc | ||
class Xref < IsoDoc::Generic::Xref | ||
end | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
require "metanorma/processor" | ||
|
||
module Metanorma | ||
module CC | ||
module Cc | ||
class Processor < Metanorma::Generic::Processor | ||
def configuration | ||
Metanorma::CC.configuration | ||
Metanorma::Cc.configuration | ||
end | ||
|
||
def initialize | ||
|
@@ -22,20 +22,20 @@ def output_formats | |
end | ||
|
||
def version | ||
"Metanorma::CC #{Metanorma::CC::VERSION}" | ||
"Metanorma::Cc #{Metanorma::Cc::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) | ||
IsoDoc::Cc::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) | ||
when :doc | ||
IsoDoc::CC::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) | ||
IsoDoc::Cc::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [89/80] |
||
when :pdf | ||
IsoDoc::CC::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) | ||
IsoDoc::Cc::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [88/80] |
||
when :presentation | ||
IsoDoc::CC::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) | ||
IsoDoc::Cc::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [100/80] |
||
else | ||
super | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Metanorma | ||
module CC | ||
module Cc | ||
VERSION = "2.5.3".freeze | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ require "metanorma/cc/version" | |
|
||
Gem::Specification.new do |spec| | ||
spec.name = "metanorma-cc" | ||
spec.version = Metanorma::CC::VERSION | ||
spec.version = Metanorma::Cc::VERSION | ||
spec.authors = ["Ribose Inc."] | ||
spec.email = ["[email protected]"] | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
require "spec_helper" | ||
require "fileutils" | ||
|
||
RSpec.describe Metanorma::CC do | ||
RSpec.describe Metanorma::Cc do | ||
it "processes default metadata" do | ||
csdc = IsoDoc::CC::HtmlConvert.new({}) | ||
csdc = IsoDoc::Cc::HtmlConvert.new({}) | ||
docxml, = csdc.convert_init(<<~INPUT, "test", true) | ||
<csd-standard xmlns="https://www.calconnect.org/standards/csd"> | ||
<bibdata type="standard"> | ||
|
@@ -128,7 +128,7 @@ | |
</preface> | ||
</csd-standard> | ||
INPUT | ||
expect(Xml::C14n.format(IsoDoc::CC::HtmlConvert.new({}) | ||
expect(Xml::C14n.format(IsoDoc::Cc::HtmlConvert.new({}) | ||
.convert("test", input, true) | ||
.gsub(%r{^.*<body}m, "<body") | ||
.gsub(%r{</body>.*$}m, "</body>"))).to be_equivalent_to Xml::C14n.format(<<~"OUTPUT") | ||
|
@@ -151,7 +151,7 @@ | |
</foreword></preface> | ||
</csd-standard> | ||
INPUT | ||
expect(Xml::C14n.format(IsoDoc::CC::HtmlConvert.new({}) | ||
expect(Xml::C14n.format(IsoDoc::Cc::HtmlConvert.new({}) | ||
.convert("test", input, true) | ||
.gsub(%r{^.*<body}m, "<body") | ||
.gsub(%r{</body>.*$}m, "</body>"))).to be_equivalent_to Xml::C14n.format(<<~"OUTPUT") | ||
|
@@ -180,7 +180,7 @@ | |
</sections> | ||
</csd-standard> | ||
INPUT | ||
expect(Xml::C14n.format(IsoDoc::CC::HtmlConvert.new({}) | ||
expect(Xml::C14n.format(IsoDoc::Cc::HtmlConvert.new({}) | ||
.convert("test", input, true) | ||
.gsub(%r{^.*<body}m, "<body") | ||
.gsub(%r{</body>.*$}m, "</body>"))).to be_equivalent_to Xml::C14n.format(<<~"OUTPUT") | ||
|
@@ -217,7 +217,7 @@ | |
</body> | ||
</html> | ||
INPUT | ||
expect(Xml::C14n.format(IsoDoc::CC::HtmlConvert.new({}) | ||
expect(Xml::C14n.format(IsoDoc::Cc::HtmlConvert.new({}) | ||
.cleanup(Nokogiri::XML(input)).to_s)) | ||
.to be_equivalent_to Xml::C14n.format(<<~OUTPUT) | ||
<?xml version="1.0"?> | ||
|
@@ -316,7 +316,7 @@ | |
</csd-standard> | ||
INPUT | ||
|
||
expect(Xml::C14n.format(strip_guid(IsoDoc::CC::PresentationXMLConvert.new(presxml_options) | ||
expect(Xml::C14n.format(strip_guid(IsoDoc::Cc::PresentationXMLConvert.new(presxml_options) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [94/80] |
||
.convert("test", input, true) | ||
.gsub(%r{^.*<body}m, "<body") | ||
.gsub(%r{</body>.*$}m, "</body>")))).to be_equivalent_to Xml::C14n.format(<<~OUTPUT) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [89/80]