eac_ruby_base0 0.17.3 → 0.18.0

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: 1ec80e40f31bd5b55a358a87e4c743951e42aed2443dc841e7185d6c85caa92e
4
- data.tar.gz: 94f485a005bf57a967bf9571e49e84b5386ae9ae5a774f90ead91281740bb960
3
+ metadata.gz: 85eba6ca6ab8fde7862b488d42954f505bf2bf15d5aabb15ab390f175515543f
4
+ data.tar.gz: b8c39fc781d1951f2df2b02c9da83b76a97bce45ec2db28306516e3c1bdb1788
5
5
  SHA512:
6
- metadata.gz: 43e4bd9665b5c9d74a8cf60ecaee95268514d531fa0d57d1d2f7c72e4005902c2ff285f486672712d16fc0b47bb5ac408c9f6d5309d1ef030c6b3ec79312a426
7
- data.tar.gz: c518b21f971f0031d069e088b5a8e2fe80f7c6a4329d5f194e5562eccb4e19b202d98a7026e871e5f6bc1bbc0b9b864c0ca9ee5d83d859f64730893b8429250e
6
+ metadata.gz: cea4929378c81c4139c6d6bd5f33cc0e554b93f0870a100eefb41d24295918224034ec22a8e9a63b7cb2a93f45e9c87a977748798ab40f4396380525bfb5cbaa
7
+ data.tar.gz: 1934ed29a67214a270ae9d2e6684e017575eec5b387c9cbc5a820bb2a394e3540f188cd956907f51f0a1dd90dc0101563eca03d667ecb812b04649c50a261c2e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.17.3'
4
+ VERSION = '0.18.0'
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.3
4
+ version: 0.18.0
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: 2023-01-26 00:00:00.000000000 Z
11
+ date: 2023-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-eac_ruby_base1
@@ -16,34 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.29'
19
+ version: '0.30'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.30.2
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.29'
29
+ version: '0.30'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.30.2
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.30'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 0.30.1
39
+ version: '0.31'
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.30'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.30.1
46
+ version: '0.31'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: eac_fs
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -105,9 +105,6 @@ files:
105
105
  - lib/eac_ruby_base0/runner.rb
106
106
  - lib/eac_ruby_base0/runner/prepend.rb
107
107
  - lib/eac_ruby_base0/runner_with.rb
108
- - lib/eac_ruby_base0/runner_with/confirmation.rb
109
- - lib/eac_ruby_base0/runner_with/input.rb
110
- - lib/eac_ruby_base0/runner_with/output.rb
111
108
  - lib/eac_ruby_base0/version.rb
112
109
  homepage:
113
110
  licenses: []
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module EacRubyBase0
7
- module RunnerWith
8
- module Confirmation
9
- DEFAULT_CONFIRM_QUESTION_TEXT = 'Confirm?'
10
-
11
- common_concern do
12
- include ::EacCli::Runner
13
- enable_settings_provider
14
- enable_simple_cache
15
- runner_definition do
16
- bool_opt '--no', 'Deny confirmation without question.'
17
- bool_opt '--yes', 'Accept confirmation without question.'
18
- end
19
- end
20
-
21
- def confirm?(message = nil)
22
- return false if parsed.no?
23
- return true if parsed.yes?
24
-
25
- input(
26
- message || setting_value(:confirm_question_text, default: DEFAULT_CONFIRM_QUESTION_TEXT),
27
- bool: true
28
- )
29
- end
30
-
31
- def run_confirm(message = nil)
32
- yield if confirm?(message)
33
- end
34
-
35
- private
36
-
37
- def cached_confirm_uncached?(message = nil)
38
- confirm?(message)
39
- end
40
- end
41
- end
42
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'eac_ruby_utils/abstract_methods'
6
-
7
- module EacRubyBase0
8
- module RunnerWith
9
- module Input
10
- STDIN_OPTION = '-'
11
- BLANK_OPTION = '+'
12
- DEFAULT_DEFAULT_INPUT_OPTION = BLANK_OPTION
13
-
14
- common_concern do
15
- enable_settings_provider
16
- include ::EacCli::Runner
17
-
18
- runner_definition do
19
- arg_opt '-i', '--input', 'Input from file.'
20
- end
21
- end
22
-
23
- def input_content
24
- case input_option
25
- when STDIN_OPTION then $stdin.read
26
- when BLANK_OPTION then ''
27
- else input_option.to_pathname.read
28
- end
29
- end
30
-
31
- def input_option
32
- parsed.input || setting_value(:default_input_option, default: DEFAULT_DEFAULT_INPUT_OPTION)
33
- end
34
- end
35
- end
36
- end
@@ -1,58 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'eac_ruby_utils/abstract_methods'
6
-
7
- module EacRubyBase0
8
- module RunnerWith
9
- module Output
10
- STDOUT_OPTION = '-'
11
- DEFAULT_FILE_OPTION = '+'
12
- DEFAULT_DEFAULT_OUTPUT_OPTION = STDOUT_OPTION
13
- DEFAULT_DEFAULT_FILE_TO_OUTPUT = 'output'
14
-
15
- common_concern do
16
- enable_abstract_methods
17
- enable_settings_provider
18
- include ::EacCli::Runner
19
-
20
- abstract_methods :output_content
21
-
22
- runner_definition do
23
- arg_opt '-o', '--output', 'Output to file.'
24
- end
25
- end
26
-
27
- def run_output
28
- file = file_to_output
29
- if file
30
- file.to_pathname.write(output_content)
31
- else
32
- $stdout.write(output_content)
33
- end
34
- end
35
-
36
- def output_option
37
- parsed.output || default_output_option_value
38
- end
39
-
40
- def file_to_output
41
- case output_option
42
- when STDOUT_OPTION then nil
43
- when DEFAULT_FILE_OPTION then default_file_to_output_value
44
- else output_option
45
- end
46
- end
47
-
48
- def default_output_option_value
49
- setting_value(:default_output_option,
50
- default: DEFAULT_DEFAULT_OUTPUT_OPTION)
51
- end
52
-
53
- def default_file_to_output_value
54
- setting_value(:default_file_to_output, default: DEFAULT_DEFAULT_FILE_TO_OUTPUT)
55
- end
56
- end
57
- end
58
- end