eac_tools 0.35.0 → 0.36.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +15 -7
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/lib/avm/launcher/errors.rb +11 -0
  5. data/sub/avm/lib/avm/launcher/instances.rb +11 -0
  6. data/sub/avm/lib/avm/launcher/paths.rb +11 -0
  7. data/sub/{avm-tools → avm}/lib/avm/launcher/project.rb +4 -5
  8. data/sub/avm/lib/avm/launcher/publish.rb +11 -0
  9. data/sub/avm/lib/avm/launcher.rb +9 -0
  10. data/sub/avm/lib/avm/version.rb +1 -1
  11. data/sub/avm-eac_php_base0/Gemfile +8 -0
  12. data/sub/avm-eac_php_base0/avm-eac_php_base0.gemspec +18 -0
  13. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0/version.rb +7 -0
  14. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0.rb +9 -0
  15. data/sub/avm-eac_php_base0/spec/rubocop_spec.rb +3 -0
  16. data/sub/avm-eac_php_base0/spec/spec_helper.rb +4 -0
  17. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/git_info.rb +2 -1
  18. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy.rb +0 -1
  19. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  20. data/sub/avm-tools/avm-tools.gemspec +1 -1
  21. data/sub/avm-tools/lib/avm/projects/stereotypes.rb +0 -9
  22. data/sub/avm-tools/lib/avm/tools/core_ext.rb +0 -1
  23. data/sub/avm-tools/lib/avm/tools/runner/launcher.rb +1 -0
  24. data/sub/avm-tools/lib/avm/tools/runner/source/info.rb +0 -4
  25. data/sub/avm-tools/lib/avm/tools/runner/source/test.rb +1 -1
  26. data/sub/avm-tools/lib/avm/tools/runner/source.rb +0 -12
  27. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  28. data/sub/avm-tools/spec/lib/avm/launcher/context_spec.rb +3 -3
  29. metadata +34 -22
  30. data/sub/avm-tools/lib/avm/launcher/instances.rb +0 -6
  31. data/sub/avm-tools/lib/avm/launcher/paths.rb +0 -4
  32. data/sub/avm-tools/lib/avm/launcher/publish.rb +0 -4
  33. data/sub/avm-tools/lib/avm/patches/i18n.rb +0 -22
  34. data/sub/avm-tools/lib/avm/patches.rb +0 -9
  35. data/sub/avm-tools/lib/avm/projects/stereotype/job_comparator.rb +0 -32
  36. data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb +0 -18
  37. data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb +0 -25
  38. data/sub/avm-tools/lib/avm/projects/stereotypes/redmine_plugin.rb +0 -23
  39. data/sub/avm-tools/lib/avm/stereotypes.rb +0 -9
  40. data/sub/avm-tools/lib/avm/tools/source.rb +0 -64
  41. data/sub/avm-tools/locale/en.yml +0 -7
  42. data/sub/avm-tools/locale/pt-BR.yml +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e7be8c10a31eca92c292ca5a2aff340237809512a2477c04b9212b9a246264d
4
- data.tar.gz: 7de8fb83e7fbc7583c0577e5de1a561952b17d1b2768951e6706f645933966bb
3
+ metadata.gz: ae4239b30a17da4a1f143e5aeddcf1b845a6234b2b95049d44a18c7fe7d8c041
4
+ data.tar.gz: 394046628010ad6317a184017d7749895373a58ffdf03413bd8f899c77c9b70f
5
5
  SHA512:
