avm-tools 0.105.0 → 0.109.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) 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/ruby/rubocop/_configured.rb +2 -2
  5. data/lib/avm/tools/app_src.rb +68 -0
  6. data/lib/avm/tools/runner/app_src/info.rb +26 -2
  7. data/lib/avm/tools/runner/app_src/ruby/bundler/gemfile_lock/git.rb +62 -0
  8. data/lib/avm/tools/runner/app_src/ruby/bundler/gemfile_lock.rb +11 -41
  9. data/lib/avm/tools/runner/app_src/ruby/bundler/incompatible.rb +2 -4
  10. data/lib/avm/tools/runner/app_src/update.rb +2 -2
  11. data/lib/avm/tools/runner/app_src.rb +6 -2
  12. data/lib/avm/tools/runner/config/load_path.rb +10 -5
  13. data/lib/avm/tools/runner/git/deploy.rb +2 -2
  14. data/lib/avm/tools/runner/self/registry.rb +25 -0
  15. data/lib/avm/tools/runner.rb +0 -4
  16. data/lib/avm/tools/version.rb +1 -1
  17. data/template/avm/ruby/gems/generator/static/spec/rubocop_spec.rb +1 -1
  18. data/template/avm/ruby/gems/generator/static/spec/spec_helper.rb +2 -100
  19. data/vendor/avm/avm.gemspec +4 -1
  20. data/{lib → vendor/avm/lib}/avm/data/instance/files_unit.rb +0 -0
  21. data/{lib → vendor/avm/lib}/avm/data/instance/package.rb +0 -0
  22. data/{lib → vendor/avm/lib}/avm/data/instance/unit.rb +0 -0
  23. data/{lib → vendor/avm/lib}/avm/data/instance.rb +0 -0
  24. data/{lib → vendor/avm/lib}/avm/data/package/dump.rb +0 -0
  25. data/{lib → vendor/avm/lib}/avm/data/package/load.rb +0 -0
  26. data/{lib → vendor/avm/lib}/avm/data/package.rb +0 -0
  27. data/{lib → vendor/avm/lib}/avm/data/unit.rb +0 -0
  28. data/vendor/avm/lib/avm/jobs/base.rb +62 -0
  29. data/vendor/avm/lib/avm/jobs/variables_source.rb +22 -0
  30. data/vendor/{avm-apps/lib/avm/apps.rb → avm/lib/avm/jobs.rb} +1 -1
  31. data/{lib → vendor/avm/lib}/avm/path_string.rb +0 -0
  32. data/vendor/avm/lib/avm/registry/base.rb +65 -0
  33. data/vendor/avm/lib/avm/registry.rb +29 -0
  34. data/vendor/avm/lib/avm/rspec/setup.rb +22 -0
  35. data/vendor/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb +11 -0
  36. data/vendor/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +14 -0
  37. data/vendor/avm/lib/avm/rspec.rb +9 -0
  38. data/vendor/avm/lib/avm/scms/base.rb +28 -0
  39. data/vendor/avm/lib/avm/scms/commit.rb +43 -0
  40. data/vendor/avm/lib/avm/source_stereotypes/base.rb +21 -0
  41. data/vendor/avm/lib/avm/sources/base.rb +67 -0
  42. data/vendor/avm/lib/avm/sources/configuration/_locale.rb +16 -0
  43. data/vendor/avm/lib/avm/sources/configuration/_rubocop.rb +24 -0
  44. data/vendor/avm/lib/avm/sources/configuration/_tests.rb +27 -0
  45. data/vendor/avm/lib/avm/sources/configuration.rb +55 -0
  46. data/vendor/avm/lib/avm/sources.rb +9 -0
  47. data/{lib → vendor/avm/lib}/avm/sync.rb +0 -0
  48. data/vendor/avm/lib/avm/version.rb +1 -1
  49. data/vendor/avm/spec/lib/avm/scms/base_spec.rb +7 -0
  50. data/vendor/avm/spec/lib/avm/source_stereotypes/base_spec.rb +7 -0
  51. data/vendor/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +2 -0
  52. data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb +3 -2
  53. data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  54. data/vendor/{avm-apps → avm-eac_ruby_base1}/Gemfile +0 -0
  55. data/vendor/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +19 -0
  56. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches/i18n.rb +7 -0
  57. data/{lib/avm/patches/class.rb → vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches.rb} +0 -0
  58. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/base.rb +25 -0
  59. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/update/sub_update.rb +56 -0
  60. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes/update.rb +53 -0
  61. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_stereotypes.rb +11 -0
  62. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +7 -0
  63. data/vendor/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb +9 -0
  64. data/vendor/avm-eac_ruby_base1/locale/en.yaml +8 -0
  65. data/vendor/avm-eac_ruby_base1/locale/pt-BR.yaml +8 -0
  66. data/vendor/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_stereotypes/base_spec.rb +7 -0
  67. data/vendor/{avm-apps → avm-eac_ruby_base1}/spec/rubocop_spec.rb +0 -0
  68. data/vendor/{avm-apps → avm-eac_ruby_base1}/spec/spec_helper.rb +0 -0
  69. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_host.rb +2 -2
  70. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_path.rb +2 -2
  71. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy.rb +2 -2
  72. data/vendor/avm-files/Gemfile +5 -0
  73. data/vendor/avm-files/avm-files.gemspec +21 -0
  74. data/vendor/{avm → avm-files}/lib/avm/files/appendable/file_content.rb +0 -0
  75. data/vendor/{avm → avm-files}/lib/avm/files/appendable/plain_directory.rb +0 -0
  76. data/vendor/{avm → avm-files}/lib/avm/files/appendable/resource_base.rb +0 -0
  77. data/vendor/{avm → avm-files}/lib/avm/files/appendable/tar_output_command.rb +0 -0
  78. data/vendor/{avm → avm-files}/lib/avm/files/appendable/templatized_directory.rb +0 -0
  79. data/vendor/{avm → avm-files}/lib/avm/files/appendable.rb +0 -0
  80. data/vendor/{avm → avm-files}/lib/avm/files/appender.rb +0 -0
  81. data/vendor/{avm → avm-files}/lib/avm/files/deploy.rb +0 -0
  82. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/base.rb +2 -2
  83. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/generic_plain.rb +0 -0
  84. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/html.rb +0 -0
  85. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/javascript.rb +1 -0
  86. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/json.rb +0 -0
  87. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/php.rb +1 -0
  88. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/python.rb +1 -0
  89. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/ruby.rb +0 -0
  90. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats/xml.rb +1 -0
  91. data/vendor/{avm → avm-files}/lib/avm/files/formatter/formats.rb +0 -0
  92. data/vendor/{avm → avm-files}/lib/avm/files/formatter/utf8_assert.rb +3 -1
  93. data/vendor/{avm → avm-files}/lib/avm/files/formatter.rb +0 -0
  94. data/vendor/{avm → avm-files}/lib/avm/files/rotate.rb +0 -0
  95. data/vendor/avm-files/lib/avm/files/version.rb +7 -0
  96. data/vendor/avm-files/lib/avm/files.rb +9 -0
  97. data/vendor/avm-files/spec/rubocop_spec.rb +3 -0
  98. data/vendor/avm-files/spec/spec_helper.rb +4 -0
  99. data/vendor/avm-git/Gemfile +5 -0
  100. data/vendor/avm-git/avm-git.gemspec +21 -0
  101. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/commit_info.rb +0 -0
  102. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/base.rb +0 -0
  103. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/last.rb +0 -0
  104. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/manual.rb +0 -0
  105. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/new.rb +0 -0
  106. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/nth.rb +0 -0
  107. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules/unique.rb +0 -0
  108. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit/rules.rb +0 -0
  109. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit_path/ruby.rb +0 -0
  110. data/vendor/{avm → avm-git}/lib/avm/git/auto_commit_path.rb +0 -0
  111. data/vendor/{avm → avm-git}/lib/avm/git/commit/class_methods.rb +0 -0
  112. data/vendor/{avm → avm-git}/lib/avm/git/commit/deploy.rb +0 -0
  113. data/vendor/{avm → avm-git}/lib/avm/git/commit/deploy_methods.rb +0 -0
  114. data/vendor/{avm → avm-git}/lib/avm/git/commit/diff_tree_line.rb +0 -0
  115. data/vendor/{avm → avm-git}/lib/avm/git/commit/file.rb +0 -0
  116. data/vendor/{avm → avm-git}/lib/avm/git/commit.rb +0 -0
  117. data/vendor/{avm → avm-git}/lib/avm/git/file_auto_fixup.rb +0 -0
  118. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/commits.rb +0 -0
  119. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/git_subrepos.rb +0 -0
  120. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/local_branch.rb +0 -0
  121. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/local_tag.rb +0 -0
  122. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/push.rb +0 -0
  123. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/remote.rb +0 -0
  124. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/test.rb +2 -2
  125. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/tracker.rb +0 -0
  126. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/validation.rb +0 -0
  127. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/validations.rb +0 -0
  128. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete/working_tree.rb +0 -0
  129. data/vendor/{avm → avm-git}/lib/avm/git/issue/complete.rb +0 -0
  130. data/vendor/{avm → avm-git}/lib/avm/git/issue/deliver.rb +0 -0
  131. data/vendor/{avm → avm-git}/lib/avm/git/issue.rb +0 -0
  132. data/vendor/{avm → avm-git}/lib/avm/git/organize/reference_update.rb +0 -0
  133. data/vendor/{avm → avm-git}/lib/avm/git/organize/repository.rb +0 -0
  134. data/vendor/{avm → avm-git}/lib/avm/git/organize.rb +0 -0
  135. data/vendor/{avm → avm-git}/lib/avm/git/revision_test.rb +2 -3
  136. data/vendor/avm-git/lib/avm/git/scms/git/change_tracker.rb +35 -0
  137. data/vendor/avm-git/lib/avm/git/scms/git/commit.rb +55 -0
  138. data/vendor/avm-git/lib/avm/git/scms/git.rb +65 -0
  139. data/vendor/avm-git/lib/avm/git/scms/git_subrepo.rb +41 -0
  140. data/vendor/avm-git/lib/avm/git/scms/provider.rb +19 -0
  141. data/vendor/{avm-apps/lib/avm/apps/jobs.rb → avm-git/lib/avm/git/scms.rb} +2 -2
  142. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/parent.rb +0 -0
  143. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/remote.rb +0 -0
  144. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check/show_result.rb +0 -0
  145. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_check.rb +0 -0
  146. data/vendor/{avm → avm-git}/lib/avm/git/subrepo_checks.rb +0 -0
  147. data/vendor/{avm-apps/lib/avm/apps → avm-git/lib/avm/git}/version.rb +2 -2
  148. data/vendor/{avm → avm-git}/lib/avm/git.rb +3 -2
  149. data/vendor/{avm → avm-git}/spec/lib/avm/git/auto_commit_path_spec.rb +4 -3
  150. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/deploy_spec.rb +0 -0
  151. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec.rb +0 -0
  152. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +0 -0
  153. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +0 -0
  154. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +0 -0
  155. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +0 -0
  156. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +0 -0
  157. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +0 -0
  158. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +0 -0
  159. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +0 -0
  160. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +0 -0
  161. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +0 -0
  162. data/vendor/{avm → avm-git}/spec/lib/avm/git/commit_spec.rb +0 -0
  163. data/vendor/avm-git/spec/lib/avm/git/scms/git_spec.rb +8 -0
  164. data/vendor/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +8 -0
  165. data/vendor/avm-git/spec/rubocop_spec.rb +3 -0
  166. data/vendor/avm-git/spec/spec_helper.rb +4 -0
  167. data/vendor/eac_cli/lib/eac_cli/config.rb +6 -3
  168. data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +1 -1
  169. data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +9 -1
  170. data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +6 -0
  171. data/vendor/eac_cli/lib/eac_cli/runner_with/help/builder.rb +3 -3
  172. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  173. data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +6 -5
  174. data/vendor/eac_fs/Gemfile +5 -0
  175. data/vendor/eac_fs/eac_fs.gemspec +20 -0
  176. data/vendor/{eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb → eac_fs/lib/eac_fs/cache.rb} +7 -2
  177. data/{lib/avm → vendor/eac_fs/lib/eac_fs}/cached_download.rb +4 -4
  178. data/vendor/eac_fs/lib/eac_fs/file_info.rb +29 -0
  179. data/vendor/eac_fs/lib/eac_fs/patches/module/fs_cache.rb +10 -0
  180. data/vendor/eac_fs/lib/eac_fs/patches/module.rb +4 -0
  181. data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +15 -0
  182. data/vendor/eac_fs/lib/eac_fs/patches/object.rb +4 -0
  183. data/vendor/eac_fs/lib/eac_fs/patches/pathname/info.rb +12 -0
  184. data/vendor/eac_fs/lib/eac_fs/patches/pathname.rb +4 -0
  185. data/vendor/{avm/lib/avm/files.rb → eac_fs/lib/eac_fs/patches.rb} +0 -5
  186. data/vendor/eac_fs/lib/eac_fs/version.rb +5 -0
  187. data/vendor/eac_fs/lib/eac_fs.rb +7 -0
  188. 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
  189. data/vendor/eac_fs/spec/rubocop_spec.rb +3 -0
  190. data/vendor/eac_fs/spec/spec_helper.rb +4 -0
  191. data/vendor/eac_git/lib/eac_git/local/commit/archive.rb +1 -1
  192. data/vendor/eac_git/lib/eac_git/local/commit.rb +24 -5
  193. data/vendor/eac_git/lib/eac_git/local/log.rb +17 -0
  194. data/vendor/eac_git/lib/eac_git/local.rb +39 -0
  195. data/vendor/eac_git/lib/eac_git/rspec/stubbed_git_local_repo.rb +11 -0
  196. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  197. data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +2 -1
  198. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +4 -4
  199. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +1 -0
  200. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +16 -7
  201. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  202. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb +0 -5
  203. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  204. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb +7 -0
  205. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/compact.rb +22 -0
  206. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb +9 -0
  207. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/self_included_modules.rb +7 -0
  208. data/{lib/avm/patches/class/i18n.rb → vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb} +8 -7
  209. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/call_if_proc.rb +11 -0
  210. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/compact.rb +20 -0
  211. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/i18n_translate.rb +13 -0
  212. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/delimited.rb +16 -0
  213. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +10 -10
  214. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/string_delimited.rb +70 -0
  215. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  216. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb +20 -0
  217. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb +25 -0
  218. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb +30 -0
  219. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb +11 -0
  220. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb +20 -0
  221. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb +34 -0
  222. data/vendor/eac_templates/lib/eac_templates/patches/module/erb_template.rb +9 -0
  223. data/vendor/eac_templates/lib/eac_templates/patches/module.rb +4 -0
  224. data/vendor/eac_templates/lib/eac_templates/patches/object/erb_template.rb +9 -0
  225. data/vendor/eac_templates/lib/eac_templates/patches/object.rb +4 -0
  226. data/vendor/eac_templates/lib/eac_templates/patches.rb +4 -0
  227. data/vendor/eac_templates/lib/eac_templates/version.rb +1 -1
  228. metadata +192 -279
  229. data/lib/avm/app_src.rb +0 -61
  230. data/lib/avm/fs_cache.rb +0 -11
  231. data/lib/avm/patches/i18n.rb +0 -22
  232. data/lib/avm/patches/object/fs_cache.rb +0 -16
  233. data/lib/avm/patches/object/i18n.rb +0 -9
  234. data/lib/avm/projects/stereotypes/git/update/subrepo.rb +0 -85
  235. data/lib/avm/projects/stereotypes/git/update.rb +0 -41
  236. data/lib/avm/projects/stereotypes/ruby_gem/update.rb +0 -66
  237. data/vendor/avm/lib/avm/files/info.rb +0 -24
  238. data/vendor/avm-apps/avm-apps.gemspec +0 -18
  239. data/vendor/avm-apps/lib/avm/apps/config.rb +0 -19
  240. data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +0 -64
  241. data/vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb +0 -24
  242. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_locale.rb +0 -18
  243. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_rubocop.rb +0 -26
  244. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_tests.rb +0 -29
  245. data/vendor/avm-apps/lib/avm/apps/sources/configuration.rb +0 -57
  246. 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: 3fe2686915966fcba0a1a718e139ea1e4ba92ee4c8f26ddb99abbe550e490061
