metanorma 0.2.8 → 0.2.9

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: bf41abc2df53366a05f9a166d8d685d3e9b8eb082fa55a6995ff2ea4df69670b
4
- data.tar.gz: 195e31799d6066458db3bfb81bbe27df5fef9e83b449b04be252af37e254e1d8
3
+ metadata.gz: ae92d14760f740cf2e0cfcb5502a9fca6cf5db3cc9409c0cd3a37a20fbe1e7ec
4
+ data.tar.gz: bd369ff18dcec200ceb9c6aedb983396a972361cf7829882d129b2b7582d3e27
5
5
  SHA512:
6
- metadata.gz: 5fbb69eaa4d372b1f628625473b56743993a3014a16b2ce2eb6fa59325abe27ea6a29d1b8b21328951a037ba9e294ebc737521369ebd5c18c06ddc6eb226565a
7
- data.tar.gz: 2f4cadd3d130b5237ef3b28ee79da29713637530f0b8e0eedcf0b577102a4ee0f43f85e2ba0ad00fc45a9a9bdb75232ba28a726acfe883e80ad2248fc77a84e4
6
+ metadata.gz: 31412b19dfb8c8d1d5e5372f79a4c109943e4f13ba9a615633b951e9f02017fe95cf6a878ed04f72e053d193593ddbe8aa65a37d09ddb79f5e768279371b6628
7
+ data.tar.gz: 5cc24d14bcc024167b05313996da2e9a22cc9a7ebfc266223b2d9cf2fad976132a53f9554a56d01226bc05f59614b25657a1119e8f75997c4e6f19833c86953b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metanorma (0.2.7)
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.3.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.7.0)
19
- rspec-core (~> 3.7.0)
20
- rspec-expectations (~> 3.7.0)
21
- rspec-mocks (~> 3.7.0)
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.7.1)
27
- rspec-support (~> 3.7.0)
28
- rspec-expectations (3.7.0)
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.7.0)
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.7.0)
34
+ rspec-mocks (3.8.0)
35
35
  diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.7.0)
37
- rspec-support (3.7.1)
36
+ rspec-support (~> 3.8.0)
37
+ rspec-support (3.8.0)
38
38
 
39
39
  PLATFORMS
40
40
  ruby
@@ -1,21 +1,25 @@
1
- The MIT License (MIT)
1
+ BSD 2-Clause License
2
2
 
3
- Copyright (c) 2017 Ribose Inc.
3
+ Copyright (c) 2018, Ribose
4
+ All rights reserved.
4
5
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
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
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
14
11
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
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.
@@ -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
- `format`:: (specified via `--format` or `-f`) only accepts `asciidoc` for now
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,
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
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.8
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-08-13 00:00:00.000000000 Z
11
+ date: 2018-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler