eac_tools 0.35.0 → 0.36.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -0
  3. data/Gemfile.lock +23 -15
  4. data/lib/eac_tools/version.rb +1 -1
  5. data/sub/avm/lib/avm/launcher/errors.rb +11 -0
  6. data/sub/avm/lib/avm/launcher/instances.rb +11 -0
  7. data/sub/avm/lib/avm/launcher/paths/logical.rb +2 -1
  8. data/sub/avm/lib/avm/launcher/paths.rb +11 -0
  9. data/sub/{avm-tools → avm}/lib/avm/launcher/project.rb +4 -5
  10. data/sub/avm/lib/avm/launcher/publish.rb +11 -0
  11. data/sub/{avm-tools/lib/avm/projects → avm/lib/avm/launcher}/stereotype.rb +1 -1
  12. data/sub/avm/lib/avm/launcher.rb +9 -0
  13. data/sub/avm/lib/avm/version.rb +1 -1
  14. data/sub/avm-eac_php_base0/Gemfile +8 -0
  15. data/sub/avm-eac_php_base0/avm-eac_php_base0.gemspec +18 -0
  16. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0/version.rb +7 -0
  17. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0.rb +9 -0
  18. data/sub/avm-eac_php_base0/spec/rubocop_spec.rb +3 -0
  19. data/sub/avm-eac_php_base0/spec/spec_helper.rb +4 -0
  20. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +1 -1
  21. data/sub/{avm-tools/lib/avm/launcher/ruby → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher}/gem/build.rb +4 -4
  22. data/sub/{avm-tools/lib/avm/launcher/ruby → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher}/gem/specification.rb +2 -2
  23. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb +13 -0
  24. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb +11 -0
  25. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  26. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/git_info.rb +2 -1
  27. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy.rb +0 -1
  28. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  29. data/sub/avm-git/avm-git.gemspec +1 -1
  30. data/sub/avm-git/lib/avm/git/issue/complete.rb +1 -1
  31. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/class_methods.rb +3 -3
  32. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/dirty_files.rb +2 -2
  33. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/remotes.rb +5 -5
  34. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/subrepo.rb +2 -2
  35. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/underlying.rb +2 -2
  36. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base.rb +9 -9
  37. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/error.rb +2 -2
  38. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/mirror_update.rb +5 -5
  39. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/publish_base.rb +4 -4
  40. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/remote.rb +2 -2
  41. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/sub_warp_base.rb +4 -4
  42. data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/warp_base.rb +6 -6
  43. data/sub/avm-git/lib/avm/git/launcher.rb +7 -0
  44. data/sub/avm-git/lib/avm/git/organize/repository.rb +1 -0
  45. data/sub/avm-git/lib/avm/git/version.rb +1 -1
  46. data/sub/avm-tools/avm-tools.gemspec +4 -4
  47. data/sub/avm-tools/lib/avm/projects/stereotypes/git/publish.rb +2 -2
  48. data/sub/avm-tools/lib/avm/projects/stereotypes/git/warp.rb +2 -2
  49. data/sub/avm-tools/lib/avm/projects/stereotypes/git.rb +2 -2
  50. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo/publish.rb +2 -2
  51. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo/warp.rb +7 -7
  52. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo.rb +4 -4
  53. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/publish.rb +2 -2
  54. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/warp.rb +4 -4
  55. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subtree.rb +3 -3
  56. data/sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem/publish.rb +2 -2
  57. data/sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb +4 -4
  58. data/sub/avm-tools/lib/avm/projects/stereotypes.rb +0 -9
  59. data/sub/avm-tools/lib/avm/tools/core_ext.rb +0 -1
  60. data/sub/avm-tools/lib/avm/tools/runner/files/format.rb +2 -2
  61. data/sub/avm-tools/lib/avm/tools/runner/git/commit.rb +2 -2
  62. data/sub/avm-tools/lib/avm/tools/runner/git/deploy.rb +2 -2
  63. data/sub/avm-tools/lib/avm/tools/runner/git.rb +2 -2
  64. data/sub/avm-tools/lib/avm/tools/runner/launcher.rb +1 -0
  65. data/sub/avm-tools/lib/avm/tools/runner/source/info.rb +0 -4
  66. data/sub/avm-tools/lib/avm/tools/runner/source/test.rb +1 -1
  67. data/sub/avm-tools/lib/avm/tools/runner/source.rb +0 -12
  68. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  69. data/sub/avm-tools/spec/lib/avm/launcher/context_spec.rb +50 -36
  70. data/sub/avm-tools/spec/lib/avm/launcher/git/base_spec.rb +2 -2
  71. data/sub/avm-tools/spec/lib/avm/launcher/ruby/gem/build_spec.rb +2 -2
  72. data/sub/avm-tools/spec/lib/avm/launcher/ruby/gem/specification_spec.rb +1 -1
  73. data/sub/avm-tools/spec/lib/avm/projects/stereotypes/git_subrepo/warp_spec.rb +1 -1
  74. data/sub/avm-tools/spec/lib/avm/tools/runner/source/issue/complete_spec.rb +2 -2
  75. data/sub/avm-tools/spec/spec_helper/eac_launcher.rb +4 -4
  76. metadata +54 -42
  77. data/sub/avm-tools/lib/avm/launcher/git.rb +0 -7
  78. data/sub/avm-tools/lib/avm/launcher/instances.rb +0 -6
  79. data/sub/avm-tools/lib/avm/launcher/paths.rb +0 -4
  80. data/sub/avm-tools/lib/avm/launcher/publish.rb +0 -4
  81. data/sub/avm-tools/lib/avm/launcher/ruby/gem.rb +0 -4
  82. data/sub/avm-tools/lib/avm/launcher/ruby.rb +0 -3
  83. data/sub/avm-tools/lib/avm/patches/i18n.rb +0 -22
  84. data/sub/avm-tools/lib/avm/patches.rb +0 -9
  85. data/sub/avm-tools/lib/avm/projects/stereotype/job_comparator.rb +0 -32
  86. data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb +0 -18
  87. data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb +0 -25
  88. data/sub/avm-tools/lib/avm/projects/stereotypes/redmine_plugin.rb +0 -23
  89. data/sub/avm-tools/lib/avm/stereotypes.rb +0 -9
  90. data/sub/avm-tools/lib/avm/tools/source.rb +0 -64
  91. data/sub/avm-tools/locale/en.yml +0 -7
  92. data/sub/avm-tools/locale/pt-BR.yml +0 -7
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/base'
3
+ require 'avm/git/launcher/base'
4
4
 