4
- data.tar.gz: a6a2010d4a8cf1a3647641669e967268a09a93ef993625a19407aae1d7ec9ecc
3
+ metadata.gz: 6d1323f1184dc14780cfebc69d39fc495d7a1e38b7097fbc33259b076decacf9
4
+ data.tar.gz: 8ee9accc32035421261372235b215e04962a4cc6ae13fb04b70f52702ba947b9
5
5
  SHA512:
6
- metadata.gz: 21e08baec23bb4811d5ee4db550dd2b15909f26e02d40ca610f86e651194dcc6ccf19b91d82f9c0fa5b2cfe3c17a8ee8c37459a2e433d831e9a26f2748475e47
7
- data.tar.gz: f150f90534d39728ec14e9ada47b2a0e13522b47218984447832075ee3876c20dad0cddf5bc11ee7c899eb06e49c7b6845354fb631c06affc439b5b72bfe0e23
6
+ metadata.gz: a7a0c52c5243b5b761b283e6a5fcec27e6ae5cd9937cb23c4c57889cf37d7808cac60606809cbe01aa24467a5cc5a6c3b818ca63bc088f9f72bdc350cffa926c
7
+ data.tar.gz: da9d2f826df7d74debc75592028919fd04ac6307f813b7e0b165643c97a65c6451c14150ff33f3be14360afc16d261e3a842fa9accbc204f0d63045c85db293a
@@ -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/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
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_base0/core_ext'
4
+
5
+ module Avm
6
+ module Tools
7
+ class Runner
8
+ class AppSrc
9
+ class Ruby
10
+ class Bundler
11
+ class GemfileLock
12
+ module Git
13
+ private
14
+
15
+ def git_continue
16
+ return unless check_capability(__method__, :git_repo, :continue)
17
+
18
+ infom "Adding \"#{gemfile_lock}\"..."
19
+ instance.git_repo.command('add', gemfile_lock).execute!
20
+ if rebase_conflict?
21
+ git_continue_run('rebase')
22
+ elsif cherry_conflict?
23
+ git_continue_run('cherry-pick')
24
+ else
25
+ raise 'Unknown how to continue'
26
+ end
27
+ end
28
+
29
+ def git_continue_run(command)
30
+ infom "\"#{command}\" --continue..."
31
+ cmd = instance.git_repo.command(command, '--continue')
32
+ .envvar('GIT_EDITOR', 'true')
33
+ return unless !cmd.system && !conflict?
34
+
35
+ fatal_error "\"#{cmd}\" failed and there is no conflict"
36
+ end
37
+
38
+ def git_reset_checkout
39
+ return unless check_capability(__method__, :git_repo, nil)
40
+
41
+ git_reset_gemfile_lock
42
+ git_checkout_gemfile_lock
43
+ end
44
+
45
+ def git_checkout_gemfile_lock
46
+ infom 'Checkouting...'
47
+ instance.git_repo.command('checkout', '--', gemfile_lock).system!
48
+ end
49
+
50
+ def git_reset_gemfile_lock
51
+ infom 'Reseting...'
52
+ instance.git_repo.command('reset', gemfile_lock).system! if
53
+ ::File.exist?(gemfile_lock)
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -9,18 +9,21 @@ module Avm
9
9
  class Ruby
