metanorma-cli 1.5.24 → 1.6.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: ad50d223ac681bc943242f8678ea08c5a1a645275297a4a9defac858a172314a
|
|
4
|
+
data.tar.gz: 19c8fd0ee17ff3d5f98e9d333e01a2cfaf6c9c8880deeaba01100c23d3fa8d89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4de1cfeb650426ed697efdcda7398322e7c4d313b1ae0b866c0535bd56be57d26c9d0567a56a05738662da1d21fff73f18f89ed65aa5bae6b6998ac78d7c213e
|
|
7
|
+
data.tar.gz: 696bef440d40d7e972a7dd2918d94609fd7b97ec1046acf7cd24f2a7eb1456e7b7c1678070a867d11dee88b112f34bbf618e33e750ad5c34a2f9b4efc3d73116
|
|
@@ -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
|
|
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-06 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.
|