6
- metadata.gz: 71a2a76a1b55a74f18f7aa18db4b25c269c8ffff5e397669ff0d8782fe21db1269e2b571dbf1d7b2b0fa70a696e2cccbdf0921d57a329ff62a15de115d8d1bd4
7
- data.tar.gz: f5a62fb8592908556546226ff6232eef6b8be3a7d72f87080dd2b31a38cfdb60c724069439037942549b72b319672ebd1af1e06bfb378d526f0a2014c1499318
6
+ metadata.gz: a950c92642fa1ed6ef188d2d4383356b5857d917a4be35ef504cab08a1f10d9dff64dcfc0d65b29c0665b52ca0be36d5d773796045209445c896c5a8c521cc6a
7
+ data.tar.gz: 74983a5dab48ace1f6c06638e421aed086c32b9c9579e1585289c6a97aad8db4ab76423881a7700a319ea1c877671c5749f232962dc1f8791739dd014fcb5db0
data/Gemfile.lock CHANGED
@@ -1,19 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.35.0)
5
- avm (~> 0.46)
4
+ eac_tools (0.36.0)
5
+ avm (~> 0.47)
6
6
  avm-eac_asciidoctor_base0 (~> 0.7, >= 0.7.1)
7
7
  avm-eac_generic_base0 (~> 0.5)
8
8
  avm-eac_latex_base0 (~> 0.2, >= 0.2.1)
9
+ avm-eac_php_base0 (~> 0.1)
9
10
  avm-eac_rails_base0 (~> 0.8, >= 0.8.1)
10
11
  avm-eac_rails_base1 (~> 0.7)
11
12
  avm-eac_redmine_base0 (~> 0.16)
12
13
  avm-eac_redmine_plugin_base0 (~> 0.3)
13
14
  avm-eac_ruby_base1 (~> 0.22)
14
- avm-eac_webapp_base0 (~> 0.9, >= 0.9.1)
15
+ avm-eac_webapp_base0 (~> 0.9, >= 0.9.2)
15
16
  avm-eac_wordpress_base0 (~> 0.2, >= 0.2.1)
16
- avm-tools (~> 0.139)
17
+ avm-tools (~> 0.140)
17
18
  eac_ruby_utils (~> 0.104)
18
19
 
19
20
  PATH
@@ -41,6 +42,12 @@ PATH
41
42
  avm-eac_webapp_base0 (~> 0.9)
42
43
  eac_ruby_utils (~> 0.104)
43
44
 
45
+ PATH
46
+ remote: sub/avm-eac_php_base0
47
+ specs:
48
+ avm-eac_php_base0 (0.1.0)
49
+ eac_ruby_utils (~> 0.104)
50
+
44
51
  PATH
45
52
  remote: sub/avm-eac_rails_base0
46
53
  specs:
@@ -88,7 +95,7 @@ PATH
88
95
  PATH
89
96
  remote: sub/avm-eac_webapp_base0
90
97
  specs:
91
- avm-eac_webapp_base0 (0.9.1)
98
+ avm-eac_webapp_base0 (0.9.2)
92
99
  avm (~> 0.46)
93
100
  avm-eac_generic_base0 (~> 0.5)
94
101
  avm-eac_postgresql_base0 (~> 0.2)
@@ -125,7 +132,7 @@ PATH
125
132
  PATH
126
133
  remote: sub/avm-tools
127
134
  specs:
128
- avm-tools (0.139.0)
135
+ avm-tools (0.140.0)
129
136
  aranha-parsers (~> 0.14, >= 0.14.3)
130
137
  avm (~> 0.46)
131
138
  avm-eac_ruby_base1 (~> 0.22)
@@ -143,7 +150,7 @@ PATH
143
150
  PATH
144
151
  remote: sub/avm
145
152
  specs:
146
- avm (0.46.0)
153
+ avm (0.47.0)
147
154
  eac_cli (~> 0.28)
148
155
  eac_config (~> 0.11, >= 0.11.1)
149
156
  eac_docker (~> 0.5)
@@ -358,6 +365,7 @@ DEPENDENCIES
358
365
  avm-eac_asciidoctor_base0!
359
366
  avm-eac_generic_base0!
360
367
  avm-eac_latex_base0!
368
+ avm-eac_php_base0!
361
369
  avm-eac_rails_base0!
362
370
  avm-eac_rails_base1!
363
371
  avm-eac_redmine_base0!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.35.0'
