eac_tools 0.34.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +32 -18
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/avm.gemspec +1 -1
  5. data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_collector.rb +0 -0
  6. data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_discovery.rb +0 -0
  7. data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager/cached_instance.rb +0 -0
  8. data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager/cached_instances.rb +0 -0
  9. data/sub/{avm-tools → avm}/lib/avm/launcher/context/instance_manager.rb +0 -0
  10. data/sub/{avm-tools → avm}/lib/avm/launcher/context/settings.rb +0 -0
  11. data/sub/{avm-tools → avm}/lib/avm/launcher/context.rb +0 -0
  12. data/sub/avm/lib/avm/launcher/errors.rb +11 -0
  13. data/sub/{avm-tools → avm}/lib/avm/launcher/instances/base/cache.rb +0 -0
  14. data/sub/{avm-tools → avm}/lib/avm/launcher/instances/base.rb +0 -0
  15. data/sub/{avm-tools → avm}/lib/avm/launcher/instances/error.rb +0 -0
  16. data/sub/{avm-tools → avm}/lib/avm/launcher/instances/runner_helper.rb +0 -0
  17. data/sub/{avm-tools → avm}/lib/avm/launcher/instances/settings.rb +0 -0
  18. data/sub/avm/lib/avm/launcher/instances.rb +11 -0
  19. data/sub/{avm-tools → avm}/lib/avm/launcher/paths/logical.rb +0 -0
  20. data/sub/avm/lib/avm/launcher/paths.rb +11 -0
  21. data/sub/{avm-tools → avm}/lib/avm/launcher/project.rb +4 -5
  22. data/sub/{avm-tools → avm}/lib/avm/launcher/publish/base.rb +2 -5
  23. data/sub/avm/lib/avm/launcher/publish.rb +11 -0
  24. data/sub/avm/lib/avm/launcher.rb +9 -0
  25. data/sub/avm/lib/avm/registry.rb +0 -2
  26. data/sub/avm/lib/avm/version.rb +1 -1
  27. data/sub/avm-eac_php_base0/Gemfile +8 -0
  28. data/sub/avm-eac_php_base0/avm-eac_php_base0.gemspec +18 -0
  29. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0/version.rb +7 -0
  30. data/sub/avm-eac_php_base0/lib/avm/eac_php_base0.rb +9 -0
  31. data/sub/avm-eac_php_base0/spec/rubocop_spec.rb +3 -0
  32. data/sub/avm-eac_php_base0/spec/spec_helper.rb +4 -0
  33. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +1 -1
  34. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/apache_host.rb +2 -1
  35. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy/git_info.rb +2 -1
  36. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy.rb +0 -1
  37. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  38. data/sub/avm-git/Gemfile +8 -0
  39. data/sub/avm-git/avm-git.gemspec +22 -0
  40. data/sub/avm-git/lib/avm/git/auto_commit/commit_info.rb +23 -0
  41. data/sub/avm-git/lib/avm/git/auto_commit/rules/base.rb +39 -0
  42. data/sub/avm-git/lib/avm/git/auto_commit/rules/last.rb +19 -0
  43. data/sub/avm-git/lib/avm/git/auto_commit/rules/manual.rb +45 -0
  44. data/sub/avm-git/lib/avm/git/auto_commit/rules/new.rb +24 -0
  45. data/sub/avm-git/lib/avm/git/auto_commit/rules/nth.rb +31 -0
  46. data/sub/avm-git/lib/avm/git/auto_commit/rules/unique.rb +21 -0
  47. data/sub/avm-git/lib/avm/git/auto_commit/rules.rb +31 -0
  48. data/sub/avm-git/lib/avm/git/auto_commit_path/ruby.rb +20 -0
  49. data/sub/avm-git/lib/avm/git/auto_commit_path.rb +28 -0
  50. data/sub/avm-git/lib/avm/git/commit/class_methods.rb +31 -0
  51. data/sub/avm-git/lib/avm/git/commit/deploy.rb +38 -0
  52. data/sub/avm-git/lib/avm/git/commit/deploy_methods.rb +19 -0
  53. data/sub/avm-git/lib/avm/git/commit/diff_tree_line.rb +32 -0
  54. data/sub/avm-git/lib/avm/git/commit/file.rb +46 -0
  55. data/sub/avm-git/lib/avm/git/commit.rb +59 -0
  56. data/sub/avm-git/lib/avm/git/file_auto_fixup.rb +83 -0
  57. data/sub/avm-git/lib/avm/git/issue/complete/commits.rb +42 -0
  58. data/sub/avm-git/lib/avm/git/issue/complete/git_subrepos.rb +23 -0
  59. data/sub/avm-git/lib/avm/git/issue/complete/local_branch.rb +61 -0
  60. data/sub/avm-git/lib/avm/git/issue/complete/local_tag.rb +39 -0
  61. data/sub/avm-git/lib/avm/git/issue/complete/push.rb +60 -0
  62. data/sub/avm-git/lib/avm/git/issue/complete/remote.rb +33 -0
  63. data/sub/avm-git/lib/avm/git/issue/complete/test.rb +40 -0
  64. data/sub/avm-git/lib/avm/git/issue/complete/tracker.rb +28 -0
  65. data/sub/avm-git/lib/avm/git/issue/complete/validation.rb +39 -0
  66. data/sub/avm-git/lib/avm/git/issue/complete/validations.rb +53 -0
  67. data/sub/avm-git/lib/avm/git/issue/complete/working_tree.rb +19 -0
  68. data/sub/avm-git/lib/avm/git/issue/complete.rb +66 -0
  69. data/sub/avm-git/lib/avm/git/issue/deliver.rb +56 -0
  70. data/sub/{avm-tools/lib/avm/patches.rb → avm-git/lib/avm/git/issue.rb} +3 -1
  71. data/sub/avm-git/lib/avm/git/organize/reference_update.rb +34 -0
  72. data/sub/avm-git/lib/avm/git/organize/repository.rb +76 -0
  73. data/sub/avm-git/lib/avm/git/organize.rb +11 -0
  74. data/sub/avm-git/lib/avm/git/revision_test.rb +105 -0
  75. data/sub/avm-git/lib/avm/git/scms/git/change_tracker.rb +35 -0
  76. data/sub/avm-git/lib/avm/git/scms/git/commit.rb +55 -0
  77. data/sub/avm-git/lib/avm/git/scms/git.rb +73 -0
  78. data/sub/avm-git/lib/avm/git/scms/git_subrepo.rb +39 -0
  79. data/sub/avm-git/lib/avm/git/scms/provider.rb +19 -0
  80. data/sub/avm-git/lib/avm/git/scms.rb +11 -0
  81. data/sub/avm-git/lib/avm/git/subrepo_check/parent.rb +51 -0
  82. data/sub/avm-git/lib/avm/git/subrepo_check/remote.rb +89 -0
  83. data/sub/avm-git/lib/avm/git/subrepo_check/show_result.rb +32 -0
  84. data/sub/avm-git/lib/avm/git/subrepo_check.rb +38 -0
  85. data/sub/avm-git/lib/avm/git/subrepo_checks.rb +59 -0
  86. data/sub/{avm-tools/lib/avm/launcher → avm-git/lib/avm/git}/vendor/github.rb +1 -1
  87. data/sub/avm-git/lib/avm/git/vendor.rb +11 -0
  88. data/sub/avm-git/lib/avm/git/version.rb +7 -0
  89. data/sub/avm-git/lib/avm/git.rb +11 -0
  90. data/sub/avm-git/spec/lib/avm/git/auto_commit_path_spec.rb +21 -0
  91. data/sub/avm-git/spec/lib/avm/git/commit/deploy_spec.rb +93 -0
  92. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb +13 -0
  93. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +1 -0
  94. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +7 -0
  95. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +1 -0
  96. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +7 -0
  97. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +1 -0
  98. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +7 -0
  99. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +2 -0
  100. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +13 -0
  101. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +2 -0
  102. data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +13 -0
  103. data/sub/avm-git/spec/lib/avm/git/commit_spec.rb +56 -0
  104. data/sub/avm-git/spec/lib/avm/git/scms/git_spec.rb +8 -0
  105. data/sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +8 -0
  106. data/sub/{avm-tools/spec/lib/avm/launcher → avm-git/spec/lib/avm/git}/vendor/github_spec.rb +4 -4
  107. data/sub/avm-git/spec/rubocop_spec.rb +3 -0
  108. data/sub/avm-git/spec/spec_helper.rb +4 -0
  109. data/sub/avm-tools/avm-tools.gemspec +3 -3
  110. data/sub/avm-tools/lib/avm/launcher/git/warp_base.rb +2 -2
  111. data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo/warp.rb +2 -2
  112. data/sub/avm-tools/lib/avm/projects/stereotypes.rb +0 -9
  113. data/sub/avm-tools/lib/avm/tools/core_ext.rb +0 -1
  114. data/sub/avm-tools/lib/avm/tools/runner/launcher.rb +1 -0
  115. data/sub/avm-tools/lib/avm/tools/runner/source/info.rb +0 -4
  116. data/sub/avm-tools/lib/avm/tools/runner/source/test.rb +1 -1
  117. data/sub/avm-tools/lib/avm/tools/runner/source.rb +0 -12
  118. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  119. data/sub/avm-tools/spec/lib/avm/launcher/context_spec.rb +3 -3
  120. data/sub/eac_docker/eac_docker.gemspec +2 -2
  121. data/sub/eac_docker/lib/eac_docker/images/templatized.rb +7 -1
  122. data/sub/eac_docker/lib/eac_docker/version.rb +1 -1
  123. metadata +123 -37
  124. data/sub/avm-tools/lib/avm/launcher/instances.rb +0 -6
  125. data/sub/avm-tools/lib/avm/launcher/paths.rb +0 -4
  126. data/sub/avm-tools/lib/avm/launcher/publish.rb +0 -4
  127. data/sub/avm-tools/lib/avm/launcher/vendor.rb +0 -3
  128. data/sub/avm-tools/lib/avm/patches/i18n.rb +0 -22
  129. data/sub/avm-tools/lib/avm/projects/stereotype/job_comparator.rb +0 -32
  130. data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb +0 -18
  131. data/sub/avm-tools/lib/avm/projects/stereotypes/rails_application.rb +0 -25
  132. data/sub/avm-tools/lib/avm/projects/stereotypes/redmine_plugin.rb +0 -23
  133. data/sub/avm-tools/lib/avm/stereotypes.rb +0 -9
  134. data/sub/avm-tools/lib/avm/tools/source.rb +0 -64
  135. data/sub/avm-tools/locale/en.yml +0 -7
  136. 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: 1a07350e5f6e203f916c6b9ef70f92f59eff8d4c3af4159a086385608d56119b
