metanorma-cli 1.6.1 → 1.6.2.pre
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 +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bbf2b70bffbc74fe2df7f16aa0c0a49916d428d6407bcf0212de2285a005839
|
4
|
+
data.tar.gz: 4541690386d3fc84c27db373f8008c51b53bbb468f1686716ae084e3d783557a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faa58b11e49e675ff16943bde16bc53630e508128cd361d41a87c456f2457bda12f523ffaa35398bcd2379b123a736dd4ac9ffde1f257e099ab74cdacbc6e135
|
7
|
+
data.tar.gz: 1ccd402cd2a4ce9c95d0420a48a6cd99e5317f290994cf36ca1b4e30ff0beb4d5a2a5d7e14cb27b7ce9aff6155ddb6d9a7b99d55899bd61f028722b76ad67871
|
@@ -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.pre
|
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
|
@@ -506,9 +506,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
506
506
|
version: 2.5.0
|
507
507
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
508
508
|
requirements:
|
509
|
-
- - "
|
509
|
+
- - ">"
|
510
510
|
- !ruby/object:Gem::Version
|
511
|
-
version:
|
511
|
+
version: 1.3.1
|
512
512
|
requirements: []
|
513
513
|
rubygems_version: 3.1.6
|
514
514
|
signing_key:
|