4
+ VERSION = '0.36.0'
5
5
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ module Errors
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ module Instances
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ module Paths
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -1,13 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'eac_ruby_utils/core_ext'
4
+
3
5
  module Avm
4
6
  module Launcher
5
7
  class Project
6
- attr_reader :name, :instances
7
-
8
- def initialize(name, instances)
9
- @name = name
10
- @instances = instances.to_a
8
+ common_constructor :name, :instances do
9
+ self.instances = instances.to_a
11
10
  end
12
11
 
13
12
  def to_s
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ module Paths
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Launcher
7
+ require_sub __FILE__
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.46.0'
4
+ VERSION = '0.47.0'
5
5
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+
5
+ require 'avm/eac_php_base0/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'avm-eac_php_base0'
9
+ s.version = Avm::EacPhpBase0::VERSION
10
+ s.authors = ['Eduardo H. Bogoni']
11
+ s.summary = 'AVM stereotype for PHP applications.'
12
+
13
+ s.files = Dir['{lib,locale,template}/**/*']
14
+
15
+ s.add_dependency 'eac_ruby_utils', '~> 0.104'
16
+
17
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5', '>= 0.5.1'
18
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Avm
4
+ module EacPhpBase0
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacPhpBase0
7
+ require_sub __FILE__
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -42,8 +42,9 @@ module Avm
42
42
  instance.source_instance.read_entry(::Avm::Instances::EntryKeys::INSTALL_PATH)
43
43
  end
44
44
 
45
+ # @return [EacGit::Local]
45
46
  def git_uncached
46
- ::Avm::Launcher::Git::Base.new(git_repository_path)
47
+ instance.application.local_source.scm.git_repo
47
48
  end
48
49
 
49
50
  def instance_branch
@@ -5,7 +5,6 @@ require 'avm/entries/jobs/base'
5
5
  require 'avm/git'
6
6
  require 'eac_ruby_utils/core_ext'
7
7
  require 'eac_templates/core_ext'
8
- require 'avm/launcher/git/base'
9
8
  require 'net/http'
10
9
 
11
10
  module Avm
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.9.1'
5
+ VERSION = '0.9.2'
6
6
  end
7
7
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.authors = ['Esquilo Azul Company']
11
11
  s.summary = 'Tools for AVM.'
12
12
 
13
- s.files = Dir['{exe,lib,locale,template,sub}/**/*', 'Gemfile']
13
+ s.files = Dir['{exe,lib,template,sub}/**/*', 'Gemfile']
14
14
  s.bindir = 'exe'
15
15
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
16
16
 
@@ -1,20 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/projects/stereotype'
4
3
  require 'eac_ruby_utils/core_ext'
5
4
 
6
5
  module Avm
7
6
  module Projects
8
7
  module Stereotypes
9
8
  require_sub __FILE__, base: nil
10
-
11
- class << self
12
- def list
13
- @list ||= constants.map { |c| const_get(c) }
14
- .select { |c| c.included_modules.include?(Avm::Projects::Stereotype) }
15
- .freeze
16
- end
17
- end
18
9
  end
19
10
  end
20
11
  end
@@ -1,4 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches'
4
3
  require 'eac_ruby_base0/core_ext'
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/tools/core_ext'
4
+ require 'avm/projects/stereotypes'
4
5
 
5
6
  module Avm
6
7
  module Tools
@@ -48,10 +48,6 @@ module Avm
48
48
  infov " * #{name}", command
49
49
  end
50
50
  end
51
-
52
- def instance
53
- runner_context.call(:instance)
54
- end
55
51
  end
56
52
  end
57
53
  end
@@ -65,7 +65,7 @@ module Avm
65
65
  end
66
66
 
67
67
  def start_banner
68
- runner_context.call(:instance_banner)
68
+ runner_context.call(:source_banner)
69
69
  infov 'Selected units', test_performer.units.count
70
70
  end
71
71
 
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/sources/runner'
4
- require 'avm/tools/source'
5
4
  require 'eac_cli/core_ext'