4
- data.tar.gz: 03f349d5cee7e0865d05c26fb7e8a2e394f070cc22199bd4b306a81131f955af
3
+ metadata.gz: ae4239b30a17da4a1f143e5aeddcf1b845a6234b2b95049d44a18c7fe7d8c041
4
+ data.tar.gz: 394046628010ad6317a184017d7749895373a58ffdf03413bd8f899c77c9b70f
5
5
  SHA512:
6
- metadata.gz: c44c9eedc11252a33e9f23cc07a13bd732b2808fd9d63900fa6a7d3583f15758dc0b561533ceb2f271e628d135e05786398744efce321ac8022219c55458da76
7
- data.tar.gz: 83a02656f81b1248636ba07fbe6b96ebccbd74f3d4c2a09587e5b2f8561a03832a57ac75d79a6db6fed85edb67462c2b347fed11954258b43ad3b74d543c98ab
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.34.0)
5
- avm (~> 0.45)
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)
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.138)
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,8 +95,8 @@ PATH
88
95
  PATH
89
96
  remote: sub/avm-eac_webapp_base0
90
97
  specs:
91
- avm-eac_webapp_base0 (0.9.0)
92
- avm (~> 0.45)
98
+ avm-eac_webapp_base0 (0.9.2)
99
+ avm (~> 0.46)
93
100
  avm-eac_generic_base0 (~> 0.5)
