metanorma-cli 1.5.23 → 1.6.0.pre.1
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/commands/config.rb +5 -1
- data/lib/metanorma/cli/template_repo.rb +6 -1
- data/lib/metanorma/cli/thor_with_config.rb +5 -1
- data/lib/metanorma/cli/version.rb +1 -1
- data/lib/metanorma/cli.rb +2 -1
- metadata +8 -24
- data/exe/index.html +0 -1025
- data/exe/index.xml +0 -43
- data/exe/metanorma.old +0 -178
- data/exe/rfc2629-other.ent +0 -61
- data/exe/rfc2629-xhtml.ent +0 -165
- data/exe/rfc2629.dtd +0 -312
- data/exe/rfc6350.adoc +0 -3505
- data/exe/rfc6350.xml +0 -3319
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddd60ae302b5f5597b3fa0e65573c1aef287bb83a76d13f24993ae419b680628
|
4
|
+
data.tar.gz: 5739b4e80b0198232949007c2395a4fa811569fcd98ce23df7b574be62abf506
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90ecc9923606241ab7ae29a09cc8e12c17b4aea146251ace4610c2008a31ae7e32a945c66e311c03a80218ccc239fe27e506d4f028056925b6843a4f9666cb28
|
7
|
+
data.tar.gz: 19f24f288785c575bc94877786868296754e5937e9c32685ab2bca0cb861c4a7756d55f5dcf05cbef54948b9c1650a0ac39b9d3d9dc7cb4493d7ea2cbcfe492f
|
@@ -1,11 +1,15 @@
|
|
1
1
|
require "pathname"
|
2
|
+
require "metanorma-utils"
|
2
3
|
|
3
|
-
require "metanorma/cli/stringify_all_keys"
|
4
|
+
#require "metanorma/cli/stringify_all_keys"
|
4
5
|
|
5
6
|
module Metanorma
|
6
7
|
module Cli
|
7
8
|
module Commands
|
8
9
|
class Config < Thor
|
10
|
+
Hash.include Metanorma::Utils::Hash
|
11
|
+
Array.include Metanorma::Utils::Array
|
12
|
+
|
9
13
|
class_option :global, aliases: "-g", type: :boolean, default: false, desc: "Use global config"
|
10
14
|
|
11
15
|
desc "get NAME", "Get config value"
|
@@ -1,10 +1,15 @@
|
|
1
1
|
require "yaml"
|
2
|
+
require "metanorma-utils"
|
2
3
|
|
3
|
-
require "metanorma/cli/stringify_all_keys"
|
4
|
+
#require "metanorma/cli/stringify_all_keys"
|
4
5
|
|
5
6
|
module Metanorma
|
6
7
|
module Cli
|
7
8
|
class TemplateRepo
|
9
|
+
|
10
|
+
Hash.include Metanorma::Utils::Hash
|
11
|
+
Array.include Metanorma::Utils::Array
|
12
|
+
|
8
13
|
def initialize(options = {})
|
9
14
|
@name = options.fetch(:name)
|
10
15
|
@source = options.fetch(:source)
|
@@ -1,10 +1,14 @@
|
|
1
1
|
require "thor"
|
2
|
+
require "metanorma-utils"
|
2
3
|
|
3
|
-
require_relative "stringify_all_keys"
|
4
|
+
#require_relative "stringify_all_keys"
|
4
5
|
|
5
6
|
module Metanorma
|
6
7
|
module Cli
|
7
8
|
class ThorWithConfig < Thor
|
9
|
+
Hash.include Metanorma::Utils::Hash
|
10
|
+
Array.include Metanorma::Utils::Array
|
11
|
+
|
8
12
|
no_commands do
|
9
13
|
def options
|
10
14
|
original_options = super.to_hash.symbolize_all_keys
|
data/lib/metanorma/cli.rb
CHANGED
@@ -32,7 +32,8 @@ module Metanorma
|
|
32
32
|
end
|
33
33
|
|
34
34
|
Metanorma::Cli::Command.start(arguments)
|
35
|
-
|
35
|
+
rescue Interrupt, SignalException => _e
|
36
|
+
UI.say("Good Bye!")
|
36
37
|
rescue Errors::FileNotFoundError => error
|
37
38
|
UI.say("Error: #{error}. \nNot sure what to run? try: metanorma help")
|
38
39
|
exit(Errno::ENOENT::Errno)
|
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
|
+
version: 1.6.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|
@@ -448,16 +448,8 @@ description: Executable to process any Metanorma standard.
|
|
448
448
|
email:
|
449
449
|
- open.source@ribose.com
|
450
450
|
executables:
|
451
|
-
- index.html
|
452
|
-
- index.xml
|
453
451
|
- metanorma
|
454
452
|
- metanorma-manifest
|
455
|
-
- metanorma.old
|
456
|
-
- rfc2629-other.ent
|
457
|
-
- rfc2629-xhtml.ent
|
458
|
-
- rfc2629.dtd
|
459
|
-
- rfc6350.adoc
|
460
|
-
- rfc6350.xml
|
461
453
|
extensions: []
|
462
454
|
extra_rdoc_files:
|
463
455
|
- README.adoc
|
@@ -475,16 +467,8 @@ files:
|
|
475
467
|
- docs/installation.adoc
|
476
468
|
- docs/navigation.adoc
|
477
469
|
- docs/usage.adoc
|
478
|
-
- exe/index.html
|
479
|
-
- exe/index.xml
|
480
470
|
- exe/metanorma
|
481
471
|
- exe/metanorma-manifest
|
482
|
-
- exe/metanorma.old
|
483
|
-
- exe/rfc2629-other.ent
|
484
|
-
- exe/rfc2629-xhtml.ent
|
485
|
-
- exe/rfc2629.dtd
|
486
|
-
- exe/rfc6350.adoc
|
487
|
-
- exe/rfc6350.xml
|
488
472
|
- i18n.yaml
|
489
473
|
- lib/metanorma-cli.rb
|
490
474
|
- lib/metanorma/cli.rb
|
@@ -511,7 +495,7 @@ homepage: https://www.metanorma.com
|
|
511
495
|
licenses:
|
512
496
|
- BSD-2-Clause
|
513
497
|
metadata: {}
|
514
|
-
post_install_message:
|
498
|
+
post_install_message:
|
515
499
|
rdoc_options: []
|
516
500
|
require_paths:
|
517
501
|
- lib
|
@@ -522,12 +506,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
522
506
|
version: 2.5.0
|
523
507
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
524
508
|
requirements:
|
525
|
-
- - "
|
509
|
+
- - ">"
|
526
510
|
- !ruby/object:Gem::Version
|
527
|
-
version:
|
511
|
+
version: 1.3.1
|
528
512
|
requirements: []
|
529
|
-
rubygems_version: 3.
|
530
|
-
signing_key:
|
513
|
+
rubygems_version: 3.1.6
|
514
|
+
signing_key:
|
531
515
|
specification_version: 4
|
532
516
|
summary: Metanorma is the standard of standards; the metanorma gem allows you to create
|
533
517
|
any standard document type supported by Metanorma.
|