eac_tools 0.77.0 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +22 -22
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +3 -3
- data/sub/avm/lib/avm/applications/base/local_instance.rb +31 -0
- data/sub/avm/lib/avm/applications/base/local_source.rb +30 -0
- data/sub/avm/lib/avm/applications/base/naming.rb +28 -0
- data/sub/avm/lib/avm/applications/base/organization.rb +29 -0
- data/sub/avm/lib/avm/applications/base.rb +0 -39
- data/sub/avm/lib/avm/instances/base/auto_values/database.rb +1 -0
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +2 -2
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/database.rb +2 -2
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +3 -3
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb +28 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +72 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +9 -3
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-tools/avm-tools.gemspec +2 -2
- data/sub/avm-tools/lib/avm/tools/runner/application/info.rb +34 -0
- data/sub/avm-tools/lib/avm/tools/runner/application.rb +26 -0
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/eac_cli/lib/eac_cli/config/entry.rb +2 -1
- data/sub/eac_config/eac_config.gemspec +2 -2
- data/sub/eac_config/lib/eac_config/version.rb +1 -1
- metadata +24 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e227d70bad6dcda0603a56c57f8114622444ff56a3ddf61ff742be65ba94992
|
|
4
|
+
data.tar.gz: fce72f0ff11ad9c7cf4287351015bb8337a5b56af81d6edd386d13f821ff68ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 553f7235db1e49048bb2444554ed9f4a4c3cc2281a19ee054196f7bd4f6fbbc71951a4a87fe5a8bc09dc4b6b6165d59ffee2df92b70998e1d8f17fc84974eb52
|
|
7
|
+
data.tar.gz: f1c8903587ee95c26bf744c95f9704c7ffb27f75391e26f83e95544377655b36714029bae0e0b5232c230ba35752748169e08855d1f020e99478f72f148dfe38
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
eac_tools (0.
|
|
5
|
-
avm (~> 0.
|
|
4
|
+
eac_tools (0.78.0)
|
|
5
|
+
avm (~> 0.80)
|
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.19)
|
|
7
7
|
avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
|
|
8
8
|
avm-eac_latex_base0 (~> 0.3, >= 0.3.1)
|
|
@@ -11,13 +11,13 @@ PATH
|
|
|
11
11
|
avm-eac_python_base0 (~> 0.2, >= 0.2.1)
|
|
12
12
|
avm-eac_rails_base0 (~> 0.10, >= 0.10.3)
|
|
13
13
|
avm-eac_rails_base1 (~> 0.9, >= 0.9.3)
|
|
14
|
-
avm-eac_redmine_base0 (~> 0.21)
|
|
14
|
+
avm-eac_redmine_base0 (~> 0.21, >= 0.21.1)
|
|
15
15
|
avm-eac_redmine_plugin_base0 (~> 0.4)
|
|
16
|
-
avm-eac_ruby_base1 (~> 0.
|
|
16
|
+
avm-eac_ruby_base1 (~> 0.32, >= 0.32.1)
|
|
17
17
|
avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
|
|
18
18
|
avm-eac_wordpress_base0 (~> 0.3, >= 0.3.1)
|
|
19
19
|
avm-git (~> 0.13, >= 0.13.4)
|
|
20
|
-
avm-tools (~> 0.
|
|
20
|
+
avm-tools (~> 0.156)
|
|
21
21
|
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
|
22
22
|
|
|
23
23
|
PATH
|
|
@@ -86,9 +86,9 @@ PATH
|
|
|
86
86
|
PATH
|
|
87
87
|
remote: sub/avm-eac_redmine_base0
|
|
88
88
|
specs:
|
|
89
|
-
avm-eac_redmine_base0 (0.21.
|
|
90
|
-
avm (~> 0.
|
|
91
|
-
avm-eac_generic_base0 (~> 0.12)
|
|
89
|
+
avm-eac_redmine_base0 (0.21.1)
|
|
90
|
+
avm (~> 0.80)
|
|
91
|
+
avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
|
|
92
92
|
avm-eac_rails_base1 (~> 0.9, >= 0.9.3)
|
|
93
93
|
avm-eac_ubuntu_base0 (~> 0.5)
|
|
94
94
|
curb (~> 0.9, >= 0.9.11)
|
|
@@ -106,12 +106,12 @@ PATH
|
|
|
106
106
|
PATH
|
|
107
107
|
remote: sub/avm-eac_ruby_base1
|
|
108
108
|
specs:
|
|
109
|
-
avm-eac_ruby_base1 (0.
|
|
109
|
+
avm-eac_ruby_base1 (0.32.1)
|
|
110
110
|
aranha-parsers (~> 0.21)
|
|
111
|
-
avm (~> 0.
|
|
112
|
-
avm-eac_generic_base0 (~> 0.12)
|
|
111
|
+
avm (~> 0.80)
|
|
112
|
+
avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
|
|
113
113
|
eac_envs-http (~> 0.4, >= 0.4.1)
|
|
114
|
-
eac_ruby_utils (~> 0.119, >= 0.119.
|
|
114
|
+
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
|
115
115
|
|
|
116
116
|
PATH
|
|
117
117
|
remote: sub/avm-eac_ubuntu_base0
|
|
@@ -163,10 +163,10 @@ PATH
|
|
|
163
163
|
PATH
|
|
164
164
|
remote: sub/avm-tools
|
|
165
165
|
specs:
|
|
166
|
-
avm-tools (0.
|
|
166
|
+
avm-tools (0.156.0)
|
|
167
167
|
aranha-parsers (~> 0.21)
|
|
168
|
-
avm (~> 0.
|
|
169
|
-
avm-eac_ruby_base1 (~> 0.
|
|
168
|
+
avm (~> 0.80)
|
|
169
|
+
avm-eac_ruby_base1 (~> 0.32, >= 0.32.1)
|
|
170
170
|
avm-eac_ubuntu_base0 (~> 0.5)
|
|
171
171
|
avm-files (~> 0.6, >= 0.6.2)
|
|
172
172
|
avm-git (~> 0.13, >= 0.13.4)
|
|
@@ -181,14 +181,14 @@ PATH
|
|
|
181
181
|
PATH
|
|
182
182
|
remote: sub/avm
|
|
183
183
|
specs:
|
|
184
|
-
avm (0.
|
|
184
|
+
avm (0.80.0)
|
|
185
185
|
aranha-parsers (~> 0.21)
|
|
186
|
-
eac_cli (~> 0.
|
|
187
|
-
eac_config (~> 0.14)
|
|
186
|
+
eac_cli (~> 0.38)
|
|
187
|
+
eac_config (~> 0.14, >= 0.14.1)
|
|
188
188
|
eac_docker (~> 0.7)
|
|
189
189
|
eac_fs (~> 0.16)
|
|
190
190
|
eac_git (~> 0.14, >= 0.14.1)
|
|
191
|
-
eac_ruby_utils (~> 0.119)
|
|
191
|
+
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
|
192
192
|
eac_templates (~> 0.5)
|
|
193
193
|
filesize (~> 0.2)
|
|
194
194
|
htmlbeautifier (~> 1.4, >= 1.4.2)
|
|
@@ -205,9 +205,9 @@ PATH
|
|
|
205
205
|
PATH
|
|
206
206
|
remote: sub/eac_config
|
|
207
207
|
specs:
|
|
208
|
-
eac_config (0.14.
|
|
209
|
-
addressable (~> 2.8, >= 2.8.
|
|
210
|
-
eac_ruby_utils (~> 0.119)
|
|
208
|
+
eac_config (0.14.1)
|
|
209
|
+
addressable (~> 2.8, >= 2.8.5)
|
|
210
|
+
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
|
211
211
|
|
|
212
212
|
PATH
|
|
213
213
|
remote: sub/eac_git
|
data/lib/eac_tools/version.rb
CHANGED
data/sub/avm/avm.gemspec
CHANGED
|
@@ -13,12 +13,12 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
s.files = Dir['{lib}/**/*']
|
|
14
14
|
|
|
15
15
|
s.add_dependency 'aranha-parsers', '~> 0.21'
|
|
16
|
-
s.add_dependency 'eac_cli', '~> 0.
|
|
17
|
-
s.add_dependency 'eac_config', '~> 0.14'
|
|
16
|
+
s.add_dependency 'eac_cli', '~> 0.38'
|
|
17
|
+
s.add_dependency 'eac_config', '~> 0.14', '>= 0.14.1'
|
|
18
18
|
s.add_dependency 'eac_docker', '~> 0.7'
|
|
19
19
|
s.add_dependency 'eac_fs', '~> 0.16'
|
|
20
20
|
s.add_dependency 'eac_git', '~> 0.14', '>= 0.14.1'
|
|
21
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.119'
|
|
21
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
|
|
22
22
|
s.add_dependency 'eac_templates', '~> 0.5'
|
|
23
23
|
s.add_dependency 'filesize', '~> 0.2'
|
|
24
24
|
s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.2'
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'avm/instances/ids'
|
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
|
5
|
+
|
|
6
|
+
module Avm
|
|
7
|
+
module Applications
|
|
8
|
+
class Base
|
|
9
|
+
module LocalInstance
|
|
10
|
+
LOCAL_INSTANCE_SUFFIX = 'dev'
|
|
11
|
+
|
|
12
|
+
# @return [String]
|
|
13
|
+
def local_instance_id
|
|
14
|
+
::Avm::Instances::Ids.build(id, local_instance_suffix)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# @return [String]
|
|
18
|
+
def local_instance_suffix
|
|
19
|
+
LOCAL_INSTANCE_SUFFIX
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
private
|
|
23
|
+
|
|
24
|
+
# @return [Avm::Instances::Base]
|
|
25
|
+
def local_instance_uncached
|
|
26
|
+
instance(local_instance_suffix)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'avm/registry'
|
|
4
|
+
require 'eac_config/node'
|
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
|
6
|
+
|
|
7
|
+
module Avm
|
|
8
|
+
module Applications
|
|
9
|
+
class Base
|
|
10
|
+
module LocalSource
|
|
11
|
+
# @return [Pathname]
|
|
12
|
+
def local_source_path
|
|
13
|
+
local_source_path_entry.value!.to_pathname
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# @return [EacConfig::Entry]
|
|
17
|
+
def local_source_path_entry
|
|
18
|
+
::EacConfig::Node.context.current.entry([local_instance_id, 'install', 'path'])
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
private
|
|
22
|
+
|
|
23
|
+
# @return [Avm::Sources::Base]
|
|
24
|
+
def local_source_uncached
|
|
25
|
+
::Avm::Registry.sources.detect(local_source_path)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
|
4
|
+
|
|
5
|
+
module Avm
|
|
6
|
+
module Applications
|
|
7
|
+
class Base
|
|
8
|
+
module Naming
|
|
9
|
+
DEFAULT_NAME = '_Undefined_'
|
|
10
|
+
|
|
11
|
+
# @return [String]
|
|
12
|
+
def default_name
|
|
13
|
+
DEFAULT_NAME
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
def name
|
|
18
|
+
name_from_configuration || default_name
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# @return [String]
|
|
22
|
+
def name_from_configuration
|
|
23
|
+
entry(::Avm::Instances::EntryKeys::NAME).optional_value
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'avm/registry'
|
|
4
|
+
|
|
5
|
+
module Avm
|
|
6
|
+
module Applications
|
|
7
|
+
class Base
|
|
8
|
+
module Organization
|
|
9
|
+
DEFAULT_ORGANIZATION = '_undefined_'
|
|
10
|
+
ORGANIZATION_CONFIG_KEY = 'organization'
|
|
11
|
+
|
|
12
|
+
# @return [String]
|
|
13
|
+
def default_organization
|
|
14
|
+
DEFAULT_ORGANIZATION
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
def organization_by_configuration
|
|
19
|
+
entry(ORGANIZATION_CONFIG_KEY).optional_value
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @return [String]
|
|
23
|
+
def organization
|
|
24
|
+
organization_by_configuration || default_organization
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'avm/entries/base'
|
|
4
|
-
require 'avm/instances/ids'
|
|
5
|
-
require 'avm/registry'
|
|
6
4
|
require 'eac_ruby_utils/core_ext'
|
|
7
5
|
|
|
8
6
|
module Avm
|
|
@@ -13,7 +11,6 @@ module Avm
|
|
|
13
11
|
include ::Avm::Entries::Base
|
|
14
12
|
|
|
15
13
|
AVM_TYPE = 'Application'
|
|
16
|
-
LOCAL_INSTANCE_SUFFIX = 'dev'
|
|
17
14
|
|
|
18
15
|
common_constructor :id do
|
|
19
16
|
self.id = id.to_s
|
|
@@ -26,42 +23,6 @@ module Avm
|
|
|
26
23
|
def instance(suffix)
|
|
27
24
|
stereotype.instance_class.new(self, suffix)
|
|
28
25
|
end
|
|
29
|
-
|
|
30
|
-
def name
|
|
31
|
-
entry(::Avm::Instances::EntryKeys::NAME).read
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# @return [String]
|
|
35
|
-
def local_instance_id
|
|
36
|
-
::Avm::Instances::Ids.build(id, local_instance_suffix)
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
# @return [Pathname]
|
|
40
|
-
def local_source_path
|
|
41
|
-
local_source_path_entry.value!.to_pathname
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
# @return [EacConfig::Entry]
|
|
45
|
-
def local_source_path_entry
|
|
46
|
-
::EacConfig::Node.context.current.entry([local_instance_id, 'install', 'path'])
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
# @return [String]
|
|
50
|
-
def local_instance_suffix
|
|
51
|
-
LOCAL_INSTANCE_SUFFIX
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
private
|
|
55
|
-
|
|
56
|
-
# @return [Avm::Instances::Base]
|
|
57
|
-
def local_instance_uncached
|
|
58
|
-
instance(local_instance_suffix)
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# @return [Avm::Sources::Base]
|
|
62
|
-
def local_source_uncached
|
|
63
|
-
::Avm::Registry.sources.detect(local_source_path)
|
|
64
|
-
end
|
|
65
26
|
end
|
|
66
27
|
end
|
|
67
28
|
end
|
data/sub/avm/lib/avm/version.rb
CHANGED
|
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
|
|
15
15
|
s.required_ruby_version = '>= 2.7.0'
|
|
16
16
|
|
|
17
|
-
s.add_dependency 'avm', '~> 0.
|
|
18
|
-
s.add_dependency 'avm-eac_generic_base0', '~> 0.12'
|
|
17
|
+
s.add_dependency 'avm', '~> 0.80'
|
|
18
|
+
s.add_dependency 'avm-eac_generic_base0', '~> 0.12', '>= 0.12.1'
|
|
19
19
|
s.add_dependency 'avm-eac_rails_base1', '~> 0.9', '>= 0.9.3'
|
|
20
20
|
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.5'
|
|
21
21
|
s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
|
|
@@ -16,8 +16,8 @@ module Avm
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def database_internal
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
::Avm::Instances::Base::AutoValues::Database::LOCAL_ADDRESSES
|
|
20
|
+
.include?(entry(::Avm::Instances::EntryKeys::DATABASE_HOSTNAME).value)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def postgresql_version_default_value
|
|
@@ -13,10 +13,10 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
s.files = Dir['{lib,locale,template}/**/*']
|
|
14
14
|
|
|
15
15
|
s.add_dependency 'aranha-parsers', '~> 0.21'
|
|
16
|
-
s.add_dependency 'avm', '~> 0.
|
|
17
|
-
s.add_dependency 'avm-eac_generic_base0', '~> 0.12'
|
|
16
|
+
s.add_dependency 'avm', '~> 0.80'
|
|
17
|
+
s.add_dependency 'avm-eac_generic_base0', '~> 0.12', '>= 0.12.1'
|
|
18
18
|
s.add_dependency 'eac_envs-http', '~> 0.4', '>= 0.4.1'
|
|
19
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.
|
|
19
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
|
|
20
20
|
|
|
21
21
|
s.add_development_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
|
|
22
22
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.6.0'
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'avm/eac_generic_base0/sources/base'
|
|
4
|
+
require 'avm/eac_ruby_base1/sources/base/bundle_command'
|
|
5
|
+
require 'avm/eac_ruby_base1/sources/bundle_update'
|
|
6
|
+
require 'eac_ruby_utils/core_ext'
|
|
7
|
+
|
|
8
|
+
module Avm
|
|
9
|
+
module EacRubyBase1
|
|
10
|
+
module Sources
|
|
11
|
+
class Base < ::Avm::EacGenericBase0::Sources::Base
|
|
12
|
+
module Rubocop
|
|
13
|
+
RUBOCOP_CONFIG_SUBPATH = '.rubocop.yml'
|
|
14
|
+
|
|
15
|
+
# @return [Avm::EacRubyBase1::Sources::Base::RubocopCommand]
|
|
16
|
+
def rubocop_command
|
|
17
|
+
::Avm::EacRubyBase1::Sources::Base::RubocopCommand.new(self)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# @return [Pathname]
|
|
21
|
+
def rubocop_config_path
|
|
22
|
+
path.join(RUBOCOP_CONFIG_SUBPATH)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'avm/eac_generic_base0/sources/base'
|
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
|
5
|
+
|
|
6
|
+
module Avm
|
|
7
|
+
module EacRubyBase1
|
|
8
|
+
module Sources
|
|
9
|
+
class Base < ::Avm::EacGenericBase0::Sources::Base
|
|
10
|
+
class RubocopCommand
|
|
11
|
+
acts_as_immutable
|
|
12
|
+
immutable_accessor :ignore_parent_exclusion, :autocorrect, :autocorrect_all,
|
|
13
|
+
type: :boolean
|
|
14
|
+
immutable_accessor :file, type: :array
|
|
15
|
+
common_constructor :source
|
|
16
|
+
delegate :execute, :execute!, :system, :system!, to: :bundle_command
|
|
17
|
+
|
|
18
|
+
# @return [Enumerable]
|
|
19
|
+
def immutable_constructor_args
|
|
20
|
+
[source]
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @return [Gemspec::Version]
|
|
24
|
+
def version
|
|
25
|
+
@version ||= ::Gemspec::Version.new(
|
|
26
|
+
source.bundle('exec', 'rubocop', '--version').execute!
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
private
|
|
31
|
+
|
|
32
|
+
# @return [String]
|
|
33
|
+
def autocorrect_option
|
|
34
|
+
'--auto-correct'
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @return [String]
|
|
38
|
+
def autocorrect_all_option
|
|
39
|
+
'--auto-correct-all'
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# @return [String]
|
|
43
|
+
def ignore_parent_exclusion_option
|
|
44
|
+
'--ignore-parent-exclusion'
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# @return [Avm::EacRubyBase1::Sources::Base::BundleCommand]
|
|
48
|
+
def bundle_command
|
|
49
|
+
source.bundle(*bundle_command_args)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# @return [Array<String>]
|
|
53
|
+
def bundle_command_args
|
|
54
|
+
%w[exec rubocop] + rubocop_command_args
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# @return [Array<String>]
|
|
58
|
+
def rubocop_command_args
|
|
59
|
+
r = ['--config', source.rubocop_config_path]
|
|
60
|
+
r << ignore_parent_exclusion_option if ignore_parent_exclusion?
|
|
61
|
+
if autocorrect_all?
|
|
62
|
+
r << autocorrect_all_option
|
|
63
|
+
elsif autocorrect?
|
|
64
|
+
r << autocorrect_option
|
|
65
|
+
end
|
|
66
|
+
r + files
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb
CHANGED
|
@@ -10,6 +10,8 @@ module Avm
|
|
|
10
10
|
enable_simple_cache
|
|
11
11
|
common_constructor :source, :gem_name
|
|
12
12
|
|
|
13
|
+
RUBOCOP_OK_CODES = [256].freeze
|
|
14
|
+
|
|
13
15
|
def perform
|
|
14
16
|
source.scm.commit_if_change(commit_message) { update_code }
|
|
15
17
|
end
|
|
@@ -24,6 +26,12 @@ module Avm
|
|
|
24
26
|
__locale: source.locale)
|
|
25
27
|
end
|
|
26
28
|
|
|
29
|
+
def format_gemspec
|
|
30
|
+
source.rubocop_command.ignore_parent_exclusion(true).autocorrect(true)
|
|
31
|
+
.file(source.gemspec_path)
|
|
32
|
+
.execute!(exit_outputs: RUBOCOP_OK_CODES.map { |k| [k, nil] }.to_h)
|
|
33
|
+
end
|
|
34
|
+
|
|
27
35
|
# @return [Array<String>]
|
|
28
36
|
def requirements_list_uncached
|
|
29
37
|
::Avm::EacRubyBase1::PreferredVersionRequirements.new(
|
|
@@ -48,9 +56,7 @@ module Avm
|
|
|
48
56
|
def update_gemspec
|
|
49
57
|
gemspec.dependency(gem_name).version_specs = requirements_list
|
|
50
58
|
gemspec.write(source.gemspec_path)
|
|
51
|
-
|
|
52
|
-
source.path, ['-a', '--ignore-parent-exclusion', source.gemspec_path]
|
|
53
|
-
).run
|
|
59
|
+
format_gemspec
|
|
54
60
|
end
|
|
55
61
|
end
|
|
56
62
|
end
|
|
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
|
|
|
17
17
|
s.required_ruby_version = '>= 2.7.0'
|
|
18
18
|
|
|
19
19
|
s.add_dependency 'aranha-parsers', '~> 0.21'
|
|
20
|
-
s.add_dependency 'avm', '~> 0.
|
|
21
|
-
s.add_dependency 'avm-eac_ruby_base1', '~> 0.
|
|
20
|
+
s.add_dependency 'avm', '~> 0.80'
|
|
21
|
+
s.add_dependency 'avm-eac_ruby_base1', '~> 0.32', '>= 0.32.1'
|
|
22
22
|
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.5'
|
|
23
23
|
s.add_dependency 'avm-files', '~> 0.6', '>= 0.6.2'
|
|
24
24
|
s.add_dependency 'avm-git', '~> 0.13', '>= 0.13.4'
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'avm/tools/core_ext'
|
|
4
|
+
|
|
5
|
+
module Avm
|
|
6
|
+
module Tools
|
|
7
|
+
class Runner
|
|
8
|
+
class Application
|
|
9
|
+
class Info
|
|
10
|
+
APPLICATION_PROPERTIES = {
|
|
11
|
+
id: 'ID',
|
|
12
|
+
name: 'Name',
|
|
13
|
+
organization: 'Organization'
|
|
14
|
+
}.freeze
|
|
15
|
+
|
|
16
|
+
runner_with :help, :output_item do
|
|
17
|
+
desc 'Show information about application.'
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def run
|
|
21
|
+
run_output
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# @return [Hash]
|
|
25
|
+
def item_hash
|
|
26
|
+
APPLICATION_PROPERTIES.inject({}) do |a, e|
|
|
27
|
+
a.merge(e.last => application.send(e.first).to_s)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'avm/registry'
|
|
4
|
+
require 'eac_ruby_base0/core_ext'
|
|
5
|
+
|
|
6
|
+
module Avm
|
|
7
|
+
module Tools
|
|
8
|
+
class Runner
|
|
9
|
+
class Application
|
|
10
|
+
runner_with :help, :subcommands do
|
|
11
|
+
pos_arg :application_id
|
|
12
|
+
subcommands
|
|
13
|
+
end
|
|
14
|
+
for_context :application
|
|
15
|
+
|
|
16
|
+
private
|
|
17
|
+
|
|
18
|
+
def application_uncached
|
|
19
|
+
::Avm::Registry.applications.detect(parsed.application_id)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
require_sub __FILE__
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
|
|
|
12
12
|
|
|
13
13
|
s.files = Dir['{lib}/**/*']
|
|
14
14
|
|
|
15
|
-
s.add_dependency 'addressable', '~> 2.8', '>= 2.8.
|
|
16
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.119'
|
|
15
|
+
s.add_dependency 'addressable', '~> 2.8', '>= 2.8.5'
|
|
16
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
|
|
17
17
|
|
|
18
18
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
|
|
19
19
|
end
|
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.
|
|
4
|
+
version: 0.78.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-10-
|
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: avm
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
19
|
+
version: '0.80'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
26
|
+
version: '0.80'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: avm-eac_asciidoctor_base0
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -185,6 +185,9 @@ dependencies:
|
|
|
185
185
|
- - "~>"
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
187
|
version: '0.21'
|
|
188
|
+
- - ">="
|
|
189
|
+
- !ruby/object:Gem::Version
|
|
190
|
+
version: 0.21.1
|
|
188
191
|
type: :runtime
|
|
189
192
|
prerelease: false
|
|
190
193
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -192,6 +195,9 @@ dependencies:
|
|
|
192
195
|
- - "~>"
|
|
193
196
|
- !ruby/object:Gem::Version
|
|
194
197
|
version: '0.21'
|
|
198
|
+
- - ">="
|
|
199
|
+
- !ruby/object:Gem::Version
|
|
200
|
+
version: 0.21.1
|
|
195
201
|
- !ruby/object:Gem::Dependency
|
|
196
202
|
name: avm-eac_redmine_plugin_base0
|
|
197
203
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -212,20 +218,20 @@ dependencies:
|
|
|
212
218
|
requirements:
|
|
213
219
|
- - "~>"
|
|
214
220
|
- !ruby/object:Gem::Version
|
|
215
|
-
version: '0.
|
|
221
|
+
version: '0.32'
|
|
216
222
|
- - ">="
|
|
217
223
|
- !ruby/object:Gem::Version
|
|
218
|
-
version: 0.
|
|
224
|
+
version: 0.32.1
|
|
219
225
|
type: :runtime
|
|
220
226
|
prerelease: false
|
|
221
227
|
version_requirements: !ruby/object:Gem::Requirement
|
|
222
228
|
requirements:
|
|
223
229
|
- - "~>"
|
|
224
230
|
- !ruby/object:Gem::Version
|
|
225
|
-
version: '0.
|
|
231
|
+
version: '0.32'
|
|
226
232
|
- - ">="
|
|
227
233
|
- !ruby/object:Gem::Version
|
|
228
|
-
version: 0.
|
|
234
|
+
version: 0.32.1
|
|
229
235
|
- !ruby/object:Gem::Dependency
|
|
230
236
|
name: avm-eac_webapp_base0
|
|
231
237
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -292,14 +298,14 @@ dependencies:
|
|
|
292
298
|
requirements:
|
|
293
299
|
- - "~>"
|
|
294
300
|
- !ruby/object:Gem::Version
|
|
295
|
-
version: '0.
|
|
301
|
+
version: '0.156'
|
|
296
302
|
type: :runtime
|
|
297
303
|
prerelease: false
|
|
298
304
|
version_requirements: !ruby/object:Gem::Requirement
|
|
299
305
|
requirements:
|
|
300
306
|
- - "~>"
|
|
301
307
|
- !ruby/object:Gem::Version
|
|
302
|
-
version: '0.
|
|
308
|
+
version: '0.156'
|
|
303
309
|
- !ruby/object:Gem::Dependency
|
|
304
310
|
name: eac_ruby_utils
|
|
305
311
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -714,6 +720,8 @@ files:
|
|
|
714
720
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
|
|
715
721
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb
|
|
716
722
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb
|
|
723
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb
|
|
724
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb
|
|
717
725
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb
|
|
718
726
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb
|
|
719
727
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
|
|
@@ -1017,6 +1025,8 @@ files:
|
|
|
1017
1025
|
- sub/avm-tools/lib/avm/tools.rb
|
|
1018
1026
|
- sub/avm-tools/lib/avm/tools/core_ext.rb
|
|
1019
1027
|
- sub/avm-tools/lib/avm/tools/runner.rb
|
|
1028
|
+
- sub/avm-tools/lib/avm/tools/runner/application.rb
|
|
1029
|
+
- sub/avm-tools/lib/avm/tools/runner/application/info.rb
|
|
1020
1030
|
- sub/avm-tools/lib/avm/tools/runner/application_stereotypes.rb
|
|
1021
1031
|
- sub/avm-tools/lib/avm/tools/runner/application_stereotypes/list.rb
|
|
1022
1032
|
- sub/avm-tools/lib/avm/tools/runner/applications.rb
|
|
@@ -1109,6 +1119,10 @@ files:
|
|
|
1109
1119
|
- sub/avm/lib/avm/application_stereotypes/base.rb
|
|
1110
1120
|
- sub/avm/lib/avm/applications.rb
|
|
1111
1121
|
- sub/avm/lib/avm/applications/base.rb
|
|
1122
|
+
- sub/avm/lib/avm/applications/base/local_instance.rb
|
|
1123
|
+
- sub/avm/lib/avm/applications/base/local_source.rb
|
|
1124
|
+
- sub/avm/lib/avm/applications/base/naming.rb
|
|
1125
|
+
- sub/avm/lib/avm/applications/base/organization.rb
|
|
1112
1126
|
- sub/avm/lib/avm/applications/base/publishing.rb
|
|
1113
1127
|
- sub/avm/lib/avm/applications/base/stereotype.rb
|
|
1114
1128
|
- sub/avm/lib/avm/data/callbacks.rb
|