metanorma-cli 1.5.24 → 1.6.0.pre

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: c4898ca2fcf6fd0fe1eb65c4a9a72fe55f334f8cab6b990155b9b1425ed69ff6
4
- data.tar.gz: ec95922e2c192211e3cc00b7bb7a03cd48254e75fbdc0a57fbc0e4c7f0795801
3
+ metadata.gz: ad50d223ac681bc943242f8678ea08c5a1a645275297a4a9defac858a172314a
4
+ data.tar.gz: 19c8fd0ee17ff3d5f98e9d333e01a2cfaf6c9c8880deeaba01100c23d3fa8d89
5
5
  SHA512:
6
- metadata.gz: f91dc40722665326f670e47f35c8a2837b3081b36ce4949f054752c3a6fe416f38957bc5436bc02b38060c1fbbabeaf6b45e4477f5050a84292889982004bf91
7
- data.tar.gz: 149a6f7ae7702b13a9930643f51ee780e288a7c7044e285149a26c0aef4d7330ce646b290f6c021b1c380b93cd2e8edfcb5b2979f8f88a16f90c332f1cba6d66
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cli
3
- VERSION = "1.5.24".freeze
3
+ VERSION = "1.6.0.pre".freeze
4
4
  end
5
5
  end
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.5.24
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-08-25 00:00:00.000000000 Z
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: '0'
511
+ version: 1.3.1
528
512
  requirements: []
529
- rubygems_version: 3.3.16
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.