94
101
  avm-eac_postgresql_base0 (~> 0.2)
95
102
  avm-eac_ubuntu_base0 (~> 0.3)
@@ -113,16 +120,25 @@ PATH
113
120
  eac_ruby_utils (~> 0.103)
114
121
  eac_templates (~> 0.3, >= 0.3.2)
115
122
 
123
+ PATH
124
+ remote: sub/avm-git
125
+ specs:
126
+ avm-git (0.5.0)
127
+ avm (~> 0.46)
128
+ avm-files (~> 0.4, >= 0.4.1)
129
+ eac_git (~> 0.12, >= 0.12.3)
130
+ eac_ruby_utils (~> 0.104)
131
+
116
132
  PATH
117
133
  remote: sub/avm-tools
118
134
  specs:
119
- avm-tools (0.138.0)
135
+ avm-tools (0.140.0)
120
136
  aranha-parsers (~> 0.14, >= 0.14.3)
121
- avm (~> 0.45)
137
+ avm (~> 0.46)
122
138
  avm-eac_ruby_base1 (~> 0.22)
123
139
  avm-eac_ubuntu_base0 (~> 0.3)
124
140
  avm-files (~> 0.4, >= 0.4.1)
125
- avm-git (~> 0.4)
141
+ avm-git (~> 0.5)
126
142
  clipboard (~> 1.3, >= 1.3.6)
