metanorma-cli 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metanorma/cli/collection.rb +6 -2
- data/lib/metanorma/cli/command.rb +1 -1
- data/lib/metanorma/cli/version.rb +1 -1
- data/lib/metanorma/cli.rb +1 -1
- data/metanorma-cli.gemspec +4 -4
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb0751037e69234f0d34223e742f107ebd69a095c803d639ff7b4574bef06be1
|
4
|
+
data.tar.gz: b776d0d285d1e06cb71071460b1bcd46f33252c6ee76ac7024eb37063ef5341c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c3fc02662624ff2b68bbc147a6aa4707d0f90db24ba317adcb44bae25e9c2c2b846dfebc10f8cebd4c040ac58057f9e67c7db6d333672e2064fed46b051d65
|
7
|
+
data.tar.gz: cc329f85a1c4220f4fc29ebc765992116c78c7802041cb546e9a61333a268540cb683cf1a482c85d12d3c3e03bb0f83b84510da8191a1ed52244d2af93d95f45
|
@@ -26,11 +26,15 @@ module Metanorma
|
|
26
26
|
@collection_file ||= Metanorma::Collection.parse(file)
|
27
27
|
end
|
28
28
|
|
29
|
+
def source_folder
|
30
|
+
@source_folder ||= File.dirname(File.expand_path(file))
|
31
|
+
end
|
32
|
+
|
29
33
|
def collection_options
|
30
|
-
{
|
34
|
+
@collection_options ||= {
|
31
35
|
compile: @compile_options,
|
32
36
|
coverpage: options.fetch(:coverpage, nil),
|
33
|
-
output_folder: options.fetch(:output_folder,
|
37
|
+
output_folder: options.fetch(:output_folder, source_folder),
|
34
38
|
format: collection_output_formats(options.fetch(:format, "")),
|
35
39
|
}
|
36
40
|
end
|
@@ -59,7 +59,7 @@ module Metanorma
|
|
59
59
|
|
60
60
|
desc "collection FILENAME", "Render HTML pages from XML/YAML colection"
|
61
61
|
option :format, aliases: "-x", type: :string, desc: "Formats to generate"
|
62
|
-
option :output_folder, aliases: "-w",
|
62
|
+
option :output_folder, aliases: "-w", desc: "Directory to save compiled files"
|
63
63
|
option :coverpage, aliases: "-c", desc: "Liquid template"
|
64
64
|
option :agree_to_terms, type: :boolean, desc: "Agree / Disagree with all third-party licensing terms "\
|
65
65
|
"presented (WARNING: do know what you are agreeing with!)"
|
data/lib/metanorma/cli.rb
CHANGED
@@ -33,7 +33,7 @@ module Metanorma
|
|
33
33
|
|
34
34
|
Metanorma::Cli::Command.start(arguments)
|
35
35
|
rescue Interrupt, SignalException => _e
|
36
|
-
UI.say("
|
36
|
+
UI.say("Process cancelled, exiting.")
|
37
37
|
rescue Errors::FileNotFoundError => error
|
38
38
|
UI.say("Error: #{error}. \nNot sure what to run? try: metanorma help")
|
39
39
|
exit(Errno::ENOENT::Errno)
|
data/metanorma-cli.gemspec
CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
|
|
37
37
|
# spec.add_runtime_dependency "metanorma-nist", "~> 2.1.0"
|
38
38
|
|
39
39
|
spec.add_runtime_dependency "metanorma-ietf", "~> 3.0.0"
|
40
|
-
spec.add_runtime_dependency "metanorma-iso", "~> 2.
|
40
|
+
spec.add_runtime_dependency "metanorma-iso", "~> 2.2.0"
|
41
41
|
spec.add_runtime_dependency "mnconvert"
|
42
42
|
spec.add_runtime_dependency "thor", "~> 1.0"
|
43
43
|
# spec.add_runtime_dependency "metanorma-gb", "~> 1.5.0"
|
@@ -46,13 +46,13 @@ Gem::Specification.new do |spec|
|
|
46
46
|
spec.add_runtime_dependency "metanorma-iec", "~> 2.1.0"
|
47
47
|
# spec.add_runtime_dependency 'metanorma-ribose', "~> 2.1.0"
|
48
48
|
spec.add_runtime_dependency "metanorma-bipm", "~> 2.1.0"
|
49
|
-
spec.add_runtime_dependency "metanorma-generic", "~> 2.2.
|
49
|
+
spec.add_runtime_dependency "metanorma-generic", "~> 2.2.2"
|
50
50
|
spec.add_runtime_dependency "metanorma-m3aawg", "~> 2.1.0"
|
51
|
-
spec.add_runtime_dependency "metanorma-standoc", "~> 2.2.
|
51
|
+
spec.add_runtime_dependency "metanorma-standoc", "~> 2.2.4"
|
52
52
|
# spec.add_runtime_dependency 'metanorma-mpfa', "~> 0.9.0"
|
53
53
|
spec.add_runtime_dependency "git", "~> 1.5"
|
54
54
|
spec.add_runtime_dependency "isodoc", ">= 2.2.0"
|
55
|
-
spec.add_runtime_dependency "metanorma", "~> 1.
|
55
|
+
spec.add_runtime_dependency "metanorma", "~> 1.5.0"
|
56
56
|
spec.add_runtime_dependency "metanorma-iho", "~> 0.6.0"
|
57
57
|
spec.add_runtime_dependency "metanorma-itu", "~> 2.1.0"
|
58
58
|
# spec.add_runtime_dependency "metanorma-nist", "~> 2.1.0"
|
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.6.
|
4
|
+
version: 1.6.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: 2022-09-
|
11
|
+
date: 2022-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 2.
|
173
|
+
version: 2.2.0
|
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: 2.
|
180
|
+
version: 2.2.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: mnconvert
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,14 +268,14 @@ dependencies:
|
|
268
268
|
requirements:
|
269
269
|
- - "~>"
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: 2.2.
|
271
|
+
version: 2.2.2
|
272
272
|
type: :runtime
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: 2.2.
|
278
|
+
version: 2.2.2
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: metanorma-m3aawg
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -296,14 +296,14 @@ dependencies:
|
|
296
296
|
requirements:
|
297
297
|
- - "~>"
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version: 2.2.
|
299
|
+
version: 2.2.4
|
300
300
|
type: :runtime
|
301
301
|
prerelease: false
|
302
302
|
version_requirements: !ruby/object:Gem::Requirement
|
303
303
|
requirements:
|
304
304
|
- - "~>"
|
305
305
|
- !ruby/object:Gem::Version
|
306
|
-
version: 2.2.
|
306
|
+
version: 2.2.4
|
307
307
|
- !ruby/object:Gem::Dependency
|
308
308
|
name: git
|
309
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -338,14 +338,14 @@ dependencies:
|
|
338
338
|
requirements:
|
339
339
|
- - "~>"
|
340
340
|
- !ruby/object:Gem::Version
|
341
|
-
version: 1.
|
341
|
+
version: 1.5.0
|
342
342
|
type: :runtime
|
343
343
|
prerelease: false
|
344
344
|
version_requirements: !ruby/object:Gem::Requirement
|
345
345
|
requirements:
|
346
346
|
- - "~>"
|
347
347
|
- !ruby/object:Gem::Version
|
348
|
-
version: 1.
|
348
|
+
version: 1.5.0
|
349
349
|
- !ruby/object:Gem::Dependency
|
350
350
|
name: metanorma-iho
|
351
351
|
requirement: !ruby/object:Gem::Requirement
|