5
- RSpec.describe ::Avm::Launcher::Git::Base do
5
+ RSpec.describe ::Avm::Git::Launcher::Base do
6
6
  context 'new non-bare repository' do
7
7
  let(:repo) do
8
8
  r = described_class.new(::Dir.mktmpdir)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/core_ext/object'
4
- require 'avm/launcher/ruby/gem/build'
4
+ require 'avm/eac_ruby_base1/launcher/gem/build'
5
5
 
6
- RSpec.describe ::Avm::Launcher::Ruby::Gem::Build do
6
+ RSpec.describe ::Avm::EacRubyBase1::Launcher::Gem::Build do
7
7
  describe '#output_file' do
8
8
  let(:gem_dir) { ::File.join(DUMMY_DIR, 'ruby_gem_stub') }
9
9
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- RSpec.describe ::Avm::Launcher::Ruby::Gem::Specification do
3
+ RSpec.describe ::Avm::EacRubyBase1::Launcher::Gem::Specification do
4
4
  let(:gemspec_file) { ::File.join(DUMMY_DIR, 'ruby_gem_stub', 'ruby_gem_stub.gemspec') }
5
5
  let(:instance) { described_class.new(gemspec_file) }
6
6
 
@@ -42,7 +42,7 @@ RSpec.describe Avm::Projects::Stereotypes::GitSubrepo::Warp do
42
42
  expect(instance).to be_a ::Avm::Launcher::Instances::Base
43
43
  warp = instance.warped
44
44
  expect(warp).to be_a ::Avm::Projects::Stereotypes::GitSubrepo::Warp
45
- wgit = ::Avm::Launcher::Git::Base.new(warp)
45
+ wgit = ::Avm::Git::Launcher::Base.new(warp)
46
46
  expect(wgit.rev_parse('HEAD')).to eq master_ref_previous
47
47
  end
48
48
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/launcher/git/base'
3
+ require 'avm/git/launcher/base'
4
4
  require 'avm/tools/runner'
5
5
  require 'tmpdir'
6
6
  require 'fileutils'
@@ -10,7 +10,7 @@ require 'fileutils'
10
10
  let(:issue_ref) { 'issue_123' }
11
11
  let(:remote_repos) { stubbed_git_local_repo(true) }
12
12
  let(:local_repos) { stubbed_git_local_repo }
13
- let(:eac_local_repos) { ::Avm::Launcher::Git::Base.new(local_repos.root_path.to_path) }
13
+ let(:eac_local_repos) { ::Avm::Git::Launcher::Base.new(local_repos.root_path.to_path) }
14
14
 
15
15
  context 'when branch is pushed' do
16
16
  before do
@@ -26,15 +26,15 @@ RSpec.configure do |config|
26
26
  end
27
27
 
28
28
  def init_remote(name)
