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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c1c07282720cd1280548dd5b2723a3da2f1e01ae1ffa72562aecea3885b74b8
4
- data.tar.gz: b85422753c326299f1d6b9c7ab77e8db61fc9e5e4179213a8b3f0c083ae7e591
3
+ metadata.gz: 84fa2274950b2c9c8da2117de43fa05558192899f2c4b127d5f6f382b96cd7ea
4
+ data.tar.gz: cd45f93af207ac93aefb16bdd488ecca61827feea75e16ede69ea35bdc5c24cb
5
5
  SHA512:
6
- metadata.gz: 3a9e782aa9ce4c80db519575c6ee8b2d6d61199c6b98174a24a08af75817c885ccf3ff0f8d1e17ac0a6206e64b66fbb486ba37d4d58926598b8afda7245b239a
7
- data.tar.gz: b5319e1417218fdedf60557d620a3b5304c44a3dca151a834dbf46a0e9949bc3a1cfc405c61777441e7ca4ceca12ba3f020f3907a43b3d13480c20e586db5315
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cli
3
- VERSION = "1.4.6"
3
+ VERSION = "1.4.7pre"
4
4
  end
5
5
  end
@@ -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.6
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-16 00:00:00.000000000 Z
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: '0'
513
+ version: 1.3.1
500
514
  requirements: []
501
515
  rubygems_version: 3.1.4
502
516
  signing_key: