avm-tools 0.99.1 → 0.102.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/app_src.rb +8 -7
- data/lib/avm/docker/image.rb +7 -23
- data/lib/avm/docker/registry.rb +2 -11
- data/lib/avm/docker/runner.rb +32 -6
- data/lib/avm/eac_rails_base1/runner/bundle.rb +1 -2
- data/lib/avm/eac_redmine_base0/docker_image.rb +52 -0
- data/lib/avm/eac_redmine_base0/instance.rb +2 -2
- data/lib/avm/git/auto_commit/rules/manual.rb +1 -1
- data/lib/avm/git/issue/complete.rb +4 -8
- data/lib/avm/git/issue/complete/commits.rb +42 -0
- data/lib/avm/git/issue/complete/git_subrepos.rb +23 -0
- data/lib/avm/git/issue/complete/local_branch.rb +54 -0
- data/lib/avm/git/issue/complete/local_tag.rb +39 -0
- data/lib/avm/git/issue/complete/push.rb +54 -0
- data/lib/avm/git/issue/complete/remote.rb +33 -0
- data/lib/avm/git/issue/complete/test.rb +45 -0
- data/lib/avm/git/issue/complete/tracker.rb +28 -0
- data/lib/avm/git/issue/complete/validations.rb +53 -0
- data/lib/avm/git/issue/complete/working_tree.rb +19 -0
- data/lib/avm/git/revision_test.rb +9 -6
- data/lib/avm/instances/base/dockerizable.rb +1 -0
- data/lib/avm/instances/base/entry_keys.rb +6 -1
- data/lib/avm/instances/docker_image.rb +15 -0
- data/lib/avm/instances/entries.rb +0 -1
- data/lib/avm/instances/entry.rb +3 -2
- data/lib/avm/instances/entry_keys.rb +3 -0
- data/lib/avm/launcher/context.rb +1 -1
- data/lib/avm/launcher/git/publish_base.rb +3 -1
- data/lib/avm/launcher/git/warp_base.rb +11 -0
- data/lib/avm/launcher/instances/base.rb +2 -1
- data/lib/avm/launcher/instances/error.rb +1 -3
- data/lib/avm/launcher/ruby/gem/build.rb +1 -1
- data/lib/avm/projects/stereotype/job_comparator.rb +32 -0
- data/lib/avm/projects/stereotypes/git/update.rb +1 -2
- data/lib/avm/projects/stereotypes/ruby_gem/publish.rb +1 -1
- data/lib/avm/projects/stereotypes/ruby_gem/update.rb +4 -0
- data/lib/avm/self.rb +9 -0
- data/lib/avm/tools/runner.rb +4 -0
- data/lib/avm/tools/runner/app_src/version_bump.rb +1 -1
- data/lib/avm/tools/runner/config.rb +17 -0
- data/lib/avm/tools/runner/config/load_path.rb +48 -0
- data/lib/avm/tools/runner/eac_redmine_base0/dev_docker.rb +17 -0
- data/lib/avm/tools/runner/eac_redmine_base0/docker.rb +3 -0
- data/lib/avm/tools/runner/git/deploy.rb +2 -1
- data/lib/avm/tools/runner/git/issue.rb +4 -75
- data/lib/avm/tools/runner/git/issue/complete.rb +79 -0
- data/lib/avm/tools/runner/git/issue/deliver.rb +35 -0
- data/lib/avm/tools/runner/git/organize.rb +1 -1
- data/lib/avm/tools/version.rb +1 -1
- data/template/avm/eac_redmine_base0/docker_image/Dockerfile.template +47 -0
- data/template/avm/eac_redmine_base0/docker_image/apache_http_virtualhost.conf.template +10 -0
- data/template/avm/eac_redmine_base0/docker_image/apache_https_virtualhost.conf.template +16 -0
- data/template/avm/eac_redmine_base0/docker_image/install_settings.sh.template +29 -0
- data/template/avm/eac_redmine_base0/docker_image/start.sh.template +25 -0
- data/template/avm/eac_ubuntu_base0/docker_image/Dockerfile +1 -1
- data/vendor/avm-apps/avm-apps.gemspec +1 -1
- data/vendor/avm-apps/lib/avm/apps/config.rb +15 -0
- data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +1 -1
- data/vendor/avm-apps/lib/avm/apps/version.rb +1 -1
- data/vendor/eac_cli/eac_cli.gemspec +1 -1
- data/vendor/eac_cli/lib/eac_cli/config.rb +19 -0
- data/vendor/eac_cli/lib/eac_cli/config/entry.rb +48 -0
- data/vendor/eac_cli/lib/eac_cli/config/entry/options.rb +57 -0
- data/vendor/eac_cli/lib/eac_cli/config/entry/undefined.rb +26 -0
- data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +6 -1
- data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder/alternative.rb +3 -1
- data/vendor/eac_cli/lib/eac_cli/docopt_runner.rb +4 -8
- data/vendor/eac_cli/lib/eac_cli/docopt_runner/{_class_methods.rb → class_methods.rb} +5 -3
- data/vendor/eac_cli/lib/eac_cli/docopt_runner/context.rb +18 -0
- data/vendor/eac_cli/lib/eac_cli/old_configs.rb +0 -1
- data/vendor/eac_cli/lib/eac_cli/old_configs/entry_reader.rb +2 -2
- data/vendor/eac_cli/lib/eac_cli/old_configs_bridge.rb +37 -0
- data/vendor/eac_cli/lib/eac_cli/runner/after_class_methods.rb +20 -3
- data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +6 -2
- data/vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb +5 -1
- data/vendor/eac_cli/lib/eac_cli/speaker.rb +15 -19
- data/vendor/eac_cli/lib/eac_cli/speaker/_constants.rb +1 -1
- data/vendor/eac_cli/lib/eac_cli/speaker/list.rb +1 -1
- data/vendor/eac_cli/lib/eac_cli/speaker/options.rb +38 -0
- data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
- data/vendor/eac_cli/spec/lib/eac_cli/speaker_spec.rb +5 -9
- data/vendor/eac_config/lib/eac_config/entry.rb +7 -1
- data/vendor/eac_config/lib/eac_config/envvars_node.rb +25 -0
- data/vendor/eac_config/lib/eac_config/envvars_node/entry.rb +54 -0
- data/vendor/eac_config/lib/eac_config/load_path.rb +5 -13
- data/vendor/eac_config/lib/eac_config/node.rb +9 -2
- data/vendor/eac_config/lib/eac_config/node_entry.rb +2 -23
- data/vendor/eac_config/lib/eac_config/node_uri.rb +38 -0
- data/vendor/eac_config/lib/eac_config/old_configs.rb +1 -0
- data/vendor/eac_config/lib/eac_config/version.rb +1 -1
- data/vendor/eac_config/lib/eac_config/yaml_file_node.rb +9 -2
- data/vendor/eac_config/lib/eac_config/yaml_file_node/entry.rb +37 -0
- data/vendor/eac_config/spec/lib/eac_config/envvars_node/entry_spec.rb +14 -0
- data/vendor/eac_config/spec/lib/eac_config/envvars_node_spec.rb +40 -0
- data/vendor/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1.yaml +3 -1
- data/vendor/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2.yaml +2 -1
- data/vendor/eac_git/lib/eac_git/executables.rb +4 -0
- data/vendor/eac_git/lib/eac_git/local.rb +5 -1
- data/vendor/eac_git/lib/eac_git/local/commit/archive.rb +19 -0
- data/vendor/eac_git/lib/eac_git/local/subrepo.rb +2 -1
- data/vendor/eac_git/lib/eac_git/version.rb +1 -1
- data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +2 -2
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +8 -11
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application_xdg.rb +32 -0
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb +2 -2
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +13 -6
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb +8 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +1 -1
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb +2 -0
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/context.rb +31 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb +12 -7
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/context.rb +11 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/speaker.rb +9 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +10 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker.rb +16 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +57 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/sender.rb +32 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/vendor/{eac_cli/spec/lib → eac_ruby_utils/spec/lib/eac_ruby_utils/patches}/module/speaker_spec.rb +2 -2
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb +18 -0
- metadata +49 -19
- data/lib/avm/configs.rb +0 -22
- data/lib/avm/git/issue/complete/_commits.rb +0 -40
- data/lib/avm/git/issue/complete/_git_subrepos.rb +0 -21
- data/lib/avm/git/issue/complete/_local_branch.rb +0 -52
- data/lib/avm/git/issue/complete/_local_tag.rb +0 -37
- data/lib/avm/git/issue/complete/_push.rb +0 -52
- data/lib/avm/git/issue/complete/_remote.rb +0 -31
- data/lib/avm/git/issue/complete/_test.rb +0 -43
- data/lib/avm/git/issue/complete/_tracker.rb +0 -26
- data/lib/avm/git/issue/complete/_validations.rb +0 -51
- data/lib/avm/git/issue/complete/_working_tree.rb +0 -17
- data/vendor/eac_cli/lib/eac_cli/patches/module.rb +0 -4
- data/vendor/eac_cli/lib/eac_cli/patches/module/speaker.rb +0 -10
- data/vendor/eac_cli/lib/eac_cli/speaker/_class_methods.rb +0 -37
- data/vendor/eac_cli/lib/eac_cli/speaker/node.rb +0 -24
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
4
|
require 'eac_ruby_utils/settings_provider'
|
5
5
|
|
6
6
|
module EacRubyBase0
|
7
7
|
module JobsRunner
|
8
8
|
common_concern do
|
9
|
-
|
9
|
+
enable_speaker
|
10
10
|
include ::EacRubyUtils::SettingsProvider
|
11
11
|
end
|
12
12
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'eac_cli/
|
4
|
-
require 'eac_cli/
|
5
|
-
require 'eac_ruby_utils/
|
3
|
+
require 'eac_cli/core_ext'
|
4
|
+
require 'eac_cli/speaker'
|
5
|
+
require 'eac_ruby_utils/speaker'
|
6
6
|
|
7
7
|
module EacRubyBase0
|
8
8
|
module Runner
|
@@ -22,9 +22,7 @@ module EacRubyBase0
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def run
|
25
|
-
|
26
|
-
node.stderr = ::StringIO.new if parsed.quiet?
|
27
|
-
node.stdin = FailIfRequestInput.new if parsed.no_input?
|
25
|
+
::EacRubyUtils::Speaker.context.on(build_speaker) do
|
28
26
|
if parsed.version?
|
29
27
|
show_version
|
30
28
|
else
|
@@ -50,5 +48,14 @@ module EacRubyBase0
|
|
50
48
|
end
|
51
49
|
end
|
52
50
|
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def build_speaker
|
55
|
+
options = {}
|
56
|
+
options[:err_out] = ::StringIO.new if parsed.quiet?
|
57
|
+
options[:in_in] = FailIfRequestInput.new if parsed.no_input?
|
58
|
+
::EacCli::Speaker.new(options)
|
59
|
+
end
|
53
60
|
end
|
54
61
|
end
|
@@ -12,6 +12,7 @@ module EacRubyBase0
|
|
12
12
|
common_concern do
|
13
13
|
include ::EacCli::Runner
|
14
14
|
enable_settings_provider
|
15
|
+
enable_simple_cache
|
15
16
|
runner_definition do
|
16
17
|
bool_opt '--no', 'Deny confirmation without question.'
|
17
18
|
bool_opt '--yes', 'Accept confirmation without question.'
|
@@ -22,7 +23,7 @@ module EacRubyBase0
|
|
22
23
|
return false if parsed.no?
|
23
24
|
return true if parsed.yes?
|
24
25
|
|
25
|
-
|
26
|
+
input(
|
26
27
|
message || setting_value(:confirm_question_text, default: DEFAULT_CONFIRM_QUESTION_TEXT),
|
27
28
|
bool: true
|
28
29
|
)
|
@@ -31,6 +32,12 @@ module EacRubyBase0
|
|
31
32
|
def run_confirm(message = nil)
|
32
33
|
yield if confirm?(message)
|
33
34
|
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def cached_confirm_uncached?(message = nil)
|
39
|
+
confirm?(message)
|
40
|
+
end
|
34
41
|
end
|
35
42
|
end
|
36
43
|
end
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.test_files = Dir['{spec}/**/*', '.rspec']
|
24
24
|
|
25
25
|
s.add_dependency 'bundler', '~> 2.2', '>= 2.2.17'
|
26
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
26
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.67'
|
27
27
|
|
28
28
|
# Tests
|
29
29
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EacRubyUtils
|
4
|
+
class Context
|
5
|
+
def current
|
6
|
+
optional_current || raise('No elements in context')
|
7
|
+
end
|
8
|
+
|
9
|
+
def optional_current
|
10
|
+
stack.last
|
11
|
+
end
|
12
|
+
|
13
|
+
delegate :pop, to: :stack
|
14
|
+
delegate :push, to: :stack
|
15
|
+
|
16
|
+
def on(obj)
|
17
|
+
push(obj)
|
18
|
+
begin
|
19
|
+
yield
|
20
|
+
ensure
|
21
|
+
pop
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def stack
|
28
|
+
@stack ||= []
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -1,16 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'eac_ruby_utils/context'
|
4
|
+
|
3
5
|
module EacRubyUtils
|
4
|
-
# Provides the method context which search and call a method in self and ancestor objects.
|
5
6
|
module Contextualizable
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
common_concern
|
8
|
+
|
9
|
+
module ClassMethods
|
10
|
+
def context
|
11
|
+
@context ||= ::EacRubyUtils::Context.new
|
12
|
+
end
|
13
|
+
end
|
10
14
|
|
11
|
-
|
15
|
+
module InstanceMethods
|
16
|
+
def context
|
17
|
+
self.class.context
|
12
18
|
end
|
13
|
-
raise "Context method \"#{method}\" not found for #{self.class}"
|
14
19
|
end
|
15
20
|
end
|
16
21
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/patch'
|
4
|
+
require 'eac_ruby_utils/contextualizable'
|
5
|
+
|
6
|
+
class Module
|
7
|
+
# Patches module with [EacRubyUtils::Contextualizable].
|
8
|
+
def enable_context
|
9
|
+
::EacRubyUtils.patch(self, ::EacRubyUtils::Contextualizable)
|
10
|
+
end
|
11
|
+
end
|
@@ -3,11 +3,19 @@
|
|
3
3
|
module EacRubyUtils
|
4
4
|
module SimpleCache
|
5
5
|
UNCACHED_METHOD_NAME_SUFFIX = '_uncached'
|
6
|
-
UNCACHED_METHOD_PATTERN =
|
6
|
+
UNCACHED_METHOD_PATTERN = /
|
7
|
+
\A(\s+)_#{::Regexp.quote(UNCACHED_METHOD_NAME_SUFFIX)}([\!\?]?)\z
|
8
|
+
/x.freeze
|
7
9
|
|
8
10
|
class << self
|
9
11
|
def uncached_method_name(method_name)
|
10
|
-
|
12
|
+
method_name = method_name.to_s
|
13
|
+
end_mark = nil
|
14
|
+
if %w[! ?].any? { |mark| method_name.end_with?(mark) }
|
15
|
+
end_mark = method_name[-1]
|
16
|
+
method_name = method_name[0..-2]
|
17
|
+
end
|
18
|
+
"#{method_name}#{UNCACHED_METHOD_NAME_SUFFIX}#{end_mark}"
|
11
19
|
end
|
12
20
|
end
|
13
21
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/contextualizable'
|
4
|
+
|
5
|
+
module EacRubyUtils
|
6
|
+
module Speaker
|
7
|
+
include ::EacRubyUtils::Contextualizable
|
8
|
+
|
9
|
+
class << self
|
10
|
+
# @return [EacRubyUtils::Speaker::Receiver]
|
11
|
+
def current_receiver
|
12
|
+
context.current
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/abstract_methods'
|
4
|
+
|
5
|
+
module EacRubyUtils
|
6
|
+
module Speaker
|
7
|
+
module Receiver
|
8
|
+
extend ::EacRubyUtils::AbstractMethods
|
9
|
+
|
10
|
+
def error(_string)
|
11
|
+
raise_abstract_method(__FILE__)
|
12
|
+
end
|
13
|
+
|
14
|
+
def fatal_error(string)
|
15
|
+
error(string)
|
16
|
+
::Kernel.exit 1 # rubocop:disable Rails/Exit
|
17
|
+
end
|
18
|
+
|
19
|
+
# @see EacRubyUtils::Speaker::Sender.input
|
20
|
+
def input(_question, _options = {})
|
21
|
+
raise_abstract_method(__FILE__)
|
22
|
+
end
|
23
|
+
|
24
|
+
def info(_string)
|
25
|
+
raise_abstract_method(__FILE__)
|
26
|
+
end
|
27
|
+
|
28
|
+
def infom(_string)
|
29
|
+
raise_abstract_method(__FILE__)
|
30
|
+
end
|
31
|
+
|
32
|
+
def infov(*_args)
|
33
|
+
raise_abstract_method(__FILE__)
|
34
|
+
end
|
35
|
+
|
36
|
+
def out(_string = '')
|
37
|
+
raise_abstract_method(__FILE__)
|
38
|
+
end
|
39
|
+
|
40
|
+
def puts(_string = '')
|
41
|
+
raise_abstract_method(__FILE__)
|
42
|
+
end
|
43
|
+
|
44
|
+
def success(_string)
|
45
|
+
raise_abstract_method(__FILE__)
|
46
|
+
end
|
47
|
+
|
48
|
+
def title(_string)
|
49
|
+
raise_abstract_method(__FILE__)
|
50
|
+
end
|
51
|
+
|
52
|
+
def warn(_string)
|
53
|
+
raise_abstract_method(__FILE__)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EacRubyUtils
|
4
|
+
module Speaker
|
5
|
+
module Sender
|
6
|
+
delegate :error, :fatal_error, :info, :infom, :title, :success, :warn, to: :speaker_receiver
|
7
|
+
|
8
|
+
def infov(*args)
|
9
|
+
speaker_receiver.infov(*args)
|
10
|
+
end
|
11
|
+
|
12
|
+
delegate :out, to: :speaker_receiver
|
13
|
+
|
14
|
+
delegate :puts, to: :speaker_receiver
|
15
|
+
|
16
|
+
# Shortcut to [EacRubyUtils::Speaker.current_receiver].
|
17
|
+
#
|
18
|
+
# @return [EacRubyUtils::Speaker::Receiver]
|
19
|
+
def speaker_receiver
|
20
|
+
::EacRubyUtils::Speaker.current_receiver
|
21
|
+
end
|
22
|
+
|
23
|
+
# Options:
|
24
|
+
# +bool+ ([Boolean], default: +false+): requires a answer "yes" or "no".
|
25
|
+
# +list+ ([Hash] or [Array], default: +nil+): requires a answer from a list.
|
26
|
+
# +noecho+ ([Boolean], default: +false+): does not output answer.
|
27
|
+
def input(question, options = {})
|
28
|
+
speaker_receiver.input(question, options)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'eac_ruby_utils/patches/module/speaker'
|
4
4
|
|
5
5
|
RSpec.describe ::Module do
|
6
6
|
class StubClass # rubocop:disable RSpec/LeakyConstantDeclaration
|
@@ -8,6 +8,6 @@ RSpec.describe ::Module do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
describe '#enable_speaker' do
|
11
|
-
it { expect(StubClass.included_modules).to include(::
|
11
|
+
it { expect(StubClass.included_modules).to include(::EacRubyUtils::Speaker::Sender) }
|
12
12
|
end
|
13
13
|
end
|
@@ -10,6 +10,14 @@ class CacheableObject
|
|
10
10
|
@counter += 1
|
11
11
|
end
|
12
12
|
|
13
|
+
def method_with_question_uncached?
|
14
|
+
'question'
|
15
|
+
end
|
16
|
+
|
17
|
+
def method_with_exclamation_uncached!
|
18
|
+
'exclamation'
|
19
|
+
end
|
20
|
+
|
13
21
|
def method_with_args_uncached(arg1)
|
14
22
|
@counter2 ||= 0
|
15
23
|
@counter2 += 1
|
@@ -74,6 +82,16 @@ RSpec.describe ::EacRubyUtils::SimpleCache do
|
|
74
82
|
end
|
75
83
|
end
|
76
84
|
|
85
|
+
describe 'method with marks' do
|
86
|
+
it 'found uncached method with exclamation mark' do
|
87
|
+
expect(instance.method_with_exclamation!).to eq('exclamation')
|
88
|
+
end
|
89
|
+
|
90
|
+
it 'found uncached method with question mark' do
|
91
|
+
expect(instance.method_with_question?).to eq('question')
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
77
95
|
describe '#respond_to?' do
|
78
96
|
it 'responds to cached method without args' do
|
79
97
|
expect(instance.respond_to?(:my_method)).to be(true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.102.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -324,7 +324,6 @@ files:
|
|
324
324
|
- lib/avm.rb
|
325
325
|
- lib/avm/app_src.rb
|
326
326
|
- lib/avm/cached_download.rb
|
327
|
-
- lib/avm/configs.rb
|
328
327
|
- lib/avm/core_ext.rb
|
329
328
|
- lib/avm/data.rb
|
330
329
|
- lib/avm/data/instance.rb
|
@@ -365,6 +364,7 @@ files:
|
|
365
364
|
- lib/avm/eac_redmine_base0/core_update.rb
|
366
365
|
- lib/avm/eac_redmine_base0/data_unit.rb
|
367
366
|
- lib/avm/eac_redmine_base0/deploy.rb
|
367
|
+
- lib/avm/eac_redmine_base0/docker_image.rb
|
368
368
|
- lib/avm/eac_redmine_base0/instance.rb
|
369
369
|
- lib/avm/eac_ubuntu_base0.rb
|
370
370
|
- lib/avm/eac_ubuntu_base0/apache.rb
|
@@ -450,17 +450,17 @@ files:
|
|
450
450
|
- lib/avm/git/file_auto_fixup.rb
|
451
451
|
- lib/avm/git/issue.rb
|
452
452
|
- lib/avm/git/issue/complete.rb
|
453
|
-
- lib/avm/git/issue/complete/
|
454
|
-
- lib/avm/git/issue/complete/
|
455
|
-
- lib/avm/git/issue/complete/
|
456
|
-
- lib/avm/git/issue/complete/
|
457
|
-
- lib/avm/git/issue/complete/
|
458
|
-
- lib/avm/git/issue/complete/
|
459
|
-
- lib/avm/git/issue/complete/
|
460
|
-
- lib/avm/git/issue/complete/
|
461
|
-
- lib/avm/git/issue/complete/_validations.rb
|
462
|
-
- lib/avm/git/issue/complete/_working_tree.rb
|
453
|
+
- lib/avm/git/issue/complete/commits.rb
|
454
|
+
- lib/avm/git/issue/complete/git_subrepos.rb
|
455
|
+
- lib/avm/git/issue/complete/local_branch.rb
|
456
|
+
- lib/avm/git/issue/complete/local_tag.rb
|
457
|
+
- lib/avm/git/issue/complete/push.rb
|
458
|
+
- lib/avm/git/issue/complete/remote.rb
|
459
|
+
- lib/avm/git/issue/complete/test.rb
|
460
|
+
- lib/avm/git/issue/complete/tracker.rb
|
463
461
|
- lib/avm/git/issue/complete/validation.rb
|
462
|
+
- lib/avm/git/issue/complete/validations.rb
|
463
|
+
- lib/avm/git/issue/complete/working_tree.rb
|
464
464
|
- lib/avm/git/issue/deliver.rb
|
465
465
|
- lib/avm/git/organize.rb
|
466
466
|
- lib/avm/git/organize/reference_update.rb
|
@@ -487,6 +487,7 @@ files:
|
|
487
487
|
- lib/avm/instances/base/auto_values/web.rb
|
488
488
|
- lib/avm/instances/base/dockerizable.rb
|
489
489
|
- lib/avm/instances/base/entry_keys.rb
|
490
|
+
- lib/avm/instances/docker_image.rb
|
490
491
|
- lib/avm/instances/entries.rb
|
491
492
|
- lib/avm/instances/entry.rb
|
492
493
|
- lib/avm/instances/entry_keys.rb
|
@@ -548,6 +549,7 @@ files:
|
|
548
549
|
- lib/avm/postgresql/instance_with.rb
|
549
550
|
- lib/avm/projects.rb
|
550
551
|
- lib/avm/projects/stereotype.rb
|
552
|
+
- lib/avm/projects/stereotype/job_comparator.rb
|
551
553
|
- lib/avm/projects/stereotypes.rb
|
552
554
|
- lib/avm/projects/stereotypes/git.rb
|
553
555
|
- lib/avm/projects/stereotypes/git/local_project_mixin.rb
|
@@ -612,10 +614,13 @@ files:
|
|
612
614
|
- lib/avm/tools/runner/app_src/test.rb
|
613
615
|
- lib/avm/tools/runner/app_src/update.rb
|
614
616
|
- lib/avm/tools/runner/app_src/version_bump.rb
|
617
|
+
- lib/avm/tools/runner/config.rb
|
618
|
+
- lib/avm/tools/runner/config/load_path.rb
|
615
619
|
- lib/avm/tools/runner/eac_asciidoctor_base0.rb
|
616
620
|
- lib/avm/tools/runner/eac_rails_base0.rb
|
617
621
|
- lib/avm/tools/runner/eac_redmine_base0.rb
|
618
622
|
- lib/avm/tools/runner/eac_redmine_base0/core_update.rb
|
623
|
+
- lib/avm/tools/runner/eac_redmine_base0/dev_docker.rb
|
619
624
|
- lib/avm/tools/runner/eac_redmine_base0/docker.rb
|
620
625
|
- lib/avm/tools/runner/eac_redmine_base0/project_rename.rb
|
621
626
|
- lib/avm/tools/runner/eac_webapp_base0.rb
|
@@ -630,6 +635,8 @@ files:
|
|
630
635
|
- lib/avm/tools/runner/git/deploy.rb
|
631
636
|
- lib/avm/tools/runner/git/dirty_files.rb
|
632
637
|
- lib/avm/tools/runner/git/issue.rb
|
638
|
+
- lib/avm/tools/runner/git/issue/complete.rb
|
639
|
+
- lib/avm/tools/runner/git/issue/deliver.rb
|
633
640
|
- lib/avm/tools/runner/git/organize.rb
|
634
641
|
- lib/avm/tools/runner/git/revisions_test.rb
|
635
642
|
- lib/avm/tools/runner/git/subrepo.rb
|
@@ -655,6 +662,11 @@ files:
|
|
655
662
|
- template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
|
656
663
|
- template/avm/eac_redmine_base0/deploy/config/install.sh.template
|
657
664
|
- template/avm/eac_redmine_base0/deploy/config/secrets.yml
|
665
|
+
- template/avm/eac_redmine_base0/docker_image/Dockerfile.template
|
666
|
+
- template/avm/eac_redmine_base0/docker_image/apache_http_virtualhost.conf.template
|
667
|
+
- template/avm/eac_redmine_base0/docker_image/apache_https_virtualhost.conf.template
|
668
|
+
- template/avm/eac_redmine_base0/docker_image/install_settings.sh.template
|
669
|
+
- template/avm/eac_redmine_base0/docker_image/start.sh.template
|
658
670
|
- template/avm/eac_ubuntu_base0/docker_image/Dockerfile
|
659
671
|
- template/avm/eac_webapp_base0/apache_host/no_ssl.conf
|
660
672
|
- template/avm/eac_webapp_base0/apache_path/default.conf
|
@@ -679,6 +691,7 @@ files:
|
|
679
691
|
- vendor/avm-apps/Gemfile
|
680
692
|
- vendor/avm-apps/avm-apps.gemspec
|
681
693
|
- vendor/avm-apps/lib/avm/apps.rb
|
694
|
+
- vendor/avm-apps/lib/avm/apps/config.rb
|
682
695
|
- vendor/avm-apps/lib/avm/apps/jobs.rb
|
683
696
|
- vendor/avm-apps/lib/avm/apps/jobs/base.rb
|
684
697
|
- vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb
|
@@ -704,6 +717,10 @@ files:
|
|
704
717
|
- vendor/eac_cli/Gemfile
|
705
718
|
- vendor/eac_cli/eac_cli.gemspec
|
706
719
|
- vendor/eac_cli/lib/eac_cli.rb
|
720
|
+
- vendor/eac_cli/lib/eac_cli/config.rb
|
721
|
+
- vendor/eac_cli/lib/eac_cli/config/entry.rb
|
722
|
+
- vendor/eac_cli/lib/eac_cli/config/entry/options.rb
|
723
|
+
- vendor/eac_cli/lib/eac_cli/config/entry/undefined.rb
|
707
724
|
- vendor/eac_cli/lib/eac_cli/core_ext.rb
|
708
725
|
- vendor/eac_cli/lib/eac_cli/default_runner.rb
|
709
726
|
- vendor/eac_cli/lib/eac_cli/definition.rb
|
@@ -719,15 +736,17 @@ files:
|
|
719
736
|
- vendor/eac_cli/lib/eac_cli/docopt/runner_context_replacement.rb
|
720
737
|
- vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb
|
721
738
|
- vendor/eac_cli/lib/eac_cli/docopt_runner.rb
|
722
|
-
- vendor/eac_cli/lib/eac_cli/docopt_runner/_class_methods.rb
|
723
739
|
- vendor/eac_cli/lib/eac_cli/docopt_runner/_doc.rb
|
724
740
|
- vendor/eac_cli/lib/eac_cli/docopt_runner/_settings.rb
|
725
741
|
- vendor/eac_cli/lib/eac_cli/docopt_runner/_subcommands.rb
|
742
|
+
- vendor/eac_cli/lib/eac_cli/docopt_runner/class_methods.rb
|
743
|
+
- vendor/eac_cli/lib/eac_cli/docopt_runner/context.rb
|
726
744
|
- vendor/eac_cli/lib/eac_cli/old_configs.rb
|
727
745
|
- vendor/eac_cli/lib/eac_cli/old_configs/entry_reader.rb
|
728
746
|
- vendor/eac_cli/lib/eac_cli/old_configs/password_entry_reader.rb
|
729
747
|
- vendor/eac_cli/lib/eac_cli/old_configs/read_entry_options.rb
|
730
748
|
- vendor/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
|
749
|
+
- vendor/eac_cli/lib/eac_cli/old_configs_bridge.rb
|
731
750
|
- vendor/eac_cli/lib/eac_cli/parser.rb
|
732
751
|
- vendor/eac_cli/lib/eac_cli/parser/alternative.rb
|
733
752
|
- vendor/eac_cli/lib/eac_cli/parser/alternative/argv.rb
|
@@ -740,8 +759,6 @@ files:
|
|
740
759
|
- vendor/eac_cli/lib/eac_cli/parser/collector.rb
|
741
760
|
- vendor/eac_cli/lib/eac_cli/parser/error.rb
|
742
761
|
- vendor/eac_cli/lib/eac_cli/patches.rb
|
743
|
-
- vendor/eac_cli/lib/eac_cli/patches/module.rb
|
744
|
-
- vendor/eac_cli/lib/eac_cli/patches/module/speaker.rb
|
745
762
|
- vendor/eac_cli/lib/eac_cli/patches/object.rb
|
746
763
|
- vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
|
747
764
|
- vendor/eac_cli/lib/eac_cli/runner.rb
|
@@ -755,10 +772,9 @@ files:
|
|
755
772
|
- vendor/eac_cli/lib/eac_cli/runner_with/subcommands/definition_concern.rb
|
756
773
|
- vendor/eac_cli/lib/eac_cli/runner_with_set.rb
|
757
774
|
- vendor/eac_cli/lib/eac_cli/speaker.rb
|
758
|
-
- vendor/eac_cli/lib/eac_cli/speaker/_class_methods.rb
|
759
775
|
- vendor/eac_cli/lib/eac_cli/speaker/_constants.rb
|
760
776
|
- vendor/eac_cli/lib/eac_cli/speaker/list.rb
|
761
|
-
- vendor/eac_cli/lib/eac_cli/speaker/
|
777
|
+
- vendor/eac_cli/lib/eac_cli/speaker/options.rb
|
762
778
|
- vendor/eac_cli/lib/eac_cli/version.rb
|
763
779
|
- vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
|
764
780
|
- vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb
|
@@ -769,7 +785,6 @@ files:
|
|
769
785
|
- vendor/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb
|
770
786
|
- vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb
|
771
787
|
- vendor/eac_cli/spec/lib/eac_cli/speaker_spec.rb
|
772
|
-
- vendor/eac_cli/spec/lib/module/speaker_spec.rb
|
773
788
|
- vendor/eac_cli/spec/rubocop_spec.rb
|
774
789
|
- vendor/eac_cli/spec/spec_helper.rb
|
775
790
|
- vendor/eac_config/Gemfile
|
@@ -777,10 +792,13 @@ files:
|
|
777
792
|
- vendor/eac_config/lib/eac_config.rb
|
778
793
|
- vendor/eac_config/lib/eac_config/entry.rb
|
779
794
|
- vendor/eac_config/lib/eac_config/entry_path.rb
|
795
|
+
- vendor/eac_config/lib/eac_config/envvars_node.rb
|
796
|
+
- vendor/eac_config/lib/eac_config/envvars_node/entry.rb
|
780
797
|
- vendor/eac_config/lib/eac_config/load_nodes_search.rb
|
781
798
|
- vendor/eac_config/lib/eac_config/load_path.rb
|
782
799
|
- vendor/eac_config/lib/eac_config/node.rb
|
783
800
|
- vendor/eac_config/lib/eac_config/node_entry.rb
|
801
|
+
- vendor/eac_config/lib/eac_config/node_uri.rb
|
784
802
|
- vendor/eac_config/lib/eac_config/old_configs.rb
|
785
803
|
- vendor/eac_config/lib/eac_config/old_configs/base.rb
|
786
804
|
- vendor/eac_config/lib/eac_config/old_configs/file.rb
|
@@ -790,7 +808,10 @@ files:
|
|
790
808
|
- vendor/eac_config/lib/eac_config/paths_hash/path_search.rb
|
791
809
|
- vendor/eac_config/lib/eac_config/version.rb
|
792
810
|
- vendor/eac_config/lib/eac_config/yaml_file_node.rb
|
811
|
+
- vendor/eac_config/lib/eac_config/yaml_file_node/entry.rb
|
793
812
|
- vendor/eac_config/spec/lib/eac_config/entry_path_spec.rb
|
813
|
+
- vendor/eac_config/spec/lib/eac_config/envvars_node/entry_spec.rb
|
814
|
+
- vendor/eac_config/spec/lib/eac_config/envvars_node_spec.rb
|
794
815
|
- vendor/eac_config/spec/lib/eac_config/old_configs_spec.rb
|
795
816
|
- vendor/eac_config/spec/lib/eac_config/paths_hash_spec.rb
|
796
817
|
- vendor/eac_config/spec/lib/eac_config/yaml_file_node_spec.rb
|
@@ -826,6 +847,7 @@ files:
|
|
826
847
|
- vendor/eac_git/lib/eac_git/executables.rb
|
827
848
|
- vendor/eac_git/lib/eac_git/local.rb
|
828
849
|
- vendor/eac_git/lib/eac_git/local/commit.rb
|
850
|
+
- vendor/eac_git/lib/eac_git/local/commit/archive.rb
|
829
851
|
- vendor/eac_git/lib/eac_git/local/commit/changed_file.rb
|
830
852
|
- vendor/eac_git/lib/eac_git/local/commit/diff_tree_line.rb
|
831
853
|
- vendor/eac_git/lib/eac_git/local/dirty_files.rb
|
@@ -1040,6 +1062,7 @@ files:
|
|
1040
1062
|
- vendor/eac_ruby_base0/eac_ruby_base0.gemspec
|
1041
1063
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0.rb
|
1042
1064
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
|
1065
|
+
- vendor/eac_ruby_base0/lib/eac_ruby_base0/application_xdg.rb
|
1043
1066
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb
|
1044
1067
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb
|
1045
1068
|
- vendor/eac_ruby_base0/lib/eac_ruby_base0/patches.rb
|
@@ -1104,6 +1127,7 @@ files:
|
|
1104
1127
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb
|
1105
1128
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb
|
1106
1129
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/super_args.rb
|
1130
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/context.rb
|
1107
1131
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
|
1108
1132
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/core_ext.rb
|
1109
1133
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/custom_format.rb
|
@@ -1173,11 +1197,13 @@ files:
|
|
1173
1197
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb
|
1174
1198
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb
|
1175
1199
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb
|
1200
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/context.rb
|
1176
1201
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb
|
1177
1202
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb
|
1178
1203
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb
|
1179
1204
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb
|
1180
1205
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb
|
1206
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/speaker.rb
|
1181
1207
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
|
1182
1208
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
|
1183
1209
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
|
@@ -1205,6 +1231,9 @@ files:
|
|
1205
1231
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
|
1206
1232
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb
|
1207
1233
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
|
1234
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker.rb
|
1235
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb
|
1236
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/sender.rb
|
1208
1237
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb
|
1209
1238
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb
|
1210
1239
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
|
@@ -1231,6 +1260,7 @@ files:
|
|
1231
1260
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb
|
1232
1261
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/listable_spec.rb
|
1233
1262
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/simple_cache_spec.rb
|
1263
|
+
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/speaker_spec.rb
|
1234
1264
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/if_present_spec.rb
|
1235
1265
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec_files/path/my_stub_with_template
|
1236
1266
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
|