6
5
 
7
6
  module Avm
@@ -10,20 +9,9 @@ module Avm
10
9
  class Source < ::Avm::Sources::Runner
11
10
  require_sub __FILE__
12
11
 
13
- def instance_banner
14
- infov 'Instance', instance
15
- infov 'Stereotypes', instance.stereotypes.map(&:label).join(', ')
16
- end
17
-
18
12
  def subject
19
13
  source
20
14
  end
21
-
22
- private
23
-
24
- def instance_uncached
25
- ::Avm::Tools::Source.new(source_path)
26
- end
27
15
  end
28
16
  end
29
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.139.0'
5
+ VERSION = '0.140.0'
6
6
  end
7
7
  end
@@ -23,14 +23,14 @@ RSpec.describe ::Avm::Launcher::Context do
23
23
  @repos = init_remote('mylib_repos')
24
24
 
25
25
  wc = init_git('mylib_wc')
26
- touch_commit(wc, 'init.rb')
26
+ touch_commit(wc, 'app.gemspec')
27
27
  wc.execute!('remote', 'add', 'origin', @repos)
28
28
  wc.execute!('push', 'origin', 'master')
29
29
  end
30
30
 
31
31
  it 'recovers recursive subinstance GitSubrepo' do
32
32
  app = init_git('app')
33
- touch_commit(app, 'sub1/init.rb')
33
+ touch_commit(app, 'sub1/app.gemspec')
34
34
  app.execute!('subrepo', 'clone', @repos, 'sub1/mylib')
35
35
  sub = described_class.current.instance('/app/sub1')
36
36
  expect(sub).to be_a(::Avm::Launcher::Instances::Base)
@@ -44,7 +44,7 @@ RSpec.describe ::Avm::Launcher::Context do
44
44
 
45
45
  it 'recovers recursive subinstance GitSubtree' do
46
46
  app = init_git('app')
47
- touch_commit(app, 'sub1/init.rb')
47
+ touch_commit(app, 'sub1/app.gemspec')
48
48
  app.execute!('subtree', 'add', '-P', 'sub1/mylib', @repos, 'master')
49
49
  app.execute!('remote', 'add', 'mylib', @repos)
50
50
  sub = described_class.current.instance('/app/sub1')
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.35.0
4
+ version: 0.36.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: 2022-10-09 00:00:00.000000000 Z
11
+ date: 2022-10-11 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.46'
19
+ version: '0.47'
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.46'
26
+ version: '0.47'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_asciidoctor_base0
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -78,6 +78,20 @@ dependencies:
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
80
  version: 0.2.1
81
+ - !ruby/object:Gem::Dependency
82
+ name: avm-eac_php_base0
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.1'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '0.1'
81
95
  - !ruby/object:Gem::Dependency
82
96
  name: avm-eac_rails_base0
83
97
  requirement: !ruby/object:Gem::Requirement
@@ -163,7 +177,7 @@ dependencies:
163
177
  version: '0.9'
164
178
  - - ">="
165
179
  - !ruby/object:Gem::Version
166
- version: 0.9.1
180
+ version: 0.9.2
167
181
  type: :runtime
168
182
  prerelease: false
169
183
  version_requirements: !ruby/object:Gem::Requirement
@@ -173,7 +187,7 @@ dependencies:
173
187
  version: '0.9'
174
188
  - - ">="
175
189
  - !ruby/object:Gem::Version
176
- version: 0.9.1
190
+ version: 0.9.2
177
191
  - !ruby/object:Gem::Dependency
178
192
  name: avm-eac_wordpress_base0
179
193
  requirement: !ruby/object:Gem::Requirement
@@ -200,14 +214,14 @@ dependencies:
200
214
  requirements:
201
215
  - - "~>"
202
216
  - !ruby/object:Gem::Version
203
- version: '0.139'
217
+ version: '0.140'
204
218
  type: :runtime
205
219
  prerelease: false
206
220
  version_requirements: !ruby/object:Gem::Requirement