127
143
  curb (~> 0.9, >= 0.9.11)
128
144
  eac_git (~> 0.12, >= 0.12.3)
@@ -134,10 +150,10 @@ PATH
134
150
  PATH
135
151
  remote: sub/avm
136
152
  specs:
137
- avm (0.45.0)
153
+ avm (0.47.0)
138
154
  eac_cli (~> 0.28)
139
155
  eac_config (~> 0.11, >= 0.11.1)
140
- eac_docker (~> 0.4, >= 0.4.2)
156
+ eac_docker (~> 0.5)
141
157
  eac_git (~> 0.12, >= 0.12.3)
142
158
  eac_ruby_utils (~> 0.104)
143
159
  eac_templates (~> 0.3, >= 0.3.2)
@@ -163,9 +179,9 @@ PATH
163
179
  PATH
164
180
  remote: sub/eac_docker
165
181
  specs:
166
- eac_docker (0.4.2)
167
- eac_ruby_utils (~> 0.96)
168
- eac_templates (~> 0.3, >= 0.3.1)
182
+ eac_docker (0.5.0)
183
+ eac_ruby_utils (~> 0.104)
184
+ eac_templates (~> 0.3, >= 0.3.2)
169
185
 
170
186
  PATH
171
187
  remote: sub/eac_fs
@@ -230,10 +246,6 @@ GEM
230
246
  avm (~> 0.7)
231
247
  eac_ruby_utils (~> 0.77, >= 0.77.1)
232
248
  eac_templates (~> 0.3)
233
- avm-git (0.4.0)
234
- avm-files (~> 0.1)
235
- eac_git (~> 0.11)
236
- eac_ruby_utils (~> 0.76)
237
249
  clipboard (1.3.6)
238
250
  colorize (0.8.1)
239
251
  concurrent-ruby (1.1.10)
@@ -353,6 +365,7 @@ DEPENDENCIES
353
365
  avm-eac_asciidoctor_base0!
