eac_ruby_base0 0.17.2 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85eba6ca6ab8fde7862b488d42954f505bf2bf15d5aabb15ab390f175515543f
|
4
|
+
data.tar.gz: b8c39fc781d1951f2df2b02c9da83b76a97bce45ec2db28306516e3c1bdb1788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea4929378c81c4139c6d6bd5f33cc0e554b93f0870a100eefb41d24295918224034ec22a8e9a63b7cb2a93f45e9c87a977748798ab40f4396380525bfb5cbaa
|
7
|
+
data.tar.gz: 1934ed29a67214a270ae9d2e6684e017575eec5b387c9cbc5a820bb2a394e3540f188cd956907f51f0a1dd90dc0101563eca03d667ecb812b04649c50a261c2e
|
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.
|
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-
|
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,28 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
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
|
+
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.
|
39
|
+
version: '0.31'
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
46
|
+
version: '0.31'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: eac_fs
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +64,14 @@ dependencies:
|
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
67
|
+
version: '0.112'
|
62
68
|
type: :runtime
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
74
|
+
version: '0.112'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: eac_ruby_gem_support
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,9 +105,6 @@ files:
|
|
99
105
|
- lib/eac_ruby_base0/runner.rb
|
100
106
|
- lib/eac_ruby_base0/runner/prepend.rb
|
101
107
|
- lib/eac_ruby_base0/runner_with.rb
|
102
|
-
- lib/eac_ruby_base0/runner_with/confirmation.rb
|
103
|
-
- lib/eac_ruby_base0/runner_with/input.rb
|
104
|
-
- lib/eac_ruby_base0/runner_with/output.rb
|
105
108
|
- lib/eac_ruby_base0/version.rb
|
106
109
|
homepage:
|
107
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
|