207
221
  requirements:
208
222
  - - "~>"
209
223
  - !ruby/object:Gem::Version
210
- version: '0.139'
224
+ version: '0.140'
211
225
  - !ruby/object:Gem::Dependency
212
226
  name: eac_ruby_utils
213
227
  requirement: !ruby/object:Gem::Requirement
@@ -315,6 +329,12 @@ files:
315
329
  - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/source_code.tex
316
330
  - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/source_code/java.tex
317
331
  - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/utils.tex
332
+ - sub/avm-eac_php_base0/Gemfile
333
+ - sub/avm-eac_php_base0/avm-eac_php_base0.gemspec
334
+ - sub/avm-eac_php_base0/lib/avm/eac_php_base0.rb
335
+ - sub/avm-eac_php_base0/lib/avm/eac_php_base0/version.rb
336
+ - sub/avm-eac_php_base0/spec/rubocop_spec.rb
337
+ - sub/avm-eac_php_base0/spec/spec_helper.rb
318
338
  - sub/avm-eac_rails_base0/Gemfile
319
339
  - sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec
320
340
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0.rb
@@ -708,19 +728,12 @@ files:
708
728
  - sub/avm-tools/lib/avm/launcher/git/remote.rb
709
729
  - sub/avm-tools/lib/avm/launcher/git/sub_warp_base.rb
710
730
  - sub/avm-tools/lib/avm/launcher/git/warp_base.rb
711
- - sub/avm-tools/lib/avm/launcher/instances.rb
712
- - sub/avm-tools/lib/avm/launcher/paths.rb
713
- - sub/avm-tools/lib/avm/launcher/project.rb
714
- - sub/avm-tools/lib/avm/launcher/publish.rb
715
731
  - sub/avm-tools/lib/avm/launcher/ruby.rb
716
732
  - sub/avm-tools/lib/avm/launcher/ruby/gem.rb
717
733
  - sub/avm-tools/lib/avm/launcher/ruby/gem/build.rb
718
734
  - sub/avm-tools/lib/avm/launcher/ruby/gem/specification.rb
719
- - sub/avm-tools/lib/avm/patches.rb
720
- - sub/avm-tools/lib/avm/patches/i18n.rb
721
735
  - sub/avm-tools/lib/avm/projects.rb
722
736
  - sub/avm-tools/lib/avm/projects/stereotype.rb
723
- - sub/avm-tools/lib/avm/projects/stereotype/job_comparator.rb
724
737
  - sub/avm-tools/lib/avm/projects/stereotypes.rb
725
738
  - sub/avm-tools/lib/avm/projects/stereotypes/git.rb
726
739
  - sub/avm-tools/lib/avm/projects/stereotypes/git/local_project_mixin.rb
@@ -732,13 +745,9 @@ files:
732
745
  - sub/avm-tools/lib/avm/projects/stereotypes/git_subtree.rb
733
746
  - sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/publish.rb
734
747
  - sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/warp.rb
735
- - sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb
736
- - sub/avm-tools/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb
737
- - sub/avm-tools/lib/avm/projects/stereotypes/redmine_plugin.rb
738
748
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
739
749
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
740
750
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem/publish.rb
741
- - sub/avm-tools/lib/avm/stereotypes.rb
742
751
  - sub/avm-tools/lib/avm/tools.rb
743
752
  - sub/avm-tools/lib/avm/tools/core_ext.rb
744
753
  - sub/avm-tools/lib/avm/tools/runner.rb
@@ -780,10 +789,7 @@ files:
780
789
  - sub/avm-tools/lib/avm/tools/runner/source/version_bump.rb
781
790
  - sub/avm-tools/lib/avm/tools/runner/source_generate.rb
782
791
  - sub/avm-tools/lib/avm/tools/self.rb
783
- - sub/avm-tools/lib/avm/tools/source.rb
784
792
  - sub/avm-tools/lib/avm/tools/version.rb
