avm-tools 0.106.0 → 0.109.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/instances/entry.rb +3 -3
  3. data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +2 -2
  4. data/lib/avm/projects/stereotypes/ruby_gem/version_bump.rb +2 -2
  5. data/lib/avm/ruby/rubocop/_configured.rb +2 -2
  6. data/lib/avm/tools/app_src.rb +68 -0
  7. data/lib/avm/tools/runner/app_src/info.rb +26 -2
  8. data/lib/avm/tools/runner/app_src/ruby/bundler/incompatible.rb +2 -4
  9. data/lib/avm/tools/runner/app_src/update.rb +2 -2
  10. data/lib/avm/tools/runner/app_src.rb +6 -2
  11. data/lib/avm/tools/runner/config/load_path.rb +10 -5
  12. data/lib/avm/tools/runner/git/deploy.rb +2 -2
  13. data/lib/avm/tools/runner/self/registry.rb +25 -0
  14. data/lib/avm/tools/runner.rb +0 -4
  15. data/lib/avm/tools/version.rb +1 -1
  16. data/template/avm/ruby/gems/generator/static/spec/rubocop_spec.rb +1 -1
  17. data/template/avm/ruby/gems/generator/static/spec/spec_helper.rb +2 -100
  18. data/vendor/avm/avm.gemspec +4 -1
  19. data/{lib → vendor/avm/lib}/avm/data/instance/files_unit.rb +0 -0
  20. data/{lib → vendor/avm/lib}/avm/data/instance/package.rb +0 -0
  21. data/{lib → vendor/avm/lib}/avm/data/instance/unit.rb +0 -0
  22. data/{lib → vendor/avm/lib}/avm/data/instance.rb +0 -0
  23. data/{lib → vendor/avm/lib}/avm/data/package/dump.rb +0 -0
  24. data/{lib → vendor/avm/lib}/avm/data/package/load.rb +0 -0
  25. data/{lib → vendor/avm/lib}/avm/data/package.rb +0 -0
  26. data/{lib → vendor/avm/lib}/avm/data/unit.rb +0 -0
  27. data/vendor/avm/lib/avm/jobs/base.rb +63 -0
  28. data/vendor/avm/lib/avm/jobs/variables_source.rb +22 -0
  29. data/vendor/{avm-apps/lib/avm/apps.rb → avm/lib/avm/jobs.rb} +1 -1
  30. data/{lib → vendor/avm/lib}/avm/path_string.rb +0 -0
  31. data/vendor/avm/lib/avm/registry/base.rb +65 -0
  32. data/vendor/avm/lib/avm/registry.rb +29 -0
  33. data/vendor/avm/lib/avm/rspec/setup.rb +22 -0
  34. data/vendor/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb +11 -0
  35. data/vendor/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +14 -0
  36. data/vendor/avm/lib/avm/rspec.rb +9 -0
  37. data/vendor/avm/lib/avm/scms/base.rb +28 -0
  38. data/vendor/avm/lib/avm/scms/commit.rb +43 -0
  39. data/vendor/avm/lib/avm/source_stereotypes/base.rb +21 -0
  40. data/vendor/avm/lib/avm/sources/base.rb +67 -0
  41. data/vendor/avm/lib/avm/sources/configuration/_locale.rb +16 -0
  42. data/vendor/avm/lib/avm/sources/configuration/_rubocop.rb +24 -0
  43. data/vendor/avm/lib/avm/sources/configuration/_tests.rb +27 -0
  44. data/vendor/avm/lib/avm/sources/configuration.rb +55 -0
  45. data/vendor/avm/lib/avm/sources.rb +9 -0
  46. data/{lib → vendor/avm/lib}/avm/sync.rb +0 -0
  47. data/vendor/avm/lib/avm/version.rb +1 -1
  48. data/vendor/avm/spec/lib/avm/scms/base_spec.rb +7 -0
  49. data/vendor/avm/spec/lib/avm/source_stereotypes/base_spec.rb +7 -0
  50. data/vendor/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +2 -0
  51. data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb +3 -2
  52. data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  53. data/vendor/{avm-apps → avm-eac_ruby_base1}/Gemfile +0 -0
  54. data/vendor/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +19 -0
  55. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches/i18n.rb +7 -0
  56. data/{lib/avm/patches/class.rb → vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches.rb} +0 -0
  57. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/base.rb +25 -0
  58. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/update/sub_update.rb +56 -0
  59. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/update.rb +53 -0
  60. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes.rb +11 -0
  61. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +7 -0
  62. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb +9 -0
  63. data/vendor/avm-eac_ruby_base1/locale/en.yaml +8 -0
  64. data/vendor/avm-eac_ruby_base1/locale/pt-BR.yaml +8 -0
  65. data/vendor/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_stereotypes/base_spec.rb +7 -0
  66. data/vendor/{avm-apps → avm-eac_ruby_base1}/spec/rubocop_spec.rb +0 -0
  67. data/vendor/{avm-apps → avm-eac_ruby_base1}/spec/spec_helper.rb +0 -0
  68. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_host.rb +2 -2
  69. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_path.rb +2 -2
  70. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy.rb +2 -2
  71. data/vendor/avm-files/Gemfile +5 -0
  72. data/vendor/avm-files/avm-files.gemspec +21 -0
  73. data/vendor/{avm → avm-files}/lib/avm/files/appendable/file_content.rb +0 -0
  74. data/vendor/{avm → avm-files}/lib/avm/files/appendable/plain_directory.rb +0 -0
  75. data/vendor/{avm → avm-files}/lib/avm/files/appendable/resource_base.rb +0 -0
  76. data/vendor/{avm → avm-files}/lib/avm/files/appendable/tar_output_command.rb +0 -0
  77. data/vendor/{avm → avm-files}/lib/avm/files/appendable/templatized_directory.rb +0 -0
  78. data/vendor/{avm → avm-files}/lib/avm/files/appendable.rb +0 -0
  79. data/vendor/{avm → avm-files}/lib/avm/files/appender.rb +0 -0
  80. data/vendor/{avm → avm-files}/lib/avm/files/deploy.rb +0 -0
  81. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/base.rb +2 -2
  82. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/generic_plain.rb +0 -0
  83. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/html.rb +0 -0
  84. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/javascript.rb +1 -0
  85. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/json.rb +0 -0
  86. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/php.rb +1 -0
  87. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/python.rb +1 -0
  88. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/ruby.rb +0 -0
  89. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/xml.rb +1 -0
  90. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats.rb +0 -0
  91. data/vendor/{avm → avm-files}/lib/avm/files/formatter/utf8_assert.rb +2 -2
  92. data/vendor/{avm → avm-files}/lib/avm/files/formatter.rb +0 -0
  93. data/vendor/{avm → avm-files}/lib/avm/files/rotate.rb +0 -0
  94. data/vendor/avm-files/lib/avm/files/version.rb +7 -0
  95. data/vendor/avm-files/lib/avm/files.rb +9 -0
  96. data/vendor/avm-files/spec/rubocop_spec.rb +3 -0
  97. data/vendor/avm-files/spec/spec_helper.rb +4 -0
  98. data/vendor/avm-git/Gemfile +5 -0
  99. data/vendor/avm-git/avm-git.gemspec +21 -0
  100. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/commit_info.rb +0 -0
  101. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/base.rb +0 -0
  102. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/last.rb +0 -0
  103. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/manual.rb +0 -0
  104. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/new.rb +0 -0
  105. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/nth.rb +0 -0
  106. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/unique.rb +0 -0
  107. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules.rb +0 -0
  108. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit_path/ruby.rb +0 -0
  109. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit_path.rb +0 -0
  110. data/vendor/{avm → avm-git}/lib/avm/git/commit/class_methods.rb +0 -0
  111. data/vendor/{avm → avm-git}/lib/avm/git/commit/deploy.rb +0 -0
  112. data/vendor/{avm → avm-git}/lib/avm/git/commit/deploy_methods.rb +0 -0
  113. data/vendor/{avm → avm-git}/lib/avm/git/commit/diff_tree_line.rb +0 -0
  114. data/vendor/{avm → avm-git}/lib/avm/git/commit/file.rb +0 -0
  115. data/vendor/{avm → avm-git}/lib/avm/git/commit.rb +0 -0
  116. data/vendor/{avm → avm-git}/lib/avm/git/file_auto_fixup.rb +0 -0
  117. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/commits.rb +0 -0
  118. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/git_subrepos.rb +0 -0
  119. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/local_branch.rb +0 -0
  120. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/local_tag.rb +0 -0
  121. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/push.rb +0 -0
  122. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/remote.rb +0 -0
  123. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/test.rb +2 -2
  124. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/tracker.rb +0 -0
  125. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/validation.rb +0 -0
  126. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/validations.rb +0 -0
  127. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/working_tree.rb +0 -0
  128. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete.rb +0 -0
  129. data/vendor/{avm → avm-git}/lib/avm/git/issue/deliver.rb +0 -0
  130. data/vendor/{avm → avm-git}/lib/avm/git/issue.rb +0 -0
  131. data/vendor/{avm → avm-git}/lib/avm/git/organize/reference_update.rb +0 -0
  132. data/vendor/{avm → avm-git}/lib/avm/git/organize/repository.rb +0 -0
  133. data/vendor/{avm → avm-git}/lib/avm/git/organize.rb +0 -0
  134. data/vendor/{avm → avm-git}/lib/avm/git/revision_test.rb +2 -3
  135. data/vendor/avm-git/lib/avm/git/scms/git/change_tracker.rb +35 -0
  136. data/vendor/avm-git/lib/avm/git/scms/git/commit.rb +55 -0
  137. data/vendor/avm-git/lib/avm/git/scms/git.rb +65 -0
  138. data/vendor/avm-git/lib/avm/git/scms/git_subrepo.rb +41 -0
  139. data/vendor/avm-git/lib/avm/git/scms/provider.rb +19 -0
  140. data/vendor/{avm-apps/lib/avm/apps/jobs.rb → avm-git/lib/avm/git/scms.rb} +2 -2
  141. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/parent.rb +0 -0
  142. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/remote.rb +0 -0
  143. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/show_result.rb +0 -0
  144. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check.rb +0 -0
  145. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_checks.rb +0 -0
  146. data/vendor/{avm-apps/lib/avm/apps → avm-git/lib/avm/git}/version.rb +2 -2
  147. data/vendor/{avm → avm-git}/lib/avm/git.rb +3 -2
  148. data/vendor/{avm → avm-git}/spec/lib/avm/git/auto_commit_path_spec.rb +0 -0
  149. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/deploy_spec.rb +0 -0
  150. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec.rb +0 -0
  151. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +0 -0
  152. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +0 -0
  153. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +0 -0
  154. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +0 -0
  155. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +0 -0
  156. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +0 -0
  157. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +0 -0
  158. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +0 -0
  159. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +0 -0
  160. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +0 -0
  161. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit_spec.rb +0 -0
  162. data/vendor/avm-git/spec/lib/avm/git/scms/git_spec.rb +8 -0
  163. data/vendor/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +8 -0
  164. data/vendor/avm-git/spec/rubocop_spec.rb +3 -0
  165. data/vendor/avm-git/spec/spec_helper.rb +4 -0
  166. data/vendor/eac_cli/lib/eac_cli/config.rb +6 -3
  167. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  168. data/vendor/eac_fs/Gemfile +5 -0
  169. data/vendor/eac_fs/eac_fs.gemspec +20 -0
  170. data/vendor/{eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb → eac_fs/lib/eac_fs/cache.rb} +7 -2
  171. data/{lib/avm → vendor/eac_fs/lib/eac_fs}/cached_download.rb +4 -4
  172. data/vendor/eac_fs/lib/eac_fs/file_info.rb +29 -0
  173. data/vendor/eac_fs/lib/eac_fs/patches/module/fs_cache.rb +10 -0
  174. data/vendor/eac_fs/lib/eac_fs/patches/module.rb +4 -0
  175. data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +17 -0
  176. data/vendor/eac_fs/lib/eac_fs/patches/object.rb +4 -0
  177. data/vendor/eac_fs/lib/eac_fs/patches/pathname/info.rb +12 -0
  178. data/vendor/eac_fs/lib/eac_fs/patches/pathname.rb +4 -0
  179. data/vendor/{avm/lib/avm/files.rb → eac_fs/lib/eac_fs/patches.rb} +0 -5
  180. data/vendor/eac_fs/lib/eac_fs/version.rb +5 -0
  181. data/vendor/eac_fs/lib/eac_fs.rb +7 -0
  182. data/vendor/{eac_ruby_utils/spec/lib/eac_ruby_utils/filesystem_cache_spec.rb → eac_fs/spec/lib/eac_fs/cache_spec.rb} +2 -2
  183. data/vendor/eac_fs/spec/rubocop_spec.rb +3 -0
  184. data/vendor/eac_fs/spec/spec_helper.rb +4 -0
  185. data/vendor/eac_git/lib/eac_git/local/commit/archive.rb +1 -1
  186. data/vendor/eac_git/lib/eac_git/local/commit.rb +24 -5
  187. data/vendor/eac_git/lib/eac_git/local/log.rb +17 -0
  188. data/vendor/eac_git/lib/eac_git/local.rb +39 -0
  189. data/vendor/eac_git/lib/eac_git/rspec/stubbed_git_local_repo.rb +11 -0
  190. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  191. data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +2 -1
  192. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +4 -4
  193. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +1 -0
  194. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +16 -7
  195. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  196. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb +0 -5
  197. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  198. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb +7 -0
  199. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +4 -0
  200. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +1 -1
  201. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb +9 -0
  202. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/self_included_modules.rb +7 -0
  203. data/{lib/avm/patches/class/i18n.rb → vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb} +8 -7
  204. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/call_if_proc.rb +11 -0
  205. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/i18n_translate.rb +13 -0
  206. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +10 -10
  207. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  208. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb +25 -0
  209. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb +30 -0
  210. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb +11 -0
  211. data/vendor/eac_templates/lib/eac_templates/patches/module/erb_template.rb +9 -0
  212. data/vendor/eac_templates/lib/eac_templates/patches/module.rb +4 -0
  213. data/vendor/eac_templates/lib/eac_templates/patches/object/erb_template.rb +9 -0
  214. data/vendor/eac_templates/lib/eac_templates/patches/object.rb +4 -0
  215. data/vendor/eac_templates/lib/eac_templates/patches.rb +4 -0
  216. data/vendor/eac_templates/lib/eac_templates/version.rb +1 -1
  217. metadata +211 -243
  218. data/lib/avm/app_src.rb +0 -61
  219. data/lib/avm/fs_cache.rb +0 -11
  220. data/lib/avm/patches/object/fs_cache.rb +0 -16
  221. data/lib/avm/patches/object/i18n.rb +0 -9
  222. data/lib/avm/projects/stereotypes/git/update/subrepo.rb +0 -85
  223. data/lib/avm/projects/stereotypes/git/update.rb +0 -41
  224. data/lib/avm/projects/stereotypes/ruby_gem/update.rb +0 -66
  225. data/vendor/avm/lib/avm/files/info.rb +0 -24
  226. data/vendor/avm-apps/avm-apps.gemspec +0 -18
  227. data/vendor/avm-apps/lib/avm/apps/config.rb +0 -19
  228. data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +0 -64
  229. data/vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb +0 -24
  230. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_locale.rb +0 -18
  231. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_rubocop.rb +0 -26
  232. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_tests.rb +0 -29
  233. data/vendor/avm-apps/lib/avm/apps/sources/configuration.rb +0 -57
  234. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a71fc17b60e581ba891e58d0b47ad9b4dbae79c2085540bb1816e02011e9af9
