metanorma 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +3 -0
- data/.rubocop.yml +10 -0
- data/README.adoc +12 -5
- data/lib/metanorma/input/asciidoc.rb +20 -20
- data/lib/metanorma/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76715eff6f9baf15080144dbe229e9853929a5ab8e5dd7db6be61383d40d8567
|
4
|
+
data.tar.gz: a30c147a779a137db98033a2ecf61e648775a5e25ec76034fb9cc8c5c7cada32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2d99e2f42830d0a4fc180915949d16feec5fde95729ee2953650cd11012cc5ae5c7603a696b0afcf88b99f9e32e874251a30f6ba50ca1dc48fac9ade8a80bd1
|
7
|
+
data.tar.gz: e8e80287e3d4ebd0ab6bc68d5e67b166d2a7bf39b06e9c936076f6617c0344cc7458cbb68a96697fc1fe9b0166c6af7c28d535811c4ad1b59ee11caccd006fb2
|
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# This project follows the Ribose OSS style guide.
|
2
|
+
# https://github.com/riboseinc/oss-guides
|
3
|
+
# All project-specific additions and overrides should be specified in this file.
|
4
|
+
|
5
|
+
inherit_from:
|
6
|
+
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
|
7
|
+
AllCops:
|
8
|
+
TargetRubyVersion: 2.3
|
9
|
+
Rails:
|
10
|
+
Enabled: true
|
data/README.adoc
CHANGED
@@ -44,7 +44,11 @@ the https://github.com/riboseinc/metanorma-csand/[metanorma-csand implementation
|
|
44
44
|
https://github.com/riboseinc/metanorma-model-m3d[Metanorma M3D model],
|
45
45
|
the https://github.com/riboseinc/metanorma-m3d/[metanorma-m3d implementation]
|
46
46
|
|
47
|
-
|
47
|
+
* Ribose Specification Documents (RSD): AsciiRSD, RSD XML schema, and the https://github.com/riboseinc/metanorma-rsd[metanorma-rsd implementation]
|
48
|
+
|
49
|
+
* Mandatory Provident Fund Schemes Authority of Hong Kong Documents (MPFD): https://github.com/riboseinc/metanorma-mpfd[metanorma-mpfd implementation] (still at proof-of-concept stage)
|
50
|
+
|
51
|
+
* United Nations Economic Commision for Europe Documents (UNECE): https://github.com/riboseinc/metanorma-unece[metanorma-unece implementation]
|
48
52
|
|
49
53
|
|
50
54
|
== Installation on supported platforms
|
@@ -121,11 +125,14 @@ Usage: metanorma [options] <file>
|
|
121
125
|
:rfc2=>{:xmlrfc=>"v2.xml"},
|
122
126
|
:rfc3=>{:xmlrfc=>"v3.xml"},
|
123
127
|
:iso=>{:html=>"html", :html_alt=>"alt.html", :doc=>"doc"},
|
124
|
-
:gb=>{:html=>"html", :doc=>"doc"},
|
125
|
-
:csd=>{:html=>"html", :pdf=>"pdf"},
|
128
|
+
:gb=>{:html=>"html", :compliant_html => "compliant_html", :doc=>"doc"},
|
129
|
+
:csd=>{:html=>"html", :pdf=>"pdf", :doc => "doc"},
|
126
130
|
:csand=>{:html=>"html"},
|
127
|
-
:m3d=>{:html=>"html", :doc=>"doc"},
|
128
|
-
:rsd=>{:html=>"html"}
|
131
|
+
:m3d=>{:html=>"html", :doc=>"doc", :pdf => "pdf"},
|
132
|
+
:rsd=>{:html=>"html", :doc=>"doc", :pdf => "pdf"}
|
133
|
+
:acme=>{:html=>"html", :doc=>"doc", :pdf => "pdf"}
|
134
|
+
:mpdf=>{:html=>"html", :doc=>"doc", :pdf => "pdf"}
|
135
|
+
:unece=>{:html=>"html", :doc=>"doc"}
|
129
136
|
}
|
130
137
|
In addition, xml (outside of rfc2, rfc3) generates IsoDoc XML. If the argument is "all" or the option is
|
131
138
|
missing, all available extensions are generated.
|
@@ -16,27 +16,27 @@ module Metanorma
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def extract_options(file)
|
19
|
-
|
19
|
+
headerextract = file.sub(/\n\n.*$/m, "\n")
|
20
20
|
|
21
|
-
/\n:script: (?<script>[^\n]+)\n/ =~
|
22
|
-
/\n:body-font: (?<bodyfont>[^\n]+)\n/ =~
|
23
|
-
/\n:header-font: (?<headerfont>[^\n]+)\n/ =~
|
24
|
-
/\n:monospace-font: (?<monospacefont>[^\n]+)\n/ =~
|
25
|
-
/\n:title-font: (?<titlefont>[^\n]+)\n/ =~
|
26
|
-
/\n:i18nyaml: (?<i18nyaml>[^\n]+)\n/ =~
|
27
|
-
/\n:htmlstylesheet: (?<htmlstylesheet>[^\n]+)\n/ =~
|
28
|
-
/\n:htmlcoverpage: (?<htmlcoverpage>[^\n]+)\n/ =~
|
29
|
-
/\n:htmlintropage: (?<htmlintropage>[^\n]+)\n/ =~
|
30
|
-
/\n:scripts: (?<scripts>[^\n]+)\n/ =~
|
31
|
-
/\n:scripts-pdf: (?<scripts_pdf>[^\n]+)\n/ =~
|
32
|
-
/\n:wordstylesheet: (?<wordstylesheet>[^\n]+)\n/ =~
|
33
|
-
/\n:standardstylesheet: (?<standardstylesheet>[^\n]+)\n/ =~
|
34
|
-
/\n:header: (?<header>[^\n]+)\n/ =~
|
35
|
-
/\n:wordcoverpage: (?<wordcoverpage>[^\n]+)\n/ =~
|
36
|
-
/\n:wordintropage: (?<wordintropage>[^\n]+)\n/ =~
|
37
|
-
/\n:ulstyle: (?<ulstyle>[^\n]+)\n/ =~
|
38
|
-
/\n:olstyle: (?<olstyle>[^\n]+)\n/ =~
|
39
|
-
/\n(?<datauriimage>:data-uri-image:[^\n]*)\n/ =~
|
21
|
+
/\n:script: (?<script>[^\n]+)\n/ =~ headerextract
|
22
|
+
/\n:body-font: (?<bodyfont>[^\n]+)\n/ =~ headerextract
|
23
|
+
/\n:header-font: (?<headerfont>[^\n]+)\n/ =~ headerextract
|
24
|
+
/\n:monospace-font: (?<monospacefont>[^\n]+)\n/ =~ headerextract
|
25
|
+
/\n:title-font: (?<titlefont>[^\n]+)\n/ =~ headerextract
|
26
|
+
/\n:i18nyaml: (?<i18nyaml>[^\n]+)\n/ =~ headerextract
|
27
|
+
/\n:htmlstylesheet: (?<htmlstylesheet>[^\n]+)\n/ =~ headerextract
|
28
|
+
/\n:htmlcoverpage: (?<htmlcoverpage>[^\n]+)\n/ =~ headerextract
|
29
|
+
/\n:htmlintropage: (?<htmlintropage>[^\n]+)\n/ =~ headerextract
|
30
|
+
/\n:scripts: (?<scripts>[^\n]+)\n/ =~ headerextract
|
31
|
+
/\n:scripts-pdf: (?<scripts_pdf>[^\n]+)\n/ =~ headerextract
|
32
|
+
/\n:wordstylesheet: (?<wordstylesheet>[^\n]+)\n/ =~ headerextract
|
33
|
+
/\n:standardstylesheet: (?<standardstylesheet>[^\n]+)\n/ =~ headerextract
|
34
|
+
/\n:header: (?<header>[^\n]+)\n/ =~ headerextract
|
35
|
+
/\n:wordcoverpage: (?<wordcoverpage>[^\n]+)\n/ =~ headerextract
|
36
|
+
/\n:wordintropage: (?<wordintropage>[^\n]+)\n/ =~ headerextract
|
37
|
+
/\n:ulstyle: (?<ulstyle>[^\n]+)\n/ =~ headerextract
|
38
|
+
/\n:olstyle: (?<olstyle>[^\n]+)\n/ =~ headerextract
|
39
|
+
/\n(?<datauriimage>:data-uri-image:[^\n]*)\n/ =~ headerextract
|
40
40
|
{
|
41
41
|
script: defined?(script) ? script : nil,
|
42
42
|
bodyfont: defined?(bodyfont) ? bodyfont : 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.3.
|
4
|
+
version: 0.3.1
|
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-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -105,7 +105,9 @@ extra_rdoc_files:
|
|
105
105
|
- LICENSE.txt
|
106
106
|
files:
|
107
107
|
- ".gitignore"
|
108
|
+
- ".hound.yml"
|
108
109
|
- ".rspec"
|
110
|
+
- ".rubocop.yml"
|
109
111
|
- ".travis.yml"
|
110
112
|
- CHANGELOG.adoc
|
111
113
|
- CODE_OF_CONDUCT.md
|