eac_ruby_base0 0.3.1 → 0.3.2

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: 91e7edf93f8dd1fd66ee855ef16158359ea607cc5ed34be261da602391aea249
4
- data.tar.gz: 68e5a7bbbc13b7405062b306b6fd61b1bfb5708a2d649e43eddde1c2f8e054ad
3
+ metadata.gz: c33caa20ce5698a75e3cced324d2a33982183fa7ce00e8f1b8e49ce96330c843
4
+ data.tar.gz: 4bc3cb6a780f50348596e94085073f345ff0e52ee5c5c14f3077ff54edd2dc60
5
5
  SHA512:
6
- metadata.gz: 10981927a7f0b3ed6d2293e257532cb39377cf701cf3f1bee35b4977b61f4f79b7d4fefe889c2ce97eff285129896911019372ee6570e3fa0ba41ba19df94ea3
7
- data.tar.gz: 701b31f022bb112a8a944d14653997fa2a71901df08e668bc2f4c1c11a13ac07b905bc3ad7efe915f1d2e97db0e51e39353a7b93a06657d81d034860e0d8a229
6
+ metadata.gz: 7253c7709e4d7860d7a58b95fd467ed3d899b7404e6c876337a0ff9fe9e5f62b375690fd2cf8f115e76f3d8fdb3ad45eab70d28082a54eee025469ed065b530e
7
+ data.tar.gz: 5218e12bbd24b4664370625cfaed4b47eaed2bd46840b0dab23037a51f011772557500a9a895803cc89fcd6c0c290136018e94ce9bb4bd43c902cbf2ea048bab
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'eac_ruby_gems_utils/gem'
3
4
  require 'eac_ruby_utils/core_ext'
4
5
  require 'eac_ruby_utils/filesystem_cache'
5
6
 
@@ -1,13 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_cli/default_runner'
3
+ require 'eac_cli/runner_with/help'
4
+ require 'eac_cli/runner_with/subcommands'
4
5
  require 'eac_ruby_utils/core_ext'
5
6
 
6
7
  module EacRubyBase0
7
8
  module Runner
8
9
  require_sub __FILE__
10
+ enable_console_speaker
9
11
  common_concern do
10
- include ::EacCli::DefaultRunner
12
+ include ::EacCli::RunnerWith::Help
13
+ include ::EacCli::RunnerWith::Subcommands
11
14
  runner_definition do
12
15
  bool_opt '-q', '--quiet', 'Quiet mode.'
13
16
  bool_opt '-I', '--no-input', 'Fail if a input is requested.'
@@ -20,9 +23,9 @@ module EacRubyBase0
20
23
 
21
24
  def run
22
25
  on_speaker_node do |node|
23
- node.stderr = ::StringIO.new if options.fetch('--quiet')
24
- node.stdin = FailIfRequestInput.new if options.fetch('--no-input')
25
- if options.fetch('--version')
26
+ node.stderr = ::StringIO.new if parsed.quiet?
27
+ node.stdin = FailIfRequestInput.new if parsed.no_input?
28
+ if parsed.version?
26
29
  show_version
27
30
  else
28
31
  run_with_subcommand
@@ -31,7 +34,7 @@ module EacRubyBase0
31
34
  end
32
35
 
33
36
  def application_version
34
- context(:application).version.to_s
37
+ runner_context.call(:application).version.to_s
35
38
  end
36
39
 
37
40
  def show_version
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_ruby_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-03 00:00:00.000000000 Z
11
+ date: 2021-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_cli