metanorma 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/LICENSE.txt +21 -17
- data/README.adoc +25 -5
- data/lib/metanorma/input/asciidoc.rb +2 -0
- data/lib/metanorma/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae92d14760f740cf2e0cfcb5502a9fca6cf5db3cc9409c0cd3a37a20fbe1e7ec
|
4
|
+
data.tar.gz: bd369ff18dcec200ceb9c6aedb983396a972361cf7829882d129b2b7582d3e27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31412b19dfb8c8d1d5e5372f79a4c109943e4f13ba9a615633b951e9f02017fe95cf6a878ed04f72e053d193593ddbe8aa65a37d09ddb79f5e768279371b6628
|
7
|
+
data.tar.gz: 5cc24d14bcc024167b05313996da2e9a22cc9a7ebfc266223b2d9cf2fad976132a53f9554a56d01226bc05f59614b25657a1119e8f75997c4e6f19833c86953b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
metanorma (0.2.
|
4
|
+
metanorma (0.2.9)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -11,30 +11,30 @@ GEM
|
|
11
11
|
equivalent-xml (0.6.0)
|
12
12
|
nokogiri (>= 1.4.3)
|
13
13
|
mini_portile2 (2.3.0)
|
14
|
-
mixlib-shellout (2.
|
14
|
+
mixlib-shellout (2.4.0)
|
15
15
|
nokogiri (1.8.4)
|
16
16
|
mini_portile2 (~> 2.3.0)
|
17
17
|
rake (10.5.0)
|
18
|
-
rspec (3.
|
19
|
-
rspec-core (~> 3.
|
20
|
-
rspec-expectations (~> 3.
|
21
|
-
rspec-mocks (~> 3.
|
18
|
+
rspec (3.8.0)
|
19
|
+
rspec-core (~> 3.8.0)
|
20
|
+
rspec-expectations (~> 3.8.0)
|
21
|
+
rspec-mocks (~> 3.8.0)
|
22
22
|
rspec-command (1.0.3)
|
23
23
|
mixlib-shellout (~> 2.0)
|
24
24
|
rspec (~> 3.2)
|
25
25
|
rspec-its (~> 1.2)
|
26
|
-
rspec-core (3.
|
27
|
-
rspec-support (~> 3.
|
28
|
-
rspec-expectations (3.
|
26
|
+
rspec-core (3.8.0)
|
27
|
+
rspec-support (~> 3.8.0)
|
28
|
+
rspec-expectations (3.8.1)
|
29
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
-
rspec-support (~> 3.
|
30
|
+
rspec-support (~> 3.8.0)
|
31
31
|
rspec-its (1.2.0)
|
32
32
|
rspec-core (>= 3.0.0)
|
33
33
|
rspec-expectations (>= 3.0.0)
|
34
|
-
rspec-mocks (3.
|
34
|
+
rspec-mocks (3.8.0)
|
35
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
-
rspec-support (~> 3.
|
37
|
-
rspec-support (3.
|
36
|
+
rspec-support (~> 3.8.0)
|
37
|
+
rspec-support (3.8.0)
|
38
38
|
|
39
39
|
PLATFORMS
|
40
40
|
ruby
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,25 @@
|
|
1
|
-
|
1
|
+
BSD 2-Clause License
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2018, Ribose
|
4
|
+
All rights reserved.
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
11
8
|
|
12
|
-
|
13
|
-
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
10
|
+
list of conditions and the following disclaimer.
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
14
|
+
and/or other materials provided with the distribution.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
17
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
18
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
20
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
21
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
22
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
23
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
24
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
25
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.adoc
CHANGED
@@ -136,23 +136,43 @@ Basically it is used like this:
|
|
136
136
|
|
137
137
|
[source,sh]
|
138
138
|
----
|
139
|
-
metanorma --type <chosen-type> [--format input-format] [--extensions EXT1,EXT2...] iso-my-standard-document.adoc
|
139
|
+
$ metanorma --type <chosen-type> [--format input-format] [--extensions EXT1,EXT2...] iso-my-standard-document.adoc
|
140
140
|
----
|
141
141
|
|
142
142
|
Options:
|
143
143
|
|
144
|
-
//, `rsd`
|
145
144
|
`type`:: (mandatory, specified via `--type` or `-t`) takes one of the following types:
|
146
|
-
`rfc2`, `rfc3`, `iso`, `gb`, `csd`, `csand`, `m3d`, `rsd
|
145
|
+
`rfc2`, `rfc3`, `iso`, `gb`, `csd`, `csand`, `m3d`, `rsd`. Each of these corresponds to a
|
146
|
+
standards class and a Metanorma gem; the list of standards classes supported by the script
|
147
|
+
by default will grow (see also `require`).
|
147
148
|
|
148
|
-
`
|
149
|
+
`extension`:: (optional) specifies the output formats to be generated. If not specified,
|
150
|
+
all possible output formats are generated. The output formats generated are constrained by
|
151
|
+
what has been defined for each standard type. All standards can generate Metanorma XML (`xml`),
|
152
|
+
and at least one of HTML (`html`), DOC (`doc`), PDF (`pdf`). Some standards generate alternative
|
153
|
+
HTML renderings (e.g. `html_alt` for ISO).
|
149
154
|
|
155
|
+
`format`:: (optional, specified via `--format` or `-f`) only accepts `asciidoc` for now,
|
156
|
+
defaults to `asciidoc`
|
150
157
|
|
151
158
|
As the `--format` argument is (currently) optional, so:
|
152
159
|
|
153
160
|
[source,sh]
|
154
161
|
----
|
155
|
-
metanorma --type iso -x html iso-my-standard-document.adoc
|
162
|
+
$ metanorma --type iso -x html iso-my-standard-document.adoc
|
163
|
+
----
|
164
|
+
|
165
|
+
`require`:: If you wish to use metanorma with a document class which has not been included in the types recognised
|
166
|
+
by the metanorma script, you will need to name the corresponding Metnorma gem explicitly with the `-r`
|
167
|
+
option; e.g.
|
168
|
+
|
169
|
+
[source,sh]
|
170
|
+
----
|
171
|
+
$ metanorma -t mpfd mpfd-bpn.adoc
|
172
|
+
|
173
|
+
[metanorma] Error: mpfd is not a supported standard type.
|
174
|
+
|
175
|
+
$ metanorma -t mpfd -r metanorma-mpfd mpfd-bpn.adoc
|
156
176
|
----
|
157
177
|
|
158
178
|
|
@@ -28,6 +28,7 @@ module Metanorma
|
|
28
28
|
/\n:htmlcoverpage: (?<htmlcoverpage>[^\n]+)\n/ =~ header
|
29
29
|
/\n:htmlintropage: (?<htmlintropage>[^\n]+)\n/ =~ header
|
30
30
|
/\n:scripts: (?<scripts>[^\n]+)\n/ =~ header
|
31
|
+
/\n:scripts-pdf: (?<scripts_pdf>[^\n]+)\n/ =~ header
|
31
32
|
/\n:wordstylesheet: (?<wordstylesheet>[^\n]+)\n/ =~ header
|
32
33
|
/\n:standardstylesheet: (?<standardstylesheet>[^\n]+)\n/ =~ header
|
33
34
|
/\n:header: (?<header>[^\n]+)\n/ =~ header
|
@@ -46,6 +47,7 @@ module Metanorma
|
|
46
47
|
htmlcoverpage: defined?(htmlcoverpage) ? htmlcoverpage : nil,
|
47
48
|
htmlintropage: defined?(htmlintropage) ? htmlintropage : nil,
|
48
49
|
scripts: defined?(scripts) ? scripts : nil,
|
50
|
+
scripts_pdf: defined?(scripts_pdf) ? scripts_pdf : nil,
|
49
51
|
wordstylesheet: defined?(wordstylesheet) ? wordstylesheet : nil,
|
50
52
|
standardstylesheet: defined?(standardstylesheet) ? standardstylesheet : nil,
|
51
53
|
header: defined?(header) ? header : nil,
|
data/lib/metanorma/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|