29
- require 'avm/launcher/git/base'
30
- r = ::Avm::Launcher::Git::Base.new(::File.join(@remotes_dir, name))
29
+ require 'avm/git/launcher/base'
30
+ r = ::Avm::Git::Launcher::Base.new(::File.join(@remotes_dir, name))
31
31
  r.init_bare
32
32
  r
33
33
  end
34
34
 
35
35
  def init_git(subdir)
36
- require 'avm/launcher/git/base'
37
- r = ::Avm::Launcher::Git::Base.new(::File.join(::Avm::Launcher::Context.current.root.real,
36
+ require 'avm/git/launcher/base'
37
+ r = ::Avm::Git::Launcher::Base.new(::File.join(::Avm::Launcher::Context.current.root.real,
38
38
  subdir))
39
39
  r.git
40
40
  r.execute!('config', 'user.email', 'theuser@example.net')
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.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-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.48'
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.48'
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
@@ -146,14 +160,14 @@ dependencies:
146
160
  requirements:
147
161
  - - "~>"
148
162
  - !ruby/object:Gem::Version
149
- version: '0.22'
163
+ version: '0.23'
150
164
  type: :runtime
151
165
  prerelease: false
152
166
  version_requirements: !ruby/object:Gem::Requirement
153
167
  requirements:
154
168
  - - "~>"
155
169
  - !ruby/object:Gem::Version
156
- version: '0.22'
170
+ version: '0.23'
157
171
  - !ruby/object:Gem::Dependency
158
172
  name: avm-eac_webapp_base0
159
173
  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.141'
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.141'
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
@@ -453,6 +473,10 @@ files:
453
473
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb
454
474
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb
455
475
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb
476
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb
477
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb
478
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb
479
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/specification.rb
456
480
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/preferred_version_requirements.rb
457
481
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb
458
482
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
@@ -653,6 +677,19 @@ files:
653
677
  - sub/avm-git/lib/avm/git/issue/complete/validations.rb
654
678
  - sub/avm-git/lib/avm/git/issue/complete/working_tree.rb
655
679
  - sub/avm-git/lib/avm/git/issue/deliver.rb
680
+ - sub/avm-git/lib/avm/git/launcher.rb
681
+ - sub/avm-git/lib/avm/git/launcher/base.rb
682
+ - sub/avm-git/lib/avm/git/launcher/base/class_methods.rb
683
+ - sub/avm-git/lib/avm/git/launcher/base/dirty_files.rb
684
+ - sub/avm-git/lib/avm/git/launcher/base/remotes.rb
685
+ - sub/avm-git/lib/avm/git/launcher/base/subrepo.rb
686
+ - sub/avm-git/lib/avm/git/launcher/base/underlying.rb
687
+ - sub/avm-git/lib/avm/git/launcher/error.rb
688
+ - sub/avm-git/lib/avm/git/launcher/mirror_update.rb
689
+ - sub/avm-git/lib/avm/git/launcher/publish_base.rb
690
+ - sub/avm-git/lib/avm/git/launcher/remote.rb
691
+ - sub/avm-git/lib/avm/git/launcher/sub_warp_base.rb
692
+ - sub/avm-git/lib/avm/git/launcher/warp_base.rb
656
693
  - sub/avm-git/lib/avm/git/organize.rb
657
694
  - sub/avm-git/lib/avm/git/organize/reference_update.rb
658
695
  - sub/avm-git/lib/avm/git/organize/repository.rb
@@ -695,32 +732,7 @@ files:
695
732
  - sub/avm-tools/avm-tools.gemspec
696
733
  - sub/avm-tools/exe/avm
697
734
  - sub/avm-tools/lib/avm.rb
698
- - sub/avm-tools/lib/avm/launcher/git.rb
699
- - sub/avm-tools/lib/avm/launcher/git/base.rb
700
- - sub/avm-tools/lib/avm/launcher/git/base/class_methods.rb
701
- - sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
702
- - sub/avm-tools/lib/avm/launcher/git/base/remotes.rb
703
- - sub/avm-tools/lib/avm/launcher/git/base/subrepo.rb
704
- - sub/avm-tools/lib/avm/launcher/git/base/underlying.rb
705
- - sub/avm-tools/lib/avm/launcher/git/error.rb
706
- - sub/avm-tools/lib/avm/launcher/git/mirror_update.rb
707
- - sub/avm-tools/lib/avm/launcher/git/publish_base.rb
708
- - sub/avm-tools/lib/avm/launcher/git/remote.rb
709
- - sub/avm-tools/lib/avm/launcher/git/sub_warp_base.rb
710
- - 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
- - sub/avm-tools/lib/avm/launcher/ruby.rb
716
- - sub/avm-tools/lib/avm/launcher/ruby/gem.rb
717
- - sub/avm-tools/lib/avm/launcher/ruby/gem/build.rb
718
- - 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
- - sub/avm-tools/lib/avm/projects/stereotype.rb
723
- - sub/avm-tools/lib/avm/projects/stereotype/job_comparator.rb
724
736
  - sub/avm-tools/lib/avm/projects/stereotypes.rb
725
737
  - sub/avm-tools/lib/avm/projects/stereotypes/git.rb
726
738
  - sub/avm-tools/lib/avm/projects/stereotypes/git/local_project_mixin.rb
@@ -732,13 +744,9 @@ files:
732
744
  - sub/avm-tools/lib/avm/projects/stereotypes/git_subtree.rb
733
745
  - sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/publish.rb
734
746
  - 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
747
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
739
748
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
740
749
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem/publish.rb
741
- - sub/avm-tools/lib/avm/stereotypes.rb
742
750
  - sub/avm-tools/lib/avm/tools.rb
743
751
  - sub/avm-tools/lib/avm/tools/core_ext.rb
744
752
  - sub/avm-tools/lib/avm/tools/runner.rb
@@ -780,10 +788,7 @@ files:
780
788
  - sub/avm-tools/lib/avm/tools/runner/source/version_bump.rb
781
789
  - sub/avm-tools/lib/avm/tools/runner/source_generate.rb
782
790
  - sub/avm-tools/lib/avm/tools/self.rb
783
- - sub/avm-tools/lib/avm/tools/source.rb
784
791
  - sub/avm-tools/lib/avm/tools/version.rb
785
- - sub/avm-tools/locale/en.yml
786
- - sub/avm-tools/locale/pt-BR.yml
787
792
  - sub/avm-tools/spec/dummy/avm-tools_stub/avm-tools.gemspec
788
793
  - sub/avm-tools/spec/dummy/avm-tools_stub/lib/avm/tools.rb
789
794
  - sub/avm-tools/spec/dummy/avm-tools_stub/lib/avm/tools/version.rb
@@ -907,6 +912,7 @@ files:
907
912
  - sub/avm/lib/avm/instances/docker_image.rb
908
913
  - sub/avm/lib/avm/instances/entry_keys.rb
909
914
  - sub/avm/lib/avm/instances/runner.rb
915
+ - sub/avm/lib/avm/launcher.rb
910
916
  - sub/avm/lib/avm/launcher/context.rb
911
917
  - sub/avm/lib/avm/launcher/context/instance_collector.rb
912
918
  - sub/avm/lib/avm/launcher/context/instance_discovery.rb
@@ -914,17 +920,23 @@ files:
914
920
  - sub/avm/lib/avm/launcher/context/instance_manager/cached_instance.rb
915
921
  - sub/avm/lib/avm/launcher/context/instance_manager/cached_instances.rb
916
922
  - sub/avm/lib/avm/launcher/context/settings.rb
923
+ - sub/avm/lib/avm/launcher/errors.rb
917
924
  - sub/avm/lib/avm/launcher/errors/base.rb
918
925
  - sub/avm/lib/avm/launcher/errors/non_project.rb
926
+ - sub/avm/lib/avm/launcher/instances.rb
919
927
  - sub/avm/lib/avm/launcher/instances/base.rb
920
928
  - sub/avm/lib/avm/launcher/instances/base/cache.rb
921
929
  - sub/avm/lib/avm/launcher/instances/error.rb
922
930
  - sub/avm/lib/avm/launcher/instances/runner_helper.rb
923
931
  - sub/avm/lib/avm/launcher/instances/settings.rb
932
+ - sub/avm/lib/avm/launcher/paths.rb
924
933
  - sub/avm/lib/avm/launcher/paths/logical.rb
925
934
  - sub/avm/lib/avm/launcher/paths/real.rb
935
+ - sub/avm/lib/avm/launcher/project.rb
936
+ - sub/avm/lib/avm/launcher/publish.rb
926
937
  - sub/avm/lib/avm/launcher/publish/base.rb
927
938
  - sub/avm/lib/avm/launcher/publish/check_result.rb
939
+ - sub/avm/lib/avm/launcher/stereotype.rb
928
940
  - sub/avm/lib/avm/path_string.rb
929
941
  - sub/avm/lib/avm/registry.rb
930
942
  - sub/avm/lib/avm/registry/application_stereotypes.rb
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/launcher/git/base'
4
- require 'avm/launcher/git/error'
5
- require 'avm/launcher/git/mirror_update'
6
- require 'avm/launcher/git/publish_base'
7
- require 'avm/launcher/git/warp_base'
@@ -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,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/launcher/ruby/gem/build'
4
- require 'avm/launcher/ruby/gem/specification'
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/launcher/ruby/gem'
@@ -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}'.