354
366
  avm-eac_generic_base0!
355
367
  avm-eac_latex_base0!
368
+ avm-eac_php_base0!
356
369
  avm-eac_rails_base0!
357
370
  avm-eac_rails_base1!
358
371
  avm-eac_redmine_base0!
@@ -361,6 +374,7 @@ DEPENDENCIES
361
374
  avm-eac_webapp_base0!
362
375
  avm-eac_wordpress_base0!
363
376
  avm-files!
377
+ avm-git!
364
378
  avm-tools!
365
379
  eac_cli!
366
380
  eac_config!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.34.0'
4
+ VERSION = '0.36.0'
5
5
  end
data/sub/avm/avm.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.add_dependency 'eac_cli', '~> 0.28'
16
16
  s.add_dependency 'eac_config', '~> 0.11', '>= 0.11.1'
17
- s.add_dependency 'eac_docker', '~> 0.4', '>= 0.4.2'
17
+ s.add_dependency 'eac_docker', '~> 0.5'
18
18
  s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.3'
19
19
  s.add_dependency 'eac_ruby_utils', '~> 0.104'
20
20
  s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.2'
File without changes
@@ -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
@@ -1,16 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/launcher/errors/base'
4
+ require 'eac_ruby_utils/core_ext'
4
5
 
5
6
  module Avm
6
7
  module Launcher
7
8
  module Publish
8
9
  class Base
9
- attr_reader :instance
10
-
11
- def initialize(instance)
12
- @instance = instance
13
- end
10
+ common_constructor :instance
14
11
 
15
12
  def run
16
13
  s = check
@@ -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
@@ -10,8 +10,6 @@ module Avm
10
10
  lists.add_symbol :category, :application_stereotypes, :instances, :runners, :scms,
11
11
  :source_generators, :sources
12
12
 
13
- WITH_PATH = [CATEGORY_SCMS, CATEGORY_SOURCES].freeze
14
-
15
13
  class << self
16
14
  enable_simple_cache
17
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.45.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__))
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.45'
15
+ s.add_dependency 'avm', '~> 0.46'
16
16
  s.add_dependency 'avm-eac_generic_base0', '~> 0.5'
17
17
  s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2'
18
18
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
@@ -15,7 +15,8 @@ module Avm
15
15
  include ::Avm::Entries::Jobs::Base
16
16
 
17
17
  def directory_extra_config
18
- instance.entry(APACHE_DIRECTORY_EXTRA_CONFIG_KEY).value.if_present { |v| " #{v}\n" }
18
+ instance.entry(APACHE_DIRECTORY_EXTRA_CONFIG_KEY).optional_value
19
+ .if_present { |v| " #{v}\n" }
19
20
  end
20
21
 
21
22
  def no_ssl_site_content
@@ -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.0'
5
+ VERSION = '0.9.2'
6
6
  end
7
7
  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,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+
