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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47248f3e618ca8b5c9677c6daebb7d31ef3beed3d8c5883fdd4905c4d5d277fe
4
- data.tar.gz: 8da904dafb7e16cd35598f2085a3c7d1d2963cda1a329c21cd544e6aa4c84461
3
+ metadata.gz: 76715eff6f9baf15080144dbe229e9853929a5ab8e5dd7db6be61383d40d8567
4
+ data.tar.gz: a30c147a779a137db98033a2ecf61e648775a5e25ec76034fb9cc8c5c7cada32
5
5
  SHA512:
6
- metadata.gz: de5d7128f0c113ffc051b296696063366cd67ec1fe57a9ec96a4e6003b1bfc434b355300849fc729b9d032650e359ef90079f50fd70726510d871e8a0c68b5c1
7
- data.tar.gz: 28da31cf16f021875ef8b171dc0d80b9c5b82d90ebc6d27632a48fa5dbcf6cc1e252361bd449691496bd6f237216704c4749f36bd8d1628e676ba2acba87360a
6
+ metadata.gz: e2d99e2f42830d0a4fc180915949d16feec5fde95729ee2953650cd11012cc5ae5c7603a696b0afcf88b99f9e32e874251a30f6ba50ca1dc48fac9ade8a80bd1
7
+ data.tar.gz: e8e80287e3d4ebd0ab6bc68d5e67b166d2a7bf39b06e9c936076f6617c0344cc7458cbb68a96697fc1fe9b0166c6af7c28d535811c4ad1b59ee11caccd006fb2
@@ -0,0 +1,3 @@
1
+ ruby:
2
+ Enabled: true
3
+ config_file: .rubocop.yml
@@ -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
@@ -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
- //* Ribose Specification Documents (RSD): AsciiRSD, RSD XML schema, and the https://github.com/riboseinc/metanorma-rsd[metanorma-rsd implementation]
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
- header = file.sub(/\n\n.*$/m, "\n")
19
+ headerextract = file.sub(/\n\n.*$/m, "\n")
20
20
 
21
- /\n:script: (?<script>[^\n]+)\n/ =~ header
22
- /\n:body-font: (?<bodyfont>[^\n]+)\n/ =~ header
23
- /\n:header-font: (?<headerfont>[^\n]+)\n/ =~ header
24
- /\n:monospace-font: (?<monospacefont>[^\n]+)\n/ =~ header
25
- /\n:title-font: (?<titlefont>[^\n]+)\n/ =~ header
26
- /\n:i18nyaml: (?<i18nyaml>[^\n]+)\n/ =~ header
27
- /\n:htmlstylesheet: (?<htmlstylesheet>[^\n]+)\n/ =~ header
28
- /\n:htmlcoverpage: (?<htmlcoverpage>[^\n]+)\n/ =~ header
29
- /\n:htmlintropage: (?<htmlintropage>[^\n]+)\n/ =~ header
30
- /\n:scripts: (?<scripts>[^\n]+)\n/ =~ header
31
- /\n:scripts-pdf: (?<scripts_pdf>[^\n]+)\n/ =~ header
32
- /\n:wordstylesheet: (?<wordstylesheet>[^\n]+)\n/ =~ header
33
- /\n:standardstylesheet: (?<standardstylesheet>[^\n]+)\n/ =~ header
34
- /\n:header: (?<header>[^\n]+)\n/ =~ header
35
- /\n:wordcoverpage: (?<wordcoverpage>[^\n]+)\n/ =~ header
36
- /\n:wordintropage: (?<wordintropage>[^\n]+)\n/ =~ header
37
- /\n:ulstyle: (?<ulstyle>[^\n]+)\n/ =~ header
38
- /\n:olstyle: (?<olstyle>[^\n]+)\n/ =~ header
39
- /\n(?<datauriimage>:data-uri-image:[^\n]*)\n/ =~ header
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,
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
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.3.0
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-10-26 00:00:00.000000000 Z
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