10
10
  class Bundler
11
11
  class GemfileLock
12
+ require_sub __FILE__, include_modules: true
12
13
  runner_with :help do
13
14
  desc 'Manipulage a "Gemfile.lock" file.'
14
15
  bool_opt '-c', '--continue', 'Continue Git rebase/cherry-pick.'
15
16
  bool_opt '-i', '--install', 'Run "bundle install".'
16
17
  bool_opt '-u', '--update', 'Run "bundle update".'
17
18
  bool_opt '-r', '--recursive', 'Run until Git rebase/cherry-pick is finished.'
18
- bool_opt '-a', '--all', 'Same as "-ciru".'
19
+ bool_opt '-a', '--all', 'Same as "-cirud".'
20
+ bool_opt '-d', '--delete', 'Delete Gemfile.lock'
19
21
  end
20
22
 
21
23
  def run
22
24
  loop do
23
25
  git_reset_checkout
26
+ delete_gemfile_lock
24
27
  bundle_update
25
28
  bundle_install
26
29
  git_continue
@@ -34,17 +37,14 @@ module Avm
34
37
  !option_or_all?(:recursive) || !conflict?
35
38
  end
36
39
 
37
- def rebasing?
38
- instance.git_repo.root_path.join('.git', 'rebase-merge').exist?
39
- end
40
+ def delete_gemfile_lock
41
+ return unless check_capability(__method__, nil, :delete)
40
42
 