4
- data.tar.gz: 15387681892ce7192edd15b0e68ee801ed0fca233454b802df21f7d5e0a211a4
3
+ metadata.gz: 4fb253fe8f448ec59893d5aedcd818661142dd53efc0043d934da9e57e841dab
4
+ data.tar.gz: 5c6bcf1c7ba068dc25ce894a43b893facc3a4304632d2b8df84266d99cd5bc36
5
5
  SHA512:
6
- metadata.gz: d61dadda2108d0d2b7a37f9ec55bbcbc73e222c87f463feec8b91d8f486b3869f1652849296a9bcb7c33e58fe65f1a99f5d12fe7e71c2b1fcf58231b2f453124
7
- data.tar.gz: 13a712ee6f75e13797fcf5107ad9b0c72f730195d4264e36ea5368635205aa68c55deb88c8055f01381342cefe48bf74d0decba9d6fe5052df6c6571622a1daf
6
+ metadata.gz: 8b50d5638c8e3c660da897cb51ff08d79b56be1f0ba3c0543b4da887143777c369175c81d13efef2011187e53ed4f102e96854217458a517ca8e068248c1ffcb
7
+ data.tar.gz: fa9d2274713b503ffe149eff0c259a27c6ec725d47f48ddb56ea749525a1719e50ca42c61166d37f8637cf7c7202609ed76310bec62a1d86a9f6cd09fbfbf933
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/apps/config'
3
+ require 'eac_config/node'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module Avm
@@ -31,7 +31,7 @@ module Avm
31
31
  end
