eac_tools 0.45.0 → 0.45.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -14
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-tools/avm-tools.gemspec +2 -2
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/eac_cli/eac_cli.gemspec +1 -1
- data/sub/eac_cli/lib/eac_cli/config/entry/options.rb +2 -1
- data/sub/eac_cli/lib/eac_cli/config/entry/undefined.rb +6 -1
- data/sub/eac_cli/lib/eac_cli/config/entry.rb +8 -3
- data/sub/eac_cli/lib/eac_cli/runner/class_runner.rb +6 -20
- data/sub/eac_cli/lib/eac_cli/speaker/input_blocked.rb +16 -0
- data/sub/eac_cli/lib/eac_cli/speaker/input_requested.rb +8 -0
- data/sub/eac_cli/lib/eac_cli/version.rb +1 -1
- data/sub/eac_git/eac_git.gemspec +1 -1
- data/sub/eac_git/lib/eac_git/local/remote.rb +5 -0
- data/sub/eac_git/lib/eac_git/version.rb +1 -1
- data/sub/eac_ruby_base0/eac_ruby_base0.gemspec +4 -4
- data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +2 -11
- data/sub/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c529e1c368fe44c68e5bbaafd5258fab08baefca7852a4c5bd2285825352374e
|
4
|
+
data.tar.gz: 464f786052703260b2d4b7364fd3edbeae7403020036108f1faeb6a49df0e426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14972773fe50b2bcb87738798c0608d78557a3c60d1c57bfb36d4590fe024b91a121b360b7f8cd8cbe058d827c90886a62b133127a4d744e2609924fb92ce792
|
7
|
+
data.tar.gz: 98e35772f9f6152c3e7f69b7667bf195e3280fd4ffb7ba1bf25be23968473b3403ecbdbbc37c11c05483cba11e9b43fc8be8099159117b324fdbc83ee5ab114f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.45.
|
4
|
+
eac_tools (0.45.1)
|
5
5
|
avm (~> 0.56)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.12)
|
7
7
|
avm-eac_generic_base0 (~> 0.8)
|
@@ -14,7 +14,7 @@ PATH
|
|
14
14
|
avm-eac_ruby_base1 (~> 0.27, >= 0.27.1)
|
15
15
|
avm-eac_webapp_base0 (~> 0.12, >= 0.12.2)
|
16
16
|
avm-eac_wordpress_base0 (~> 0.2, >= 0.2.1)
|
17
|
-
avm-tools (~> 0.142, >= 0.142.
|
17
|
+
avm-tools (~> 0.142, >= 0.142.6)
|
18
18
|
eac_ruby_utils (~> 0.107, >= 0.107.1)
|
19
19
|
|
20
20
|
PATH
|
@@ -155,7 +155,7 @@ PATH
|
|
155
155
|
PATH
|
156
156
|
remote: sub/avm-tools
|
157
157
|
specs:
|
158
|
-
avm-tools (0.142.
|
158
|
+
avm-tools (0.142.6)
|
159
159
|
aranha-parsers (~> 0.14, >= 0.14.4)
|
160
160
|
avm (~> 0.56)
|
161
161
|
avm-eac_ruby_base1 (~> 0.27, >= 0.27.1)
|
@@ -164,8 +164,8 @@ PATH
|
|
164
164
|
avm-git (~> 0.10)
|
165
165
|
clipboard (~> 1.3, >= 1.3.6)
|
166
166
|
curb (~> 0.9, >= 0.9.11)
|
167
|
-
eac_git (~> 0.
|
168
|
-
eac_ruby_base0 (~> 0.17)
|
167
|
+
eac_git (~> 0.14)
|
168
|
+
eac_ruby_base0 (~> 0.17, >= 0.17.1)
|
169
169
|
eac_templates (~> 0.3, >= 0.3.2)
|
170
170
|
git (~> 1.12)
|
171
171
|
ruby-progressbar (~> 1.11)
|
@@ -189,10 +189,10 @@ PATH
|
|
189
189
|
PATH
|
190
190
|
remote: sub/eac_cli
|
191
191
|
specs:
|
192
|
-
eac_cli (0.
|
192
|
+
eac_cli (0.30.0)
|
193
193
|
colorize (~> 0.8, >= 0.8.1)
|
194
194
|
eac_config (~> 0.12)
|
195
|
-
eac_ruby_utils (~> 0.107)
|
195
|
+
eac_ruby_utils (~> 0.107, >= 0.107.1)
|
196
196
|
|
197
197
|
PATH
|
198
198
|
remote: sub/eac_config
|
@@ -219,18 +219,18 @@ PATH
|
|
219
219
|
PATH
|
220
220
|
remote: sub/eac_git
|
221
221
|
specs:
|
222
|
-
eac_git (0.
|
223
|
-
eac_ruby_utils (~> 0.
|
222
|
+
eac_git (0.14.0)
|
223
|
+
eac_ruby_utils (~> 0.107)
|
224
224
|
parseconfig (~> 1.1, >= 1.1.2)
|
225
225
|
|
226
226
|
PATH
|
227
227
|
remote: sub/eac_ruby_base0
|
228
228
|
specs:
|
229
|
-
eac_ruby_base0 (0.17.
|
230
|
-
avm-eac_ruby_base1 (~> 0.
|
231
|
-
eac_cli (~> 0.
|
232
|
-
eac_fs (~> 0.
|
233
|
-
eac_ruby_utils (~> 0.
|
229
|
+
eac_ruby_base0 (0.17.1)
|
230
|
+
avm-eac_ruby_base1 (~> 0.27, >= 0.27.1)
|
231
|
+
eac_cli (~> 0.30)
|
232
|
+
eac_fs (~> 0.15)
|
233
|
+
eac_ruby_utils (~> 0.107, >= 0.107.1)
|
234
234
|
|
235
235
|
PATH
|
236
236
|
remote: sub/eac_ruby_utils
|
data/lib/eac_tools/version.rb
CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_dependency 'avm-git', '~> 0.10'
|
23
23
|
s.add_dependency 'clipboard', '~> 1.3', '>= 1.3.6'
|
24
24
|
s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
|
25
|
-
s.add_dependency 'eac_git', '~> 0.
|
26
|
-
s.add_dependency 'eac_ruby_base0', '~> 0.17'
|
25
|
+
s.add_dependency 'eac_git', '~> 0.14'
|
26
|
+
s.add_dependency 'eac_ruby_base0', '~> 0.17', '>= 0.17.1'
|
27
27
|
s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.2'
|
28
28
|
s.add_dependency 'git', '~> 1.12'
|
29
29
|
s.add_dependency 'ruby-progressbar', '~> 1.11'
|
data/sub/eac_cli/eac_cli.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.add_dependency 'colorize', '~> 0.8', '>= 0.8.1'
|
16
16
|
s.add_dependency 'eac_config', '~> 0.12'
|
17
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.107'
|
17
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.107', '>= 0.107.1'
|
18
18
|
|
19
19
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
|
20
20
|
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'eac_config/node_entry'
|
3
4
|
require 'eac_ruby_utils/core_ext'
|
4
5
|
|
5
6
|
module EacCli
|
6
7
|
class Config < ::SimpleDelegator
|
7
|
-
class Entry
|
8
|
+
class Entry < ::EacConfig::NodeEntry
|
8
9
|
class Options
|
9
10
|
enable_simple_cache
|
10
11
|
enable_listable
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'eac_cli/speaker/input_requested'
|
4
|
+
require 'eac_config/entry/not_found_error'
|
5
|
+
require 'eac_config/node_entry'
|
3
6
|
require 'eac_ruby_utils/core_ext'
|
4
7
|
|
5
8
|
module EacCli
|
6
9
|
class Config < ::SimpleDelegator
|
7
|
-
class Entry
|
10
|
+
class Entry < ::EacConfig::NodeEntry
|
8
11
|
module Undefined
|
9
12
|
private
|
10
13
|
|
@@ -19,6 +22,8 @@ module EacCli
|
|
19
22
|
|
20
23
|
def undefined_value_no_loop
|
21
24
|
input("Value for entry \"#{path}\"", options.request_input_options)
|
25
|
+
rescue ::EacCli::Speaker::InputRequested
|
26
|
+
raise ::EacConfig::Entry::NotFoundError, self
|
22
27
|
end
|
23
28
|
end
|
24
29
|
end
|
@@ -2,21 +2,26 @@
|
|
2
2
|
|
3
3
|
require 'eac_cli/speaker'
|
4
4
|
require 'eac_config/entry_path'
|
5
|
+
require 'eac_config/node_entry'
|
5
6
|
require 'eac_ruby_utils/core_ext'
|
6
7
|
|
7
8
|
module EacCli
|
8
9
|
class Config < ::SimpleDelegator
|
9
|
-
class Entry
|
10
|
+
class Entry < ::EacConfig::NodeEntry
|
10
11
|
require_sub __FILE__, include_modules: true
|
11
12
|
enable_listable
|
12
13
|
enable_simple_cache
|
13
14
|
enable_speaker
|
14
15
|
|
15
|
-
common_constructor :
|
16
|
-
self.path = ::EacConfig::EntryPath.assert(path)
|
16
|
+
common_constructor :root_node, :path, :options, super_args: -> { [root_node, path] } do
|
17
17
|
self.options = ::EacCli::Config::Entry::Options.new(options)
|
18
18
|
end
|
19
19
|
|
20
|
+
# @return [EacCli::Config]
|
21
|
+
def config
|
22
|
+
root_node
|
23
|
+
end
|
24
|
+
|
20
25
|
def value
|
21
26
|
value!
|
22
27
|
end
|
@@ -18,33 +18,19 @@ module EacCli
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def run
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
run_parser_error(r, e)
|
27
|
-
end
|
28
|
-
r
|
21
|
+
r = create
|
22
|
+
begin
|
23
|
+
r.run_run
|
24
|
+
rescue ::EacCli::Parser::Error => e
|
25
|
+
run_parser_error(r, e)
|
29
26
|
end
|
27
|
+
r
|
30
28
|
end
|
31
29
|
|
32
30
|
def run_parser_error(runner_instance, error)
|
33
31
|
$stderr.write("#{runner_instance.program_name}: #{error}\n")
|
34
32
|
::Kernel.exit(PARSER_ERROR_EXIT_CODE)
|
35
33
|
end
|
36
|
-
|
37
|
-
private
|
38
|
-
|
39
|
-
def on_asserted_speaker
|
40
|
-
if ::EacRubyUtils::Speaker.context.optional_current
|
41
|
-
yield
|
42
|
-
else
|
43
|
-
::EacRubyUtils::Speaker.context.on(::EacCli::Speaker.new) do
|
44
|
-
yield
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
34
|
end
|
49
35
|
end
|
50
36
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_cli/speaker/input_requested'
|
4
|
+
|
5
|
+
module EacCli
|
6
|
+
class Speaker
|
7
|
+
class InputBlocked
|
8
|
+
%w[gets noecho].each do |method|
|
9
|
+
define_method(method) do
|
10
|
+
raise ::EacCli::Speaker::InputRequested,
|
11
|
+
"Method (\"#{method}\") was requested, but input is blocked"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/sub/eac_git/eac_git.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib,vendor}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
15
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.107'
|
16
16
|
s.add_dependency 'parseconfig', '~> 1.1', '>= 1.1.2'
|
17
17
|
|
18
18
|
s.add_development_dependency 'aranha-parsers', '~> 0.8', '>= 0.8.2'
|
@@ -12,10 +12,10 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm-eac_ruby_base1', '~> 0.
|
16
|
-
s.add_dependency 'eac_cli', '~> 0.
|
17
|
-
s.add_dependency 'eac_fs', '~> 0.
|
18
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
15
|
+
s.add_dependency 'avm-eac_ruby_base1', '~> 0.27', '>= 0.27.1'
|
16
|
+
s.add_dependency 'eac_cli', '~> 0.30'
|
17
|
+
s.add_dependency 'eac_fs', '~> 0.15'
|
18
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.107', '>= 0.107.1'
|
19
19
|
|
20
20
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
|
21
21
|
end
|
@@ -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] =
|
72
|
+
options[:in_in] = ::EacCli::Speaker::InputBlocked.new if parsed.no_input?
|
82
73
|
::EacCli::Speaker.new(options)
|
83
74
|
end
|
84
75
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.45.
|
4
|
+
version: 0.45.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-11-
|
11
|
+
date: 2022-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -211,7 +211,7 @@ dependencies:
|
|
211
211
|
version: '0.142'
|
212
212
|
- - ">="
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: 0.142.
|
214
|
+
version: 0.142.6
|
215
215
|
type: :runtime
|
216
216
|
prerelease: false
|
217
217
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -221,7 +221,7 @@ dependencies:
|
|
221
221
|
version: '0.142'
|
222
222
|
- - ">="
|
223
223
|
- !ruby/object:Gem::Version
|
224
|
-
version: 0.142.
|
224
|
+
version: 0.142.6
|
225
225
|
- !ruby/object:Gem::Dependency
|
226
226
|
name: eac_ruby_utils
|
227
227
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1186,6 +1186,8 @@ files:
|
|
1186
1186
|
- sub/eac_cli/lib/eac_cli/runner_with_set.rb
|
1187
1187
|
- sub/eac_cli/lib/eac_cli/speaker.rb
|
1188
1188
|
- sub/eac_cli/lib/eac_cli/speaker/constants.rb
|
1189
|
+
- sub/eac_cli/lib/eac_cli/speaker/input_blocked.rb
|
1190
|
+
- sub/eac_cli/lib/eac_cli/speaker/input_requested.rb
|
1189
1191
|
- sub/eac_cli/lib/eac_cli/speaker/list.rb
|
1190
1192
|
- sub/eac_cli/lib/eac_cli/speaker/options.rb
|
1191
1193
|
- sub/eac_cli/lib/eac_cli/version.rb
|