41
- def git_reset_checkout
42
- return unless check_capability(__method__, :git_repo, nil)
43
+ ::FileUtils.rm_f(gemfile_lock)
44
+ end
43
45
 
44
- infom 'Reseting...'
45
- instance.git_repo.command('reset', gemfile_lock).system!
46
- infom 'Checkouting...'
47
- instance.git_repo.command('checkout', '--', gemfile_lock).system!
46
+ def rebasing?
47
+ instance.git_repo.root_path.join('.git', 'rebase-merge').exist?
48
48
  end
49
49
 
50
50
  def bundle_install
@@ -61,44 +61,14 @@ module Avm
61
61
  bundle_run('update')
62
62
  end
63
63
 
64
- def git_continue
65
- return unless check_capability(__method__, :git_repo, :continue)
66
-
67
- infom "Adding \"#{gemfile_lock}\"..."
68
- instance.git_repo.command('add', gemfile_lock).execute!
69
- if rebase_conflict?
70
- git_continue_run('rebase')
71
- elsif cherry_conflict?
72
- git_continue_run('cherry-pick')
73
- else
74
- raise 'Unknown how to continue'
75
- end
76
- end
77
-
78
- def git_continue_run(command)
79
- infom "\"#{command}\" --continue..."
80
- cmd = instance.git_repo.command(command, '--continue').envvar('GIT_EDITOR', 'true')
81
- return unless !cmd.system && !conflict?
82
-
83
- fatal_error "\"#{cmd}\" failed and there is no conflict"
84
- end
85
-
86
64
  def gemfile_lock
87
65
  'Gemfile.lock'
88
66
  end
89
67
 
90
- def git_uncached
91
- ::EacGit::Local.new(git_path)
92
- end
93
-
94
68
  def bundle_run(*args)
95
69
  instance.ruby_gem.bundle(*args).system!
96
70
  end
97
71
 
98
- def git_path
99
- '.'
100
- end
101
-
102
72
  def conflict?
103
73
  rebase_conflict? || cherry_conflict?
104
74
  end
@@ -121,7 +91,7 @@ module Avm
121
91
 
122
92
  def check_capability(caller, capability, option)
123
93
  return false unless option.blank? || option_or_all?(option)
124
- return true if instance.respond_to?(capability)
94
+ return true if capability.if_present(true) { |v| instance.respond_to?(v) }
125
95
 
126
96
  warn "Cannot run #{caller}: instance has no capability \"#{capability}\""
127
97
  false
@@ -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.105.0'
5
+ VERSION = '0.109.0'
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