785
- - sub/avm-tools/locale/en.yml
786
- - sub/avm-tools/locale/pt-BR.yml
787
793
  - sub/avm-tools/spec/dummy/avm-tools_stub/avm-tools.gemspec
788
794
  - sub/avm-tools/spec/dummy/avm-tools_stub/lib/avm/tools.rb
789
795
  - sub/avm-tools/spec/dummy/avm-tools_stub/lib/avm/tools/version.rb
@@ -907,6 +913,7 @@ files:
907
913
  - sub/avm/lib/avm/instances/docker_image.rb
908
914
  - sub/avm/lib/avm/instances/entry_keys.rb
909
915
  - sub/avm/lib/avm/instances/runner.rb
916
+ - sub/avm/lib/avm/launcher.rb
910
917
  - sub/avm/lib/avm/launcher/context.rb
911
918
  - sub/avm/lib/avm/launcher/context/instance_collector.rb
912
919
  - sub/avm/lib/avm/launcher/context/instance_discovery.rb
@@ -914,15 +921,20 @@ files:
914
921
  - sub/avm/lib/avm/launcher/context/instance_manager/cached_instance.rb
915
922
  - sub/avm/lib/avm/launcher/context/instance_manager/cached_instances.rb
916
923
  - sub/avm/lib/avm/launcher/context/settings.rb
924
+ - sub/avm/lib/avm/launcher/errors.rb
917
925
  - sub/avm/lib/avm/launcher/errors/base.rb
918
926
  - sub/avm/lib/avm/launcher/errors/non_project.rb
927
+ - sub/avm/lib/avm/launcher/instances.rb
919
928
  - sub/avm/lib/avm/launcher/instances/base.rb
920
929
  - sub/avm/lib/avm/launcher/instances/base/cache.rb
921
930
  - sub/avm/lib/avm/launcher/instances/error.rb
922
931
  - sub/avm/lib/avm/launcher/instances/runner_helper.rb
923
932
  - sub/avm/lib/avm/launcher/instances/settings.rb
933
+ - sub/avm/lib/avm/launcher/paths.rb
924
934
  - sub/avm/lib/avm/launcher/paths/logical.rb
925
935
  - sub/avm/lib/avm/launcher/paths/real.rb
936
+ - sub/avm/lib/avm/launcher/project.rb
937
+ - sub/avm/lib/avm/launcher/publish.rb
926
938
  - sub/avm/lib/avm/launcher/publish/base.rb
927
939
  - sub/avm/lib/avm/launcher/publish/check_result.rb