32
32
 
33
33
  def read(extra_options = {})
34
- ::Avm::Apps::Config.current.entry(full_path, options.merge(extra_options)).value
34
+ ::EacConfig::Node.context.current.entry(full_path, options.merge(extra_options)).value
35
35
  end
36
36
 
37
37
  def suffix_as_array
@@ -47,7 +47,7 @@ module Avm
47
47
  end
48
48
 
49
49
  def write(value)
50
- ::Avm::Apps::Config.current.entry(full_path).value = value
50
+ ::EacConfig::Node.context.current.entry(full_path).value = value
51
51
  end
52
52
  end
53
53
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/apps/sources/configuration'
3
+ require 'avm/sources/configuration'
4
4
  require 'eac_ruby_gems_utils/gem'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
@@ -13,7 +13,7 @@ module Avm
13
13
  private
14
14
 
15
15
  def configuration_uncached
16
- ::Avm::Apps::Sources::Configuration.find_in_path(root)
16
+ ::Avm::Sources::Configuration.find_in_path(root)
17
17
  end
18
18
 
19
19
  def gemfile_path_uncached
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches/object/i18n'
3
+ require 'avm/patches/i18n'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module Avm
@@ -47,7 +47,7 @@ module Avm
47
47
  end
48
48
 
49
49
  def git_commit_message
