metanorma 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5b7750ea43f5330e790b140637dfca6c4e9968d27b60187e81adf2c6df5bac2
4
- data.tar.gz: 2ba4116d33804af285354da67a0bf815724bea73227302342852f2beba985c24
3
+ metadata.gz: 6c1527591a56478bbb20af093e8125740523d2e6b02784c56a52da8409b06d2a
4
+ data.tar.gz: 73988b44e68d19c471f9d471f9d762172285da7894ce88fe3bc7633aa59dbad7
5
5
  SHA512:
6
- metadata.gz: 34cbbf129a33e0851d1a0c592112b021c9b73f3caadbb299ceacb9bb6fe8f3b83ecc213507406325f95a7697bfe2a760c0ed08289856183c4c0b42f4acac0c38
7
- data.tar.gz: bedb7d46a9c70fe097a53c6eda68cb9e8674bf581032888054bc481167005fab8b3876a01a7d44ef9fb8a0b24124cb4ec0a5e35b58a2f07b2dd32db448716137
6
+ metadata.gz: '091b20227007450c6a70e1b42f47ec114ffc2eae7d11a226275cfc5b08b06ae3d95792968289fe00b554680ef34d0b9f4cb8db188c34d3cb346f09097e24b959'
7
+ data.tar.gz: 7087d3b69bddbf5ba0a829f296947a93acbef1d65984dbd71307b776326cefb089f6e875de2a5974fae1440679c02d7e4ccf293e4ef82f440f25b4121037263a
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metanorma (0.2.0)
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)
@@ -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
 
@@ -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
- # puts backend
21
+ puts backend
22
22
  require backend
23
23
  rescue LoadError
24
- # puts "[metanorma] backend #{backend} not present"
24
+ puts "[metanorma] backend #{backend} not present"
25
25
  end
26
26
  end
27
27
  puts
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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.0
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