eac_ruby_base0 0.17.0 → 0.17.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: fd2398ee3d406e4b3d7cf205ded14236149597a7f4756734309bbacd54c2d848
4
- data.tar.gz: 97a5d837f9febae922a1cb21d2fd9e5b4fb819062fd8d609fc4f9cbf16787390
3
+ metadata.gz: 84278eaddcfa719a1118070f5b6de0f2f29f3cba9dab2f62f5c60360da0c4928
4
+ data.tar.gz: 3494e16615d944db4fe3d0c2c9600fe5467f8f2cf03bab2a1a2bf995c390d403
5
5
  SHA512:
6
- metadata.gz: ac25e40f3cbdd58d90a436f803c69c61881812855f96fc5a8aff56f368563598408053a98b4676b9aaa1ecd6b29f4811514dbc12dfdc76ae00166db84b823c92
7
- data.tar.gz: a115e7419c583be230c3ccf032c9371ddf2758a3c2941f509d1c070e055d49528550b37e267a3492fbc3715469552763de327e3bf4d249475b1c56683ba50e2f
6
+ metadata.gz: cdaf385d35ecea55a56c7afbd26b3e73a14a1e7bbb1e790f67fe473a9a0f8f7f8aaa0c47538965f21aedc68fb550a40bda86d188933942239738c988c424b927
7
+ data.tar.gz: 28311446b8ad136720ab4ce6f38e50af481d6063a8fafde104d24453921ebf3d6cd644b9ab431fa6bf9594af39057aee84d89122d06c8aaa67970822a36062bc
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_cli/core_ext'
4
+ require 'eac_cli/speaker'
5
+ require 'eac_cli/speaker/input_blocked'
6
+ require 'eac_config/node'
7
+ require 'eac_fs/contexts'
8
+ require 'eac_ruby_utils/speaker'
9
+
10
+ module EacRubyBase0
11
+ module Runner
12
+ module Prepend
13
+ def run
14
+ if parsed.version?
15
+ show_version
16
+ else
17
+ run_with_subcommand
18
+ end
19
+ end
20
+
21
+ def run_run
22
+ on_context { super }
23
+ end
24
+ end
25
+ end
26
+ end
@@ -2,16 +2,19 @@
2
2
 
3
3
  require 'eac_cli/core_ext'
4
4
  require 'eac_cli/speaker'
5
+ require 'eac_cli/speaker/input_blocked'
5
6
  require 'eac_config/node'
6
7
  require 'eac_fs/contexts'
7
8
  require 'eac_ruby_utils/speaker'
8
9
 
9
10
  module EacRubyBase0
10
11
  module Runner
12
+ require_sub __FILE__
11
13
  enable_speaker
12
14
  common_concern do
13
15
  include ::EacCli::RunnerWith::Help
14
16
  include ::EacCli::RunnerWith::Subcommands
17
+ prepend ::EacRubyBase0::Runner::Prepend
15
18
  runner_definition do
16
19
  bool_opt '-q', '--quiet', 'Quiet mode.'
17
20
  bool_opt '-I', '--no-input', 'Fail if a input is requested.'
@@ -22,16 +25,6 @@ module EacRubyBase0
22
25
  end
23
26
  end
24
27
 
25
- def run
26
- on_context do
27
- if parsed.version?
28
- show_version
29
- else
30
- run_with_subcommand
31
- end
32
- end
33
- end
34
-
35
28
  def application_version
36
29
  runner_context.call(:application).version.to_s
37
30
  end
@@ -51,16 +44,6 @@ module EacRubyBase0
51
44
  out("#{application_version}\n")
52
45
  end
53
46
 
54
- class FailIfRequestInput
55
- enable_speaker
56
-
57
- %w[gets noecho].each do |method|
58
- define_method(method) do
59
- raise "Input method requested (\"#{method}\") and option --no-input is set"
60
- end
61
- end
62
- end
63
-
64
47
  private
65
48
 
66
49
  # @return [Array<EacRubyUtils::Struct>]
@@ -78,7 +61,7 @@ module EacRubyBase0
78
61
  def build_speaker
79
62
  options = {}
80
63
  options[:err_out] = ::StringIO.new if parsed.quiet?
81
- options[:in_in] = FailIfRequestInput.new if parsed.no_input?
64
+ options[:in_in] = ::EacCli::Speaker::InputBlocked.new if parsed.no_input?
82
65
  ::EacCli::Speaker.new(options)
83
66
  end
84
67
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.17.0'
4
+ VERSION = '0.17.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.17.0
4
+ version: 0.17.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: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2023-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-eac_ruby_base1
@@ -16,62 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.21'
19
+ version: '0.29'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.21'
26
+ version: '0.29'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: eac_cli
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.28'
33
+ version: '0.30'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.28'
40
+ version: '0.30'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: eac_fs
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.12'
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 0.12.3
47
+ version: '0.16'
51
48
  type: :runtime
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
52
  - - "~>"
56
53
  - !ruby/object:Gem::Version
57
- version: '0.12'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 0.12.3
54
+ version: '0.16'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: eac_ruby_utils
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '0.103'
61
+ version: '0.111'
68
62
  type: :runtime
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '0.103'
68
+ version: '0.111'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: eac_ruby_gem_support
77
71
  requirement: !ruby/object:Gem::Requirement
@@ -103,6 +97,7 @@ files:
103
97
  - lib/eac_ruby_base0/rspec.rb
104
98
  - lib/eac_ruby_base0/rspec/setup.rb
105
99
  - lib/eac_ruby_base0/runner.rb
100
+ - lib/eac_ruby_base0/runner/prepend.rb
106
101
  - lib/eac_ruby_base0/runner_with.rb
107
102
  - lib/eac_ruby_base0/runner_with/confirmation.rb
108
103
  - lib/eac_ruby_base0/runner_with/input.rb