metanorma-cli 1.0.1 → 1.0.2

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: d56ad13dd0769d20cb8219b79864798de2036d0a31c786830ac2fb1598d2a3b3
4
- data.tar.gz: bea42f15d9e357f3cf073a388f4b1b63ac6f4475770c78fc8c2d94afeb718588
3
+ metadata.gz: '091411b942b05ba5583d7613e800312a725fb5956fce0b96dd284759cd3a1fc8'
4
+ data.tar.gz: 134548ea436a6b47454312c829c604b7b58e9efe467330aef7d7c9bbc95a8021
5
5
  SHA512:
6
- metadata.gz: 63945a3cc26ce7c4df4be425a1a4db795a828f76addb3f2c217864c8f302b4a4a2f60847a28b12673458a8bbe6eb61f663e165980faaf842346d99c306803a95
7
- data.tar.gz: ffbd2baa2b5bd2e23c743a0f469a4742b8e00bec9e078e7306198dbaf42ab5086bd9450c1a92c17aefd1c032fdbf9d3a0d62d56da1ad7471939afe8c86f3d47b
6
+ metadata.gz: 5b34cd82f00fb76d19ebb57e9eab674fdabbfc1420599994ab22d8b71e9495085bbef0d2022f22e21a9c7db1adc5c292b1f27ffad4234aa811af2e294d4887f0
7
+ data.tar.gz: 66b0b5f550508f8e3e6085d7fe7eaadb1bc631d914421e9db26d767c15f109e810036e3b2bc59f09e4fb653aaa1bb5c057826d797118d2704ff5a605a3efa9a6
@@ -0,0 +1,22 @@
1
+ = Installation
2
+
3
+ The `metanorma` command-line executable gets installed via a Ruby gem.
4
+ Depending on your use case, you may need to install Puppeteer Node package.
5
+
6
+ == Installing the Metanorma CLI gem
7
+
8
+ [source,console]
9
+ ----
10
+ gem install metanorma-cli
11
+ ----
12
+
13
+ == Installing Puppeteer
14
+
15
+ If you are going to generate PDFs from HTML (which applies to CalConnect Standard Documents),
16
+ you will also need to install the https://github.com/GoogleChrome/puppeteer[Puppeteer] Node library:
17
+
18
+ * Ensure you have Node at least 7.6.0:
19
+ ** https://nodejs.org/en/download/
20
+ ** On macOS you should be able to `brew install node`
21
+ * Ensure you have NPM: https://docs.npmjs.com/getting-started/installing-node
22
+ * Install Puppeteer globally in your system: `npm install -g --save --save-exact puppeteer`
@@ -0,0 +1,9 @@
1
+ ---
2
+ sections:
3
+ - name: Introduction
4
+ items:
5
+ - installation
6
+ - usage
7
+ ---
8
+
9
+ = Navigation
@@ -0,0 +1,74 @@
1
+ = Usage
2
+
3
+ Help command:
4
+
5
+ [source,sh]
6
+ ----
7
+ $ metanorma -h
8
+ Usage: metanorma [options] <file>
9
+ -t, --type TYPE Type of standard to generate: rfc2, rfc3, iso, gb, csd, csand, m3d
10
+ -x, --extensions EXT1,EXT2,... | all Type of extension to generate per type:
11
+ {
12
+ :rfc2=>{:xmlrfc=>"v2.xml"},
13
+ :rfc3=>{:xmlrfc=>"v3.xml"},
14
+ :iso=>{:html=>"html", :html_alt=>"alt.html", :doc=>"doc"},
15
+ :gb=>{:html=>"html", :doc=>"doc"},
16
+ :csd=>{:html=>"html", :pdf=>"pdf"},
17
+ :csand=>{:html=>"html"},
18
+ :m3d=>{:html=>"html", :doc=>"doc"},
19
+ :rsd=>{:html=>"html"}
20
+ }
21
+ In addition, xml (outside of rfc2, rfc3) generates IsoDoc XML. If the argument is "all" or the option is
22
+ missing, all available extensions are generated.
23
+ -f, --format FORMAT Format of source file: asciidoc (current default, only format supported)
24
+ -r, --require LIBRARY Require LIBRARY prior to execution
25
+ -w, --wrapper Create wrapper folder for HTML output
26
+ -h, --help Show this message
27
+ ----
28
+
29
+ Basically it is used like this:
30
+
31
+ [source,sh]
32
+ ----
33
+ $ metanorma --type <chosen-type> [--format input-format] [--extensions EXT1,EXT2...] iso-my-standard-document.adoc
34
+ ----
35
+
36
+ Options:
37
+
38
+ `type`:: (mandatory, specified via `--type` or `-t`) takes one of the following types:
39
+ `rfc2`, `rfc3`, `iso`, `gb`, `csd`, `csand`, `m3d`, `rsd`. Each of these corresponds to a
40
+ standards class and a Metanorma gem; the list of standards classes supported by the script
41
+ by default will grow (see also `require`).
42
+
43
+ `extension`:: (optional) specifies the output formats to be generated. If not specified,
44
+ all possible output formats are generated. The output formats generated are constrained by
45
+ what has been defined for each standard type. All standards can generate Metanorma XML (`xml`),
46
+ and at least one of HTML (`html`), DOC (`doc`), PDF (`pdf`). Some standards generate alternative
47
+ HTML renderings (e.g. `html_alt` for ISO).
48
+
49
+ `wrapper`:: create a separate folder for each instance of HTML output generated; the folder is named
50
+ the same as the output file, without the `.html` suffix. Used to make distribution of HTML outputs
51
+ more straightforward.
52
+
53
+ `format`:: (optional, specified via `--format` or `-f`) only accepts `asciidoc` for now,
54
+ defaults to `asciidoc`
55
+
56
+ As the `--format` argument is (currently) optional, so:
57
+
58
+ [source,sh]
59
+ ----
60
+ $ metanorma --type iso -x html iso-my-standard-document.adoc
61
+ ----
62
+
63
+ `require`:: If you wish to use metanorma with a document class which has not been included in the types recognised
64
+ by the metanorma script, you will need to name the corresponding Metnorma gem explicitly with the `-r`
65
+ option; e.g.
66
+
67
+ [source,sh]
68
+ ----
69
+ $ metanorma -t mpfd mpfd-bpn.adoc
70
+
71
+ [metanorma] Error: mpfd is not a supported standard type.
72
+
73
+ $ metanorma -t mpfd -r metanorma-mpfd mpfd-bpn.adoc
74
+ ----
@@ -2,6 +2,8 @@
2
2
 