50
- translate(__method__, version: target_version, __locale: instance.locale)
50
+ i18n_translate(__method__, version: target_version, __locale: instance.locale)
51
51
  end
52
52
 
53
53
  def changing_files
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/apps/sources/configuration'
3
+ require 'avm/sources/configuration'
4
4
 
5
5
  module Avm
6
6
  module Ruby
@@ -22,7 +22,7 @@ module Avm
22
22
  private
23
23
 
24
24
  def configuration_uncached
25
- ::Avm::Apps::Sources::Configuration.find_by_path(base_path)
25
+ ::Avm::Sources::Configuration.find_by_path(base_path)
26
26
  end
27
27
  end
28
28
  end
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/sources/base'
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 AppSrc
14
+ enable_simple_cache
15
+ common_constructor :path do
16
+ self.path = path.to_pathname
17
+ source_stereotypes_mixins
18
+ end
19
+
20
+ delegate :to_s, to: :path
21
+
22
+ def locale
23
+ configuration.if_present(&:locale) || ::I18n.default_locale
24
+ end
25
+
26
+ # Backward compatibility with [Avm::Launcher::Paths::Logical].
27
+ # @return [Avm::Launcher::Paths::Real].
28
+ def real
29
+ ::Avm::Launcher::Paths::Real.new(path.to_path)
30
+ end
31
+
32
+ def run_job(job, job_args = [])
33
+ stereotypes_jobs(job, job_args).each(&:run)
34
+ end
35
+
36
+ private
37
+
38
+ def avm_instance_uncached
39
+ ::Avm::Sources::Base.new(path)
40
+ end
41
+
42
+ # @return [Avm::Sources::Configuration]
43
+ def configuration_uncached
44
+ ::Avm::Sources::Configuration.find_in_path(path)
45
+ end
46
+
47
+ def stereotypes_jobs(job, job_args)
48
+ job_class_method = "#{job}_class"
49
+ r = []
50
+ stereotypes.each do |stereotype|
51
+ r << stereotype.send(job_class_method).new(self, *job_args) if
52
+ stereotype.send(job_class_method).present?
53
+ end
54
+ r.sort { |a, b| ::Avm::Projects::Stereotype::JobComparator.new(a, b).result }
55
+ end
56
+
57
+ def stereotypes_uncached
58
+ ::Avm::Projects::Stereotypes.list.select { |s| s.match?(self) }
59
+ end
60
+
61
+ def source_stereotypes_mixins
62
+ stereotypes.each do |s|
63
+ s.local_project_mixin_module.if_present { |v| singleton_class.include(v) }
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -12,8 +12,32 @@ module Avm
12
12
  end