5
+ require 'avm/git/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'avm-git'
9
+ s.version = Avm::Git::VERSION
10
+ s.authors = ['Put here the authors']
11
+ s.summary = 'Put here de description.'
12
+
13
+ s.files = Dir['{lib}/**/*']
14
+
15
+ s.add_dependency 'avm', '~> 0.46'
16
+ s.add_dependency 'avm-files', '~> 0.4', '>= 0.4.1'
17
+ s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.3'
18
+ s.add_dependency 'eac_ruby_utils', '~> 0.104'
19
+
20
+ s.add_development_dependency 'aranha-parsers', '~> 0.8', '>= 0.8.5'
21
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
22
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Git
7
+ module AutoCommit
8
+ class CommitInfo
9
+ enable_immutable
10
+
11
+ immutable_accessor :fixup, :message
12
+
13
+ def git_commit_args
14
+ r = fixup.if_present([]) { |v| ['--fixup', v.sha1] }
15
+ r += message.if_present([]) { |v| ['--message', v] }
16
+ return r if r.any?
17
+
18
+ raise 'Argument list is empty'
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Git
7
+ module AutoCommit
8
+ module Rules
9
+ class Base
10
+ class << self
11
+ def keys
12
+ [long_key, short_key]
13
+ end
14
+
15
+ def long_key
16
+ name.demodulize.variableize
17
+ end
18
+
19
+ def short_key
20
+ long_key[0, 1]
21
+ end
22
+ end
23
+
24
+ def with_file(file)
25
+ self.class.const_get('WithFile').new(self, file)
26
+ end
27
+
28
+ class WithFile
29
+ common_constructor :rule, :file
30
+
31
+ def new_commit_info
32
+ ::Avm::Git::AutoCommit::CommitInfo.new
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/git/auto_commit/rules/base'
4
+
5
+ module Avm
6
+ module Git
7
+ module AutoCommit
8
+ module Rules
9
+ class Last < ::Avm::Git::AutoCommit::Rules::Base
10
+ class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
11
+ def commit_info
12
+ file.commits.last.if_present { |v| new_commit_info.fixup(v) }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/git/auto_commit/rules/base'
4
+
5
+ module Avm
6
+ module Git
7
+ module AutoCommit
8
+ module Rules
9
+ class Manual < ::Avm::Git::AutoCommit::Rules::Base
10
+ class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
11
+ enable_speaker
12
+
13
+ COMMIT_FORMAT = '%h - %s (%cr)'
14
+ SKIP_OPTION = 's'
15
+
16
+ def commit_info
17
+ return nil unless file.commits.any?
18
+
19
+ commits_banner
20
+ input('Which commit?', list: commits_by_position).if_present do |v|
21
+ new_commit_info.fixup(v)
22
+ end
23
+ end
24
+
25
+ def commits_banner
26
+ file.commits.each_with_index do |commit, _index|
27
+ infov " #{commit.position}", format_commit(commit)
28
+ end
29
+ infov " #{SKIP_OPTION}", 'skip'
30
+ end
31
+
32
+ def commits_by_position
33
+ (file.commits.map { |commit| [commit.position.to_s, commit] } + [[SKIP_OPTION, nil]])
34
+ .to_h
35
+ end
36
+
37
+ def format_commit(commit)
38
+ commit.format(COMMIT_FORMAT)
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/git/auto_commit/rules/base'
4
+ require 'avm/git/auto_commit_path'
5
+
6
+ module Avm
7
+ module Git
8
+ module AutoCommit
9
+ module Rules
10
+ class New < ::Avm::Git::AutoCommit::Rules::Base
11
+ class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
12
+ def auto_commit_path
13
+ ::Avm::Git::AutoCommitPath.new(file.git, file.path)
14
+ end
15
+
16
+ def commit_info
17
+ new_commit_info.message(auto_commit_path.commit_message)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/git/auto_commit/rules/base'
4
+
5
+ module Avm
6
+ module Git
7
+ module AutoCommit
8
+ module Rules
9
+ class Nth < ::Avm::Git::AutoCommit::Rules::Base
10
+ SHORT_KEY = 't'
11
+
12
+ class << self
13
+ def short_key
14
+ SHORT_KEY
15
+ end
16
+ end
17
+
18
+ common_constructor :number do
19
+ self.number = number.to_i
20
+ end
21
+
22
+ class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
23
+ def commit_info
24
+ file.commits(number - 1).if_present { |v| new_commit_info.fixup(v) }
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/git/auto_commit/rules/base'
4
+
5
+ module Avm
6
+ module Git
7
+ module AutoCommit
8
+ module Rules
9
+ class Unique < ::Avm::Git::AutoCommit::Rules::Base
10
+ class WithFile < ::Avm::Git::AutoCommit::Rules::Base::WithFile
11
+ def commit_info
12
+ return nil unless file.commits.count == 1
13
+
14
+ new_commit_info.fixup(file.commits.first)
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end