metanorma 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +15 -1
- data/README.adoc +15 -3
- data/exe/metanorma +2 -2
- data/lib/metanorma/version.rb +1 -1
- data/metanorma.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c1527591a56478bbb20af093e8125740523d2e6b02784c56a52da8409b06d2a
|
4
|
+
data.tar.gz: 73988b44e68d19c471f9d471f9d762172285da7894ce88fe3bc7633aa59dbad7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '091b20227007450c6a70e1b42f47ec114ffc2eae7d11a226275cfc5b08b06ae3d95792968289fe00b554680ef34d0b9f4cb8db188c34d3cb346f09097e24b959'
|
7
|
+
data.tar.gz: 7087d3b69bddbf5ba0a829f296947a93acbef1d65984dbd71307b776326cefb089f6e875de2a5974fae1440679c02d7e4ccf293e4ef82f440f25b4121037263a
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
metanorma (0.2.
|
4
|
+
metanorma (0.2.1)
|
5
5
|
asciidoctor-csand (>= 0.3.0)
|
6
6
|
asciidoctor-csd (>= 0.4.0)
|
7
7
|
asciidoctor-gb (>= 0.3.0)
|
8
8
|
asciidoctor-iso (>= 0.9.0)
|
9
|
+
asciidoctor-m3d (>= 0.3.1)
|
9
10
|
asciidoctor-rfc (>= 0.9.0)
|
10
11
|
asciidoctor-rsd (>= 0.3.0)
|
11
12
|
isodoc (>= 0.8.0)
|
@@ -43,6 +44,19 @@ GEM
|
|
43
44
|
isobib (~> 0.1.6)
|
44
45
|
isodoc (>= 0.8)
|
45
46
|
ruby-jing
|
47
|
+
asciidoctor-m3d (0.3.1)
|
48
|
+
asciidoctor (~> 1.5.7)
|
49
|
+
asciidoctor-iso (>= 0.9.0)
|
50
|
+
asciimath
|
51
|
+
htmlentities (~> 4.3.4)
|
52
|
+
image_size
|
53
|
+
isodoc (>= 0.8.0)
|
54
|
+
mime-types
|
55
|
+
nokogiri
|
56
|
+
ruby-jing
|
57
|
+
ruby-xslt
|
58
|
+
thread_safe
|
59
|
+
uuidtools
|
46
60
|
asciidoctor-rfc (0.9.0)
|
47
61
|
asciidoctor (~> 1.5.7)
|
48
62
|
htmlentities (~> 4.3.4)
|
data/README.adoc
CHANGED
@@ -21,6 +21,7 @@ Metanorma includes the following sub-projects:
|
|
21
21
|
* CalConnect Standard Documents (CSD): the AsciiCSD syntax, https://github.com/riboseinc/csd[CSD Models], the https://github.com/riboseinc/asciidoctor-csd/[asciidoctor-csd implementation]
|
22
22
|
* Chinese GuoBiao (GB) Standards: the AsciiGB syntax, https://github.com/riboseinc/gbdoc[GbDoc Models], the https://github.com/riboseinc/asciidoctor-gb/[asciidoctor-gb implementation]
|
23
23
|
* Cloud Security Alliance Normal Documents (CSAND): the AsciiCSAND syntax, https://github.com/riboseinc/csand[CSAND Models], the https://github.com/riboseinc/asciidoctor-csand/[asciidoctor-csand implementation]
|
24
|
+
* M3AAWG Documents (M3D): the AsciiM3D syntax, https://github.com/riboseinc/m3d[M3D Models], the https://github.com/riboseinc/asciidoctor-m3d/[asciidoctor-m3d implementation]
|
24
25
|
//* Ribose Specification Documents (RSD): AsciiRSD, RSD XML schema, and the https://github.com/riboseinc/asciidoctor-rsd[asciidoctor-rsd implementation]
|
25
26
|
|
26
27
|
|
@@ -50,6 +51,17 @@ Help command:
|
|
50
51
|
$ metanorma -h
|
51
52
|
Usage: metanorma [options] <file>
|
52
53
|
-t, --type TYPE Type of standard to generate: rfc2, rfc3, iso, gb, csd, csand, m3d
|
54
|
+
-x, --extensions EXT1,EXT2,... Type of extension to generate per type:
|
55
|
+
{
|
56
|
+
:rfc2=>{:xmlrfc=>"v2.xml"},
|
57
|
+
:rfc3=>{:xmlrfc=>"v3.xml"},
|
58
|
+
:iso=>{:html=>"html", :html_alt=>"alt.html", :doc=>"doc"},
|
59
|
+
:gb=>{:html=>"html", :doc=>"doc"},
|
60
|
+
:csd=>{:html=>"html", :pdf=>"pdf"},
|
61
|
+
:csand=>{:html=>"html"},
|
62
|
+
:m3d=>{:html=>"html", :doc=>"doc"},
|
63
|
+
:rsd=>{:html=>"html"}
|
64
|
+
}
|
53
65
|
-f, --format FORMAT Format of source file: asciidoc (current default, only format supported)
|
54
66
|
-r, --require LIBRARY Require LIBRARY prior to execution
|
55
67
|
-h, --help Show this message
|
@@ -59,14 +71,14 @@ Basically it is used like this:
|
|
59
71
|
|
60
72
|
[source,sh]
|
61
73
|
----
|
62
|
-
metanorma --type <chosen-type> [--format input-format] iso-my-standard-document.adoc
|
74
|
+
metanorma --type <chosen-type> [--format input-format] [--extensions EXT1,EXT2...] iso-my-standard-document.adoc
|
63
75
|
----
|
64
76
|
|
65
77
|
Options:
|
66
78
|
|
67
79
|
//, `rsd`
|
68
80
|
`type`:: (mandatory, specified via `--type` or `-t`) takes one of the following types:
|
69
|
-
`rfc2`, `rfc3`, `iso`, `gb`, `csd`, `csand`
|
81
|
+
`rfc2`, `rfc3`, `iso`, `gb`, `csd`, `csand`, `m3d`, `rsd`
|
70
82
|
|
71
83
|
`format`:: (specified via `--format` or `-f`) only accepts `asciidoc` for now
|
72
84
|
|
@@ -75,7 +87,7 @@ As the `--format` argument is (currently) optional, so:
|
|
75
87
|
|
76
88
|
[source,sh]
|
77
89
|
----
|
78
|
-
metanorma --type iso iso-my-standard-document.adoc
|
90
|
+
metanorma --type iso -x html iso-my-standard-document.adoc
|
79
91
|
----
|
80
92
|
|
81
93
|
|
data/exe/metanorma
CHANGED
@@ -18,10 +18,10 @@ supported_gem_paths = [
|
|
18
18
|
puts "[metanorma] detecting backends:"
|
19
19
|
supported_gem_paths.each do |backend|
|
20
20
|
begin
|
21
|
-
|
21
|
+
puts backend
|
22
22
|
require backend
|
23
23
|
rescue LoadError
|
24
|
-
|
24
|
+
puts "[metanorma] backend #{backend} not present"
|
25
25
|
end
|
26
26
|
end
|
27
27
|
puts
|
data/lib/metanorma/version.rb
CHANGED
data/metanorma.gemspec
CHANGED
@@ -33,5 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_runtime_dependency 'asciidoctor-csd', ">= 0.4.0"
|
34
34
|
spec.add_runtime_dependency 'asciidoctor-csand', ">= 0.3.0"
|
35
35
|
spec.add_runtime_dependency 'asciidoctor-rsd', ">= 0.3.0"
|
36
|
+
spec.add_runtime_dependency 'asciidoctor-m3d', ">= 0.3.1"
|
36
37
|
spec.add_runtime_dependency 'isodoc', ">= 0.8.0"
|
37
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 0.3.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: asciidoctor-m3d
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.3.1
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.3.1
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: isodoc
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|