eac_ruby_base0 0.16.6 → 0.17.1

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: 44f3d45dcae417c67a3fd4baf2595d981b4d4d9ed3d160e7c7683a1e0260afdc
4
- data.tar.gz: 6536289742790538602ceb430378d059440614acd82e559c20f533d656cca8b5
3
+ metadata.gz: 13e924a6aa38a4c3fffee67e2cce3eefd1129c65691e9aff3576208e626476a5
4
+ data.tar.gz: 65b35e04a229b62cf6670c477842084cb65335a5869492c261c44c3b83dd8048
5
5
  SHA512:
6
- metadata.gz: d0c5e6bdf8b0242c2db16b7b7503b9ced3d7be07476d19ca0df858c66d857084ec92170e9ae96da7b3926d5d2e669a7adda55ff27dde07e039498be6a5516202
7
- data.tar.gz: 94ce39707b756c337a8de7fbaa13ae875dd72c5432e1871bb3c4c8f2efb996ecd3807c76a2d131688ba5c578cbc1fbadb82bd1a5df2e70ec2392e3f7edfbd96f
6
+ metadata.gz: 3b3e6a4c25f225d53dee88ae21261fb76e2e8baf24cfe9f13b55e22f7dbb5a018846fed7c2c95021b649a58b3e2424379cea878ed23b46ce1fea3c4ab8c174fd
7
+ data.tar.gz: 4f0a912d7f196a102722a6831411a7c663938de1164da6b34a945a925cd62e652422614c5e2fc112e3b7e07dbe1f28e138c0ec8e9f2e3693023cc73d03ec11fa
@@ -2,6 +2,7 @@
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'
@@ -51,16 +52,6 @@ module EacRubyBase0
51
52
  out("#{application_version}\n")
52
53
  end
53
54
 
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
55
  private
65
56
 
66
57
  # @return [Array<EacRubyUtils::Struct>]
@@ -78,7 +69,7 @@ module EacRubyBase0
78
69
  def build_speaker
79
70
  options = {}
80
71
  options[:err_out] = ::StringIO.new if parsed.quiet?
81
- options[:in_in] = FailIfRequestInput.new if parsed.no_input?
72
+ options[:in_in] = ::EacCli::Speaker::InputBlocked.new if parsed.no_input?
82
73
  ::EacCli::Speaker.new(options)
83
74
  end
84
75
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.16.6'
4
+ VERSION = '0.17.1'
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.16.6
4
+ version: 0.17.1
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-07-21 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-eac_ruby_base1
@@ -16,68 +16,68 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.8'
19
+ version: '0.27'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.27.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '0.8'
29
+ version: '0.27'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.27.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: eac_cli
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '0.27'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 0.27.5
39
+ version: '0.30'
37
40
  type: :runtime
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
44
  - - "~>"
42
45
  - !ruby/object:Gem::Version
43
- version: '0.27'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.27.5
46
+ version: '0.30'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: eac_fs
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.10'
53
+ version: '0.15'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.10'
60
+ version: '0.15'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: eac_ruby_utils
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.95'
67
+ version: '0.107'
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: 0.95.1
70
+ version: 0.107.1
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '0.95'
77
+ version: '0.107'
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: 0.95.1
80
+ version: 0.107.1
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: eac_ruby_gem_support
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,11 @@ files:
106
106
  - lib/eac_ruby_base0/patches.rb
107
107
  - lib/eac_ruby_base0/patches/class.rb
108
108
  - lib/eac_ruby_base0/patches/class/jobs_runner.rb
109
- - lib/eac_ruby_base0/patches/object.rb
110
- - lib/eac_ruby_base0/patches/object/runner_with.rb
111
109
  - lib/eac_ruby_base0/rspec.rb
112
110
  - lib/eac_ruby_base0/rspec/setup.rb
113
111
  - lib/eac_ruby_base0/runner.rb
114
112
  - lib/eac_ruby_base0/runner_with.rb
115
113
  - lib/eac_ruby_base0/runner_with/confirmation.rb
116
- - lib/eac_ruby_base0/runner_with/filesystem_traverser.rb
117
114
  - lib/eac_ruby_base0/runner_with/input.rb
118
115
  - lib/eac_ruby_base0/runner_with/output.rb
119
116
  - lib/eac_ruby_base0/version.rb
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/core_ext'
4
- require 'eac_ruby_base0/runner_with'
5
- ::EacCli::RunnerWithSet.default.add_namespace(::EacRubyBase0::RunnerWith)
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Dir["#{File.dirname(__FILE__)}/#{::File.basename(__FILE__, '.*')}/*.rb"].sort.each do |path|
4
- require path
5
- end
@@ -1,52 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'eac_fs/traversable'
6
- require 'eac_ruby_utils/settings_provider'
7
-
8
- module EacRubyBase0
9
- module RunnerWith
10
- module FilesystemTraverser
11
- DEFAULT_DEFAULT_TRAVERSER_RECURSIVE = false
12
-
13
- common_concern do
14
- include ::EacCli::Runner
15
- include ::EacFs::Traversable
16
- enable_settings_provider
17
- include TopMethods
18
- runner_definition do
19
- bool_opt '-R', '--recursive', 'Recursive.'
20
- bool_opt '--no-recursive', 'No recursive.'
21
- pos_arg :paths, optional: true, repeat: true
22
- end
23
- end
24
-
25
- module TopMethods
26
- def on_none_path_informed
27
- infom 'Warning: none path informed'
28
- end
29
-
30
- def paths
31
- parsed.paths.map(&:to_pathname)
32
- end
33
-
34
- def run_filesystem_traverser
35
- if parsed.paths.any?
36
- parsed.paths.each { |path| traverser_check_path(path) }
37
- else
38
- on_none_path_informed
39
- end
40
- end
41
-
42
- def traverser_recursive
43
- return false if parsed.no_recursive?
44
- return true if parsed.recursive?
45
-
46
- setting_value(:default_traverser_recursive, required: false)
47
- .if_not_nil(DEFAULT_DEFAULT_TRAVERSER_RECURSIVE)
48
- end
49
- end
50
- end
51
- end
52
- end