928
940
  - sub/avm/lib/avm/path_string.rb
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/launcher/errors/base'
4
- require 'avm/launcher/instances/base'
5
- require 'avm/launcher/instances/runner_helper'
6
- require 'avm/launcher/instances/settings'
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/launcher/paths/logical'
4
- require 'avm/launcher/paths/real'
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/launcher/publish/base'
4
- require 'avm/launcher/publish/check_result'
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/tools/self'
4
- require 'i18n'
5
-
6
- module Avm
7
- module Patches
8
- module I18n
9
- class << self
10
- def setup_i18n
11
- ::I18n.load_path += locale_files_paths.map(&:to_path)
12
- end
13
-
14
- def locale_files_paths
15
- ::Avm::Tools::Self.root.join('locale').glob('*.yml')
16
- end
17
- end
18
- end
19
- end
20
- end
21
-
22
- ::Avm::Patches::I18n.setup_i18n
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
5
-
6
- module Avm
7
- module Patches
8
- end
9
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module Projects
7
- module Stereotype
8
- class JobComparator
9
- common_constructor :job1, :job2
10
-
11
- def result
12
- return -1 if run_before?(job1, job2)
13
- return 1 if run_before?(job2, job1)
14
-
15
- job1.object_id <=> job2.class.name
16
- end
17
-
18
- private
19
-
20
- def run_before?(a_job, other_job)
21
- return false unless a_job.respond_to?(:run_before)
22
-
23
- a_job.run_before.map(&:to_sym).include?(job_stereotype_key(other_job))
24
- end
25
-
26
- def job_stereotype_key(job)
27
- job.class.name.split('::')[0..-2].join('::').demodulize.variableize.to_sym
28
- end
29
- end
30
- end
31
- end
32
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/projects/stereotypes/ruby_gem/local_project_mixin'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module Avm
7
- module Projects
8
- module Stereotypes
9
- class RailsApplication
10
- module LocalProjectMixin
11
- common_concern do
12
- include ::Avm::Projects::Stereotypes::RubyGem::LocalProjectMixin
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/projects/stereotype'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module Avm
7
- module Projects
8
- module Stereotypes
9
- class RailsApplication
10
- require_sub __FILE__
11
- include Avm::Projects::Stereotype
12
-
13
- class << self
14
- def match?(path)
15
- File.exist?(path.real.subpath('config.ru')) && path.real.basename != 'dummy'
16
- end
17
-
18
- def color
19
- :magenta
20
- end
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/projects/stereotype'
4
-
5
- module Avm
6
- module Projects
7
- module Stereotypes
8
- class RedminePlugin
9
- include Avm::Projects::Stereotype
10
-
11
- class << self
12
- def match?(path)
13
- File.exist?(path.real.subpath('init.rb'))
14
- end
15
-
16
- def color
17
- :light_magenta
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
5
-
6
- module Avm
7
- module Stereotypes
8
- end
9
- end
@@ -1,64 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/registry'
4
- require 'avm/sources/configuration'
5
- require 'avm/launcher/paths/real'
6
- require 'avm/projects/stereotype/job_comparator'
7
- require 'eac_ruby_utils/core_ext'
8
- require 'avm/projects/stereotypes'
9
- require 'i18n'
10
-
11
- module Avm
12
- module Tools
13
- class Source
14
- enable_simple_cache
15
- common_constructor :path do
16
- self.path = path.to_pathname
17
- source_stereotypes_mixins
18
- end
19
-
20
- delegate :configuration, to: :avm_instance
21
- delegate :to_s, to: :path
22
-
23
- def locale
24
- configuration.if_present(&:locale) || ::I18n.default_locale
25
- end
26
-
27
- # Backward compatibility with [Avm::Launcher::Paths::Logical].
28
- # @return [Avm::Launcher::Paths::Real].
29
- def real
30
- ::Avm::Launcher::Paths::Real.new(path.to_path)
31
- end
32
-
33
- def run_job(job, job_args = [])
34
- stereotypes_jobs(job, job_args).each(&:run)
35
- end
36
-
37
- private
38
-
39
- def avm_instance_uncached
40
- ::Avm::Registry.sources.detect(path)
41
- end
42
-
43
- def stereotypes_jobs(job, job_args)
44
- job_class_method = "#{job}_class"
45
- r = []
46
- stereotypes.each do |stereotype|
47
- r << stereotype.send(job_class_method).new(self, *job_args) if
48
- stereotype.send(job_class_method).present?
49
- end
50
- r.sort { |a, b| ::Avm::Projects::Stereotype::JobComparator.new(a, b).result }
51
- end
52
-
53
- def stereotypes_uncached
54
- ::Avm::Projects::Stereotypes.list.select { |s| s.match?(self) }
55
- end
56
-
57
- def source_stereotypes_mixins
58
- stereotypes.each do |s|
59
- s.local_project_mixin_module.if_present { |v| singleton_class.include(v) }
60
- end
61
- end
62
- end
63
- end
64
- end
@@ -1,7 +0,0 @@
1
- en:
2
- avm:
3
- projects:
4
- stereotypes:
5
- ruby_gem:
6
- version_bump:
7
- git_commit_message: Bump to '%{version}'.
@@ -1,7 +0,0 @@
1
- pt-BR:
2
- avm:
3
- projects:
4
- stereotypes:
5
- ruby_gem:
6
- version_bump:
7
- git_commit_message: Versão para '%{version}'.