metanorma-cli 1.4.6 → 1.4.7pre
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/command.rb +3 -0
- data/lib/metanorma/cli/generator.rb +1 -1
- data/lib/metanorma/cli/thor_with_config.rb +1 -1
- data/lib/metanorma/cli/version.rb +1 -1
- data/metanorma-cli.gemspec +1 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84fa2274950b2c9c8da2117de43fa05558192899f2c4b127d5f6f382b96cd7ea
|
4
|
+
data.tar.gz: cd45f93af207ac93aefb16bdd488ecca61827feea75e16ede69ea35bdc5c24cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 286a3da9a613f393f40de552c2dcc5c9af6b9340ab1c326ceec5d1e35d51d19eff4c2d40f8f93edbad4453da692ea830c26c93f8b3e83a37a6c6af8783234225
|
7
|
+
data.tar.gz: b407066259e6adafc760e1af9926160facdd5bf0f3bb0718bf8e8119153f14d7a42e4784ee60fe1df7c9545146014c4f981f5439c1637236407b960d3346c892
|
@@ -10,6 +10,9 @@ require "metanorma"
|
|
10
10
|
module Metanorma
|
11
11
|
module Cli
|
12
12
|
class Command < ThorWithConfig
|
13
|
+
class_option :no_progress, aliases: "-s", type: :boolean, default: true,
|
14
|
+
desc: "Don't show progress for long running tasks (like download)"
|
15
|
+
|
13
16
|
desc "new NAME", "Create new Metanorma document"
|
14
17
|
option :type, aliases: "-t", required: true, desc: "Document type"
|
15
18
|
option :doctype, aliases: "-d", required: true, desc: "Metanorma doctype"
|
@@ -39,7 +39,7 @@ module Metanorma
|
|
39
39
|
# ooption, and in that case it will use that template.
|
40
40
|
#
|
41
41
|
def self.run(name, type:, doctype:, **options)
|
42
|
-
new(name, options.merge(type: type, doctype: doctype)).run
|
42
|
+
new(name, **options.merge(type: type, doctype: doctype)).run
|
43
43
|
end
|
44
44
|
|
45
45
|
private
|
@@ -15,7 +15,7 @@ module Metanorma
|
|
15
15
|
|
16
16
|
def filter_compile_options(options)
|
17
17
|
options.select do |k, _|
|
18
|
-
%w[agree_to_terms no_install_fonts continue_without_fonts].include?(k)
|
18
|
+
%w[agree_to_terms no_install_fonts continue_without_fonts no_progress].include?(k)
|
19
19
|
end.symbolize_all_keys
|
20
20
|
end
|
21
21
|
end
|
data/metanorma-cli.gemspec
CHANGED
@@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
36
36
|
# need for dev because locally compiled metanorma-iso does not have css
|
37
37
|
spec.add_development_dependency "sassc"
|
38
|
+
spec.add_development_dependency "rubocop", "~> 1.5.2"
|
38
39
|
|
39
40
|
spec.add_runtime_dependency "thor", "~> 1.0"
|
40
41
|
spec.add_runtime_dependency "metanorma-iso", "~> 1.7.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.4.
|
4
|
+
version: 1.4.7pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 1.5.2
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.5.2
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: thor
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -494,9 +508,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
494
508
|
version: 2.4.0
|
495
509
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
496
510
|
requirements:
|
497
|
-
- - "
|
511
|
+
- - ">"
|
498
512
|
- !ruby/object:Gem::Version
|
499
|
-
version:
|
513
|
+
version: 1.3.1
|
500
514
|
requirements: []
|
501
515
|
rubygems_version: 3.1.4
|
502
516
|
signing_key:
|