13
13
 
14
14
  def run
15
- infov 'Path', runner_context.call(:instance).path
16
- infov 'Stereotypes', runner_context.call(:instance).stereotypes.map(&:label).join(', ')
15
+ show_instance
16
+ show_source
17
+ show_subs
18
+ end
19
+
20
+ private
21
+
22
+ def show_instance
23
+ infov 'Path', instance.path
24
+ infov 'Stereotypes', instance.stereotypes.map(&:label).join(', ')
25
+ end
26
+
27
+ def show_source
28
+ infov 'Stereotype', runner_context.call(:subject).stereotype
29
+ infov 'SCM', runner_context.call(:subject).scm
30
+ end
31
+
32
+ def show_subs
33
+ infov 'Sub applications', instance.avm_instance.subs.count
34
+ instance.avm_instance.subs.each do |subapp|
35
+ infov ' * ', subapp.relative_path
36
+ end
37
+ end
38
+
39
+ def instance
40
+ runner_context.call(:instance)
17
41
  end
18
42
  end
19
43
  end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/fs_cache'
4
3
  require 'avm/ruby/bundler/incompatible_parser'
5
4
  require 'eac_ruby_base0/core_ext'
6
5
 
@@ -36,9 +35,8 @@ module Avm
36
35
  fs_cache.content_path