3
3
  require "optparse"
4
4
  require "metanorma"
5
+ require "fileutils"
6
+ require "nokogiri"
5
7
 
6
8
  registry = Metanorma::Registry.instance
7
9
 
@@ -20,13 +22,13 @@ supported_gem_paths = [
20
22
  puts "[metanorma] detecting backends:"
21
23
  supported_gem_paths.each do |backend|
22
24
  begin
23
- puts backend
25
+ # puts backend
24
26
  require backend
25
27
  rescue LoadError
26
- puts "[metanorma] backend #{backend} not present"
28
+ puts "[metanorma] Error: backend #{backend} not present"
27
29
  end
28
30
  end
29
- puts
31
+ # puts
30
32
 
31
33
  options = {
32
34
  format: :asciidoc
@@ -67,6 +69,24 @@ opt_parser = OptionParser.new do |opts|
67
69
  "Print version of code (accompanied with -t)",
68
70
  ) { options[:version] = true }
69
71
 
72
+ opts.on(
73
+ '-w',
74
+ '--wrapper',
75
+ 'Create wrapper folder for HTML output'
76
+ ) { options[:wrapper] = true }
77
+
78
+ opts.on(
79
+ '-d',
80
+ '--data-uri-image',
81
+ 'Encode HTML output images as data URIs'
82
+ ) { options[:datauriimage] = true }
83
+
84
+ opts.on(
85
+ '-R',
86
+ '--relaton FILENAME',
87
+ 'Export Relaton XML for document to nominated filename'
88
+ ) { |v| options[:relaton] = v }
89
+
70
90
  opts.on_tail("-h", "--help", "Show this message") do
71
91
  puts opts
72
92
  exit
@@ -93,15 +113,29 @@ end
93
113
 
94
114
  options[:filename] = ARGV.pop
95
115
 
96
- unless options[:type]
116
+ standard_type = options[:type]
117
+ unless standard_type
97
118
  puts "[metanorma] Error: Please specify a standard type."
98
119
  puts opt_parser.help
99
120
  exit 0
100
121
  end
101
122
 
102
- unless registry.supported_backends.include? options[:type]
103
- puts "[metanorma] Error: #{options[:type]} is not a supported standard type."
104
- exit 0
123
+ unless registry.supported_backends.include? standard_type
124
+ puts "[metanorma] Warning: #{standard_type} is not a default standard type."
125
+ puts "[metanorma] Info: Attempting to load `metanorma-#{standard_type}` gem for standard type `#{standard_type}`."
126
+
127
+ begin
128
+ require "metanorma-#{standard_type}"
129
+ puts "[metanorma] Info: gem `metanorma-#{standard_type}` loaded."
130
+ rescue LoadError
131
+ puts "[metanorma] Error: loading gem `metanorma-#{standard_type}` failed. Exiting."
132
+ exit 0
133
+ end
134
+
135
+ unless registry.supported_backends.include? standard_type
136
+ puts "[metanorma] Error: The `metanorma-#{standard_type}` gem still doesn't support `#{standard_type}`. Exiting."
137
+ exit 0
138
+ end
105
139
  end
106
140
 
107
141
  unless options[:format] == :asciidoc
@@ -134,11 +168,28 @@ when :asciidoc
134
168
 
135
169
  file = File.read(options[:filename], encoding: "utf-8")
136
170
  isodoc = processor.input_to_isodoc(file)
171
+
172
+ if options[:relaton]
173
+ xml = Nokogiri::XML(isodoc)
174
+ bibdata = xml.at("//xmlns:bibdata")
175
+ # require "byebug"; byebug
176
+ #docid = bibdata&.at("./xmlns:docidentifier")&.text || options[:filename]
177
+ #outname = docid.sub(/^\s+/, "").sub(/\s+$/, "").gsub(/\s+/, "-") + ".xml"
178
+ File.open(options[:relaton], "w:UTF-8") { |f| f.write bibdata.to_xml }
179
+ end
180
+
137
181
  isodoc_options = processor.extract_options(file)
182
+ isodoc_options[:datauriimage] = true if options[:datauriimage]
138
183
  extensions.each do |ext|
139
184
  file_extension = processor.output_formats[ext]
140
185
  outfilename = options[:filename].sub(/\.[^.]+$/, ".#{file_extension}")
141
186
  processor.output(isodoc, outfilename, ext, isodoc_options)
187
+ if options[:wrapper] and /html$/.match file_extension
188
+ outfilename = outfilename.sub(/\.html$/, "")
189
+ FileUtils.mkdir_p outfilename
190
+ FileUtils.mv "#{outfilename}.html", outfilename
191
+ FileUtils.mv "#{outfilename}_images", outfilename
192
+ end
142
193
  end
143
194
  end
144
195
 
@@ -0,0 +1,177 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "yaml"
4
+ require "optparse"
5
+ require "metanorma"
6
+ require "uuidtools"
7
+ require "uri"
8
+
9
+ registry = Metanorma::Registry.instance
10
+ supported_gem_paths = [
11
+ "asciidoctor-rfc",
12
+ "metanorma-iso",
13
+ "metanorma-gb",
14
+ "metanorma-csd",
15
+ "metanorma-csand",
16
+ "metanorma-m3d",
17
+ "metanorma-rsd",
18
+ "metanorma-acme",
19
+ "metanorma-standoc",
20
+ ]
21
+
22
+ puts "[metanorma] detecting backends:"
23
+ supported_gem_paths.each do |backend|
24
+ begin
25
+ puts backend
26
+ require backend
27
+ rescue LoadError
28
+ puts "[metanorma] backend #{backend} not present"
29
+ end
30
+ end
31
+ puts
32
+
33
+ options = {}
34
+
35
+ def uuid()
36
+ UUIDTools::UUID.random_create
37
+ end
38
+
39
+ def extract_documents(m)
40
+ return [] unless m and m["sections"]
41
+ ret = []
42
+ m["sections"].each do |s|
43
+ ret << s if s["file"]
44
+ ret << extract_documents(s) if s["sections"]
45
+ end
46
+ ret.flatten
47
+ end
48
+
49
+ def hyperlink(link, suffix)
50
+ return unless link
51
+ link.sub(/\.adoc(?=$|#)/, ".#{suffix}")
52
+ end
53
+
54
+ def iterate(sections, options)
55
+ return "" unless sections
56
+ ret = ""
57
+ Array(sections).each do |m|
58
+ ret+= "<clause id='#{uuid}'>\n"
59
+ title = m["title"] && m["number"] ? "#{m['number']}. #{m['title']}" : ( m["number"] || m["title"] || "&mdash;" )
60
+ ret+= "<title>#{title}</title>\n"
61
+ ret+= "<p>#{m["type"]}</p>\n" if m["type"]
62
+ if m["file"]
63
+ ret += "<p>"
64
+ file = hyperlink(m["file"], "html")
65
+ ret += "<link target='#{file}'>HTML</link> |" if file
66
+ file = hyperlink(m["file"], "pdf")
67
+ ret += "<link target='#{file}'>PDF</link> |" if file
68
+ file = hyperlink(m["file"], "xml")
69
+ ret += "<link target='#{file}'>XML</link> " if file
70
+ if options[:relaton]
71
+ file = URI.escape("#{options[:relaton]}/id/#{m['number']}.xml")
72
+ ret += "| <link target='#{file}'>Relaton XML</link> "
73
+ end
74
+ ret += "</p>\n"
75
+ end
76
+ ret+= "<p>#{m['description']}</p>\n" if m["description"]
77
+ if m["revdate"]
78
+ if m["status"]
79
+ ret+= "<p>STAGE: #{m["status"]} (#{m['revdate']})</p>\n"
80
+ else
81
+ ret+= "<p align='right'>#{m['revdate']}</p>\n"
82
+ end
83
+ else
84
+ if m["status"]
85
+ ret+= "<p>STAGE: #{m["status"]}</p>\n"
86
+ end
87
+ end
88
+ ret += iterate(m["sections"], options)
89
+ ret+= "</clause>\n"
90
+ end
91
+ ret
92
+ end
93
+
94
+ opt_parser = OptionParser.new do |opts|
95
+ opts.banner += " <file>"
96
+ opts.on(
97
+ '-t',
98
+ '--type TYPE',
99
+ "Type of standard to generate"
100
+ ) { |v| options[:type] = v.to_sym }
101
+
102
+ opts.on(
103
+ '-r',
104
+ '--require LIBRARY',
105
+ 'Require LIBRARY prior to execution'
106
+ ) { |v|
107
+ options[:require] ||= []
108
+ options[:require] << v
109
+ }
110
+
111
+ opts.on(
112
+ '-R dir',
113
+ '--relaton',
114
+ "Insert links to relaton XML, generated by relaton-server-csd, with root directory dir (/id/xxxx is supplied)"
115
+ ) { |v| options[:relaton] = v }
116
+
117
+ opts.on_tail("-h", "--help", "Show this message") do
118
+ puts opts
119
+ exit
120
+ end
121
+ end
122
+ opt_parser.parse!(ARGV)
123
+ options[:filename] = ARGV.pop
124
+
125
+ if options[:require]
126
+ options[:require].each do |r|
127
+ require r
128
+ end
129
+ end
130
+
131
+ manifest = YAML.load_file(options[:filename])
132
+
133
+ documents = extract_documents(manifest)
134
+
135
+ # TODO real lookup of namespaces and root elements
136
+
137
+ out = <<~END
138
+ <#{options[:type]}-standard xmlns="http://riboseinc.com/isoxml">
139
+ <bibdata type="standard">
140
+ <title>#{manifest["title"]}</title>
141
+ END
142
+
143
+ # TODO leave in anchor references?
144
+ #
145
+ documents.each do |d|
146
+ out += <<~END
147
+ <relation type="partOf">
148
+ <bibdata type="standard">
149
+ <title>#{d['title']}</title>
150
+ <docidentifier>#{d['number']}</docidentifier>
151
+ <abstract>#{d['description']}</abstract>
152
+ </bibdata>
153
+ </relation>
154
+ END
155
+ end
156
+
157
+ out += <<~END
158
+ </bibdata>
159
+ <sections>
160
+ END
161
+
162
+ out+=iterate(manifest["sections"], options)
163
+
164
+ out+= <<~END
165
+ </sections>
166
+ <#{options[:type]}-standard>
167
+ END
168
+ outfilename = options[:filename].sub(/\.[^.]+$/, ".xml")
169
+ File.open(outfilename, "w") { |f| f.write out }
170
+
171
+ processor = registry.find_processor(options[:type].to_sym)
172
+ ext = :html
173
+ file_extension = "html" || processor.output_formats[ext]
174
+ outfilename = options[:filename].sub(/\.[^.]+$/, ".#{file_extension}")
175
+ isodoc_options = { suppressheadingnumbers: true }
176
+ isodoc_options[:htmlstylesheet] = manifest["htmlstylesheet"] if manifest["htmlstylesheet"]
177
+ processor.output(out, outfilename, ext, isodoc_options)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CLI
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -33,15 +33,16 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'rspec-core', "~> 3.4"
34
34
 
35
35
 
36
- spec.add_runtime_dependency 'metanorma-iso', "~> 1.0.1"
36
+ spec.add_runtime_dependency 'metanorma-iso', "~> 1.0.6"
37
37
  spec.add_runtime_dependency 'asciidoctor-rfc', "~> 0.9.0"
38
- spec.add_runtime_dependency 'metanorma-gb', "~> 1.0.1"
39
- spec.add_runtime_dependency 'metanorma-csd', "~> 1.0.1"
40
- spec.add_runtime_dependency 'metanorma-csand', "~> 1.0.1"
41
- spec.add_runtime_dependency 'metanorma-rsd', "~> 1.0.1"
42
- spec.add_runtime_dependency 'metanorma-m3d', "~> 1.0.1"
43
- spec.add_runtime_dependency 'metanorma-acme', "~> 1.0.0"
44
- spec.add_runtime_dependency 'metanorma-standoc', "~> 1.0.0"
38
+ spec.add_runtime_dependency 'metanorma-gb', "~> 1.0.5"
39
+ spec.add_runtime_dependency 'metanorma-csd', "~> 1.0.5"
40
+ spec.add_runtime_dependency 'metanorma-csand', "~> 1.0.5"
41
+ spec.add_runtime_dependency 'metanorma-rsd', "~> 1.0.5"
42
+ spec.add_runtime_dependency 'metanorma-m3d', "~> 1.0.6"
43
+ spec.add_runtime_dependency 'metanorma-acme', "~> 1.0.1"
44
+ spec.add_runtime_dependency 'metanorma-standoc', "~> 1.0.6"
45
45
  spec.add_runtime_dependency 'isodoc', "~> 0.9.0"
46
46
  spec.add_runtime_dependency 'metanorma', "~> 0.2.6"
47
+ spec.add_runtime_dependency 'nokogiri'
47
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.0.1
117
+ version: 1.0.6
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.0.1
124
+ version: 1.0.6
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: asciidoctor-rfc
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,98 +142,98 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.0.1
145
+ version: 1.0.5
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.0.1
152
+ version: 1.0.5
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: metanorma-csd
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.0.1
159
+ version: 1.0.5
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 1.0.1
166
+ version: 1.0.5
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: metanorma-csand
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.0.1
173
+ version: 1.0.5
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 1.0.1
180
+ version: 1.0.5
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: metanorma-rsd
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.0.1
187
+ version: 1.0.5
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 1.0.1
194
+ version: 1.0.5
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: metanorma-m3d
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 1.0.1
201
+ version: 1.0.6
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 1.0.1
208
+ version: 1.0.6
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: metanorma-acme
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 1.0.0
215
+ version: 1.0.1
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 1.0.0
222
+ version: 1.0.1
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: metanorma-standoc
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: 1.0.0
229
+ version: 1.0.6
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: 1.0.0
236
+ version: 1.0.6
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: isodoc
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -262,11 +262,26 @@ dependencies:
262
262
  - - "~>"
263
263
  - !ruby/object:Gem::Version
264
264
  version: 0.2.6
265
+ - !ruby/object:Gem::Dependency
266
+ name: nokogiri
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :runtime
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
265
279
  description: Executable to process any Metanorma standard.
266
280
  email:
267
281
  - open.source@ribose.com
268
282
  executables:
269
283
  - metanorma
284
+ - metanorma-manifest
270
285
  extensions: []
271
286
  extra_rdoc_files:
272
287
  - README.adoc
@@ -280,7 +295,11 @@ files:
280
295
  - LICENSE
281
296
  - README.adoc
282
297
  - Rakefile
298
+ - docs/installation.adoc
299
+ - docs/navigation.adoc
300
+ - docs/usage.adoc
283
301
  - exe/metanorma
302
+ - exe/metanorma-manifest
284
303
  - i18n.yaml
285
304
  - lib/metanorma-cli.rb
286
305
  - lib/metanorma-cli/version.rb