37
36
  end
38
37
 
39
- def fs_cache_uncached
40
- ::Avm.fs_cache.child(self.class.name.variableize)
41
- .child(instance.path.to_s.variableize)
38
+ def fs_cache_object_id
39
+ instance.path.to_s.variableize
42
40
  end
43
41
 
44
42
  def gem_title(gem_in_conflict)
@@ -12,8 +12,8 @@ module Avm
12
12
  end
13
13
 
14
14
  def run
15
- infov 'Path', runner_context.call(:instance).path
16
- runner_context.call(:instance).run_job(:update)
15
+ infov 'Path', runner_context.call(:subject).path
16
+ runner_context.call(:subject).update
17
17
  end
18
18
  end
19
19
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/app_src'
3
+ require 'avm/tools/app_src'
4
4
  require 'eac_cli/core_ext'
5
5
 
6
6
  module Avm
@@ -19,10 +19,14 @@ module Avm
19
19
  infov 'Stereotypes', instance.stereotypes.map(&:label).join(', ')
20
20
  end
21
21
 
22
+ def subject
23
+ instance.avm_instance
24
+ end
25
+
22
26
  private
23
27
 
24
28
  def instance_uncached
25
- ::Avm::AppSrc.new(instance_path)
29
+ ::Avm::Tools::AppSrc.new(instance_path)
26
30
  end
27
31
 
28
32
  def instance_path_uncached
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/apps/config'
4
3
  require 'avm/self'
5
4
  require 'avm/tools/core_ext'
5
+ require 'eac_config/node'
6
+ require 'eac_ruby_utils/recursive_builder'
6
7
 
7
8
  module Avm
8
9
  module Tools
@@ -15,15 +16,19 @@ module Avm
15
16
  end
16
17
 
17
18
  def run
18
- run_show
19
+ config_nodes.each { |config_node| run_show(config_node) }
19
20
  run_add
20
21
  end
21
22
 
22
23
  private
23
24
 
24
25
  # @return [[EacCli::Config]]
25
- def config_node
26
- ::Avm::Apps::Config.current
26
+ def root_config_node
27
+ ::EacConfig::Node.context.current
28
+ end
29
+
30
+ def config_nodes
31
+ ::EacRubyUtils::RecursiveBuilder.new(root_config_node, &:self_loaded_nodes).result
27
32
  end
28
33
 
29
34
  def run_add
@@ -34,7 +39,7 @@ module Avm
34
39
  end
35
40
  end
36
41
 
37
- def run_show
42
+ def run_show(config_node)
38
43
  infov 'Configuration path', config_node.url
39
44
  infov 'Paths included', config_node.self_loaded_nodes.count
40
45
  config_node.self_loaded_nodes.each do |loaded_node|
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/apps/config'
4
3
  require 'avm/launcher/git/base'
5
4
  require 'avm/git/commit'
5
+ require 'eac_config/node'
6
6
 
7
7
  module Avm
8
8
  module Tools
@@ -91,7 +91,7 @@ module Avm
91
91
  end
92
92
 
93
93
  def variables_source
94
- instance || ::Avm::Apps::Config.current
94
+ instance || ::EacConfig::Node.context.current
95
95
  end
96
96
 
97
97
  def instance_uncached
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/registry'
4
+ require 'avm/tools/core_ext'
5
+
6
+ module Avm
7
+ module Tools
8
+ class Runner
9
+ class Self
10
+ class Registry
11
+ runner_with :help do
12
+ desc 'Show information from registry'
13
+ end
14
+
15
+ def run
16
+ ::Avm::Registry.registries.each do |registry|
17
+ infov registry.module_suffix, registry.registered_modules.count
18
+ registry.registered_modules.each { |m| infov ' * ', m }
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -17,10 +17,6 @@ module Avm
17
17
  def application
18
18
  ::Avm::Self.application
19
19
  end
20
-
21
- def run
22
- ::Avm::Apps::Config.context.on(::Avm::Self.build_config) { super }
23
- end
24
20
  end
25
21
  end
26
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.106.0'
5
+ VERSION = '0.109.1'
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::EacRubyGemSupport::Rspec.default.describe_rubocop
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,102 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This file was generated by the `rspec --init` command. Conventionally, all
4
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
- # The generated `.rspec` file contains `--require spec_helper` which will cause
6
- # this file to always be loaded, without a need to explicitly require it in any
7
- # files.
8
- #
9
- # Given that it is always loaded, you are encouraged to keep this file as
10
- # light-weight as possible. Requiring heavyweight dependencies from this file
11
- # will add to the boot time of your test suite on EVERY test run, even for an
12
- # individual file that may not need all of that loaded. Instead, consider making
13
- # a separate helper file that requires the additional dependencies and performs
14
- # the additional setup, and require it from the spec files that actually need
15
- # it.
16
- #
17
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
- RSpec.configure do |config|
19
- # rspec-expectations config goes here. You can use an alternate
20
- # assertion/expectation library such as wrong or the stdlib/minitest
21
- # assertions if you prefer.
22
- config.expect_with :rspec do |expectations|
23
- # This option will default to `true` in RSpec 4. It makes the `description`
24
- # and `failure_message` of custom matchers include text for helper methods
25
- # defined using `chain`, e.g.:
26
- # be_bigger_than(2).and_smaller_than(4).description
27
- # # => "be bigger than 2 and smaller than 4"
28
- # ...rather than:
29
- # # => "be bigger than 2"
30
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
- end
32
-
33
- # rspec-mocks config goes here. You can use an alternate test double
34
- # library (such as bogus or mocha) by changing the `mock_with` option here.
35
- config.mock_with :rspec do |mocks|
36
- # Prevents you from mocking or stubbing a method that does not exist on
37
- # a real object. This is generally recommended, and will default to
38
- # `true` in RSpec 4.
39
- mocks.verify_partial_doubles = true
40
- end
41
-
42
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
43
- # have no way to turn it off -- the option exists only for backwards
44
- # compatibility in RSpec 3). It causes shared context metadata to be
45
- # inherited by the metadata hash of host groups and examples, rather than
46
- # triggering implicit auto-inclusion in groups with matching metadata.
47
- config.shared_context_metadata_behavior = :apply_to_host_groups
48
-
49
- # The settings below are suggested to provide a good initial experience
50
- # with RSpec, but feel free to customize to your heart's content.
51
- # # This allows you to limit a spec run to individual examples or groups
52
- # # you care about by tagging them with `:focus` metadata. When nothing
53
- # # is tagged with `:focus`, all examples get run. RSpec also provides
54
- # # aliases for `it`, `describe`, and `context` that include `:focus`
55
- # # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
56
- # config.filter_run_when_matching :focus
57
- #
58
- # # Allows RSpec to persist some state between runs in order to support
59
- # # the `--only-failures` and `--next-failure` CLI options. We recommend
60
- # # you configure your source control system to ignore this file.
61
- # config.example_status_persistence_file_path = "spec/examples.txt"
62
- #
63
- # # Limits the available syntax to the non-monkey patched syntax that is
64
- # # recommended. For more details, see:
65
- # # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
66
- # # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
- # # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
68
- # config.disable_monkey_patching!
69
- #
70
- # # This setting enables warnings. It's recommended, but in some cases may
71
- # # be too noisy due to issues in dependencies.
72
- # config.warnings = true
73
- #
74
- # # Many RSpec users commonly either run the entire suite or an individual
75
- # # file, and it's useful to allow more verbose output when running an
76
- # # individual spec file.
77
- # if config.files_to_run.one?
78
- # # Use the documentation formatter for detailed output,
79
- # # unless a formatter has already been configured
80
- # # (e.g. via a command-line flag).
81
- # config.default_formatter = "doc"
82
- # end
83
- #
84
- # # Print the 10 slowest examples and example groups at the
85
- # # end of the spec run, to help surface which specs are running
86
- # # particularly slow.
87
- # config.profile_examples = 10
88
- #
89
- # # Run specs in random order to surface order dependencies. If you find an
90
- # # order dependency and want to debug it, you can fix the order by providing
91
- # # the seed, which is printed after each run.
92
- # # --seed 1234
93
- # config.order = :random
94
- #
95
- # # Seed global randomization in this process using the `--seed` CLI option.
96
- # # Setting this allows you to use `--seed` to deterministically reproduce
97
- # # test failures related to randomization by passing the same `--seed` value
98
- # # as the one that triggered the failure.
99
- # Kernel.srand config.seed
100
- require 'eac_ruby_gem_support/rspec'
101
- ::EacRubyGemSupport::Rspec.setup(::File.expand_path('..', __dir__))
102
- end
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -14,8 +14,11 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.add_dependency 'eac_docker', '~> 0.3'
16
16
  s.add_dependency 'eac_git', '~> 0.6'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.68'
17
+ s.add_dependency 'eac_ruby_utils', '~> 0.77'
18
18
  s.add_dependency 'eac_templates', '~> 0.1', '>= 0.1.1'
19
+ s.add_dependency 'filesize', '~> 0.2'
20
+ s.add_dependency 'htmlbeautifier', '~> 1.3', '>= 1.3.1'
21
+ s.add_dependency 'minitar', '~> 0.9'
19
22
 
20
23
  s.add_development_dependency 'aranha-parsers', '~> 0.7', '>= 0.7.2'
21
24
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/jobs/variables_source'
4
+ require 'avm/result'
5
+ require 'eac_cli/core_ext'
6
+
7
+ module Avm
8
+ module Jobs
9
+ module Base
10
+ common_concern do
11
+ include ::ActiveSupport::Callbacks
12
+
13
+ enable_speaker
14
+ enable_simple_cache
15
+ enable_listable
16
+ common_constructor :instance, :options, default: [{}] do
17
+ if option_list.present?
18
+ self.options = option_list.hash_keys_validate!(options.symbolize_keys)
19
+ end
20
+ end
21
+ define_callbacks(*jobs)
22
+ end
23
+
24
+ module ClassMethods
25
+ def jobs
26
+ const_get('JOBS').dup
27
+ end
28
+ end
29
+
30
+ module InstanceMethods
31
+ def option_list
32
+ nil
33
+ end
34
+
35
+ def run
36
+ start_banner if respond_to?(:start_banner)
37
+ run_jobs
38
+ ::Avm::Result.success('Done!')
39
+ rescue ::Avm::Result::Error => e
40
+ e.to_result
41
+ end
42
+
43
+ def variables_source
44
+ ::Avm::Jobs::VariablesSource.new(self, instance)
45
+ end
46
+
47
+ protected
48
+
49
+ def run_jobs
50
+ jobs.each do |job|
51
+ run_callbacks job do
52
+ send(job)
53
+ end
54
+ end
55
+ end
56
+
57
+ def jobs
58
+ self.class.jobs
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Jobs
7
+ class VariablesSource
8
+ common_constructor :job, :instance
9
+
10
+ def read_entry(path, options = {})
11
+ entry_from_job(path) || instance.read_entry(path, options)
12
+ end
13
+
14
+ private
15
+
16
+ def entry_from_job(path)
17
+ method = path.gsub('.', '_').underscore
18
+ return job.send(method) if job.respond_to?(method, true)
19
+ end
20
+ end
21
+ end
22
+ end
@@ -3,7 +3,7 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
5
  module Avm
6
- module Apps
6
+ module Jobs
7
7
  require_sub __FILE__
8
8
  end
9
9
  end
File without changes
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'eac_ruby_utils/gems_registry'
5
+
6
+ module Avm
7
+ module Registry
8
+ class Base
9
+ enable_simple_cache
10
+ common_constructor :module_suffix
11
+
12
+ def detect(*registered_initialize_args)
13
+ detect_optional(*registered_initialize_args) ||
14
+ raise("No registered module valid for #{registered_initialize_args}" \
15
+ " (Module suffix: #{module_suffix})")
16
+ end
17
+
18
+ def detect_optional(*registered_initialize_args)
19
+ registered_modules.lazy.map { |klass| klass.new(*registered_initialize_args) }
20
+ .find(&:valid?)
21
+ end
22
+
23
+ def provider_module_suffix
24
+ "#{module_suffix}::Provider"
25
+ end
26
+
27
+ def single_module_suffix
28
+ "#{module_suffix}::Base"
29
+ end
30
+
31
+ def to_s
32
+ "#{self.class}[#{module_suffix}]"
33
+ end
34
+
35
+ def valid_registered_module?(a_module)
36
+ a_module.is_a?(::Class) && !a_module.abstract?
37
+ end
38
+
39
+ private
40
+
41
+ def registered_modules_uncached
42
+ (single_registered_modules + provider_registered_modules)
43
+ .select { |v| valid_registered_module?(v) }.uniq.sort_by { |s| [s.name] }
44
+ end
45
+
46
+ def single_registered_modules
47
+ single_instance_registry.registered.map(&:registered_module)
48
+ end
49
+
50
+ def provider_registered_modules
51
+ provider_registry.registered.map(&:registered_module).flat_map do |provider_class|
52
+ provider_class.new.all
53
+ end
54
+ end
55
+
56
+ def single_instance_registry_uncached
57
+ ::EacRubyUtils::GemsRegistry.new(single_module_suffix)
58
+ end
59
+
60
+ def provider_registry_uncached
61
+ ::EacRubyUtils::GemsRegistry.new(provider_module_suffix)
62
+ end
63
+ end
64
+ end
65
+ end