eac_tools 0.83.0 → 0.84.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +32 -46
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/Gemfile +2 -2
  5. data/sub/avm/avm.gemspec +3 -3
  6. data/sub/avm/lib/avm/applications/base/publishing.rb +1 -1
  7. data/sub/avm/lib/avm/data/rotate.rb +1 -1
  8. data/sub/avm/lib/avm/docker/image.rb +3 -3
  9. data/sub/avm/lib/avm/docker/runner.rb +1 -1
  10. data/sub/avm/lib/avm/entries/base/uri_components_entries_values/path_component.rb +1 -1
  11. data/sub/avm/lib/avm/entries/keys_constants_set.rb +1 -1
  12. data/sub/avm/lib/avm/entries/uri_builder.rb +2 -2
  13. data/sub/avm/lib/avm/executables.rb +1 -1
  14. data/sub/avm/lib/avm/instances/base/entry_keys.rb +1 -1
  15. data/sub/avm/lib/avm/instances/base/install.rb +1 -1
  16. data/sub/avm/lib/avm/instances/base.rb +1 -1
  17. data/sub/avm/lib/avm/instances/ids.rb +1 -1
  18. data/sub/avm/lib/avm/launcher/context/instance_manager/cached_instances.rb +1 -1
  19. data/sub/avm/lib/avm/launcher/context/instance_manager.rb +1 -1
  20. data/sub/avm/lib/avm/launcher/instances/base.rb +2 -2
  21. data/sub/avm/lib/avm/launcher/paths/logical.rb +3 -3
  22. data/sub/avm/lib/avm/launcher/publish/check_result.rb +2 -4
  23. data/sub/avm/lib/avm/path_string.rb +1 -1
  24. data/sub/avm/lib/avm/result.rb +6 -10
  25. data/sub/avm/lib/avm/rspec/shared_examples/avm_file_format_file_resource_name.rb +1 -1
  26. data/sub/avm/lib/avm/rspec/shared_examples/avm_file_formats_with_fixtures.rb +5 -5
  27. data/sub/avm/lib/avm/rspec/shared_examples/avm_source_generated.rb +3 -3
  28. data/sub/avm/lib/avm/rspec/shared_examples/entries_values.rb +2 -2
  29. data/sub/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb +2 -2
  30. data/sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +2 -2
  31. data/sub/avm/lib/avm/scms/auto_commit/file_resource_name.rb +1 -1
  32. data/sub/avm/lib/avm/scms/auto_commit/rules.rb +3 -3
  33. data/sub/avm/lib/avm/scms/commit_info.rb +9 -3
  34. data/sub/avm/lib/avm/source_generators/runner.rb +1 -1
  35. data/sub/avm/lib/avm/sources/base/subs.rb +1 -1
  36. data/sub/avm/lib/avm/sources/base/testing.rb +2 -2
  37. data/sub/avm/lib/avm/sources/tests/single.rb +1 -1
  38. data/sub/avm/lib/avm/version.rb +1 -1
  39. data/sub/avm/spec/lib/avm/applications/base/entries_spec.rb +1 -1
  40. data/sub/avm/spec/lib/avm/applications/base_spec.rb +3 -3
  41. data/sub/avm/spec/lib/avm/file_formats/base_spec.rb +1 -1
  42. data/sub/avm/spec/lib/avm/instances/base_spec.rb +59 -59
  43. data/sub/avm/spec/lib/avm/launcher/instances/base_spec.rb +9 -9
  44. data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/avm-tools_stub/avm-tools.gemspec +1 -1
  45. data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/ruby_gem_stub/ruby_gem_stub.gemspec +1 -1
  46. data/sub/avm/spec/lib/avm/patches/eac_config/entry_path_spec.rb +1 -1
  47. data/sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb +1 -1
  48. data/sub/avm/spec/lib/avm/scms/base_spec.rb +1 -1
  49. data/sub/avm/spec/lib/avm/sources/base_spec.rb +1 -1
  50. data/sub/avm/spec/lib/avm/sources/runner_spec.rb +1 -1
  51. data/sub/avm/spec/rubocop_spec.rb +1 -1
  52. data/sub/avm/spec/spec_helper.rb +1 -1
  53. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +1 -1
  54. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/documents_owner.rb +30 -0
  55. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb +37 -0
  56. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb +1 -1
  57. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +2 -19
  58. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build.rb +2 -0
  59. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +13 -3
  60. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/media.rb +28 -0
  61. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/title.rb +26 -0
  62. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document.rb +56 -0
  63. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb +2 -4
  64. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document/build.rb +46 -0
  65. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document.rb +30 -0
  66. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/documents.rb +28 -0
  67. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  68. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb +6 -6
  69. metadata +20 -219
  70. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/document/media.rb +0 -30
  71. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/document/title.rb +0 -28
  72. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/document.rb +0 -48
  73. data/sub/avm-eac_python_base0/Gemfile +0 -8
  74. data/sub/avm-eac_python_base0/avm-eac_python_base0.gemspec +0 -20
  75. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/executables.rb +0 -22
  76. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/file_formats/base.rb +0 -20
  77. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/file_formats.rb +0 -11
  78. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/version.rb +0 -7
  79. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0.rb +0 -9
  80. data/sub/avm-eac_python_base0/spec/lib/avm/eac_python_base0/file_formats/base_spec.rb +0 -7
  81. data/sub/avm-eac_python_base0/spec/lib/avm/eac_python_base0/file_formats/base_spec_files/python_code.source +0 -30
  82. data/sub/avm-eac_python_base0/spec/lib/avm/eac_python_base0/file_formats/base_spec_files/python_code.target +0 -39
  83. data/sub/avm-eac_python_base0/spec/rubocop_spec.rb +0 -3
  84. data/sub/avm-eac_python_base0/spec/spec_helper.rb +0 -4
  85. data/sub/avm-eac_redmine_base0/Gemfile +0 -8
  86. data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +0 -27
  87. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/apache_host.rb +0 -12
  88. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/database.rb +0 -30
  89. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/files.rb +0 -22
  90. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/gitolite.rb +0 -55
  91. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb +0 -46
  92. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/nodejs.rb +0 -22
  93. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/web.rb +0 -20
  94. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb +0 -58
  95. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb +0 -19
  96. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +0 -106
  97. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/entity_base.rb +0 -35
  98. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/project.rb +0 -26
  99. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/root.rb +0 -21
  100. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/wiki_page.rb +0 -54
  101. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api.rb +0 -14
  102. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb +0 -17
  103. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/read.rb +0 -27
  104. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/write.rb +0 -70
  105. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page.rb +0 -30
  106. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project.rb +0 -26
  107. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb +0 -56
  108. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb +0 -14
  109. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances.rb +0 -11
  110. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base.rb +0 -36
  111. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/core_update.rb +0 -120
  112. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/core_update.rb +0 -65
  113. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/docker.rb +0 -19
  114. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners.rb +0 -13
  115. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources.rb +0 -11
  116. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +0 -7
  117. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0.rb +0 -9
  118. data/sub/avm-eac_redmine_base0/locale/en.yml +0 -6
  119. data/sub/avm-eac_redmine_base0/locale/pt-BR.yml +0 -6
  120. data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/apache_host_spec.rb +0 -22
  121. data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/apache_host_spec_files/apache_host_spec_no_ssl_content.conf +0 -11
  122. data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/base/gitolite_spec.rb +0 -26
  123. data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/base/gitolite_spec_files/config.yml +0 -10
  124. data/sub/avm-eac_redmine_base0/spec/rubocop_spec.rb +0 -3
  125. data/sub/avm-eac_redmine_base0/spec/spec_helper.rb +0 -5
  126. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/install.sh.template +0 -45
  127. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/secrets.yml +0 -8
  128. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template +0 -33
  129. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_host_dockerfile +0 -8
  130. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template +0 -10
  131. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_https_virtualhost.conf.template +0 -16
  132. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_path_dockerfile +0 -5
  133. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template +0 -52
  134. data/sub/avm-eac_ruby_base1/Gemfile +0 -8
  135. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +0 -24
  136. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb +0 -56
  137. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb +0 -19
  138. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb +0 -34
  139. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/depends_on.rb +0 -25
  140. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb +0 -44
  141. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/in_gemfile.rb +0 -17
  142. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb +0 -77
  143. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb +0 -33
  144. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb +0 -19
  145. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/ruby_requirement.rb +0 -16
  146. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb +0 -26
  147. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser.rb +0 -25
  148. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb +0 -11
  149. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +0 -47
  150. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb +0 -22
  151. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats.rb +0 -11
  152. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances/mixin.rb +0 -19
  153. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances.rb +0 -11
  154. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb +0 -126
  155. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/specification.rb +0 -63
  156. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb +0 -13
  157. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb +0 -11
  158. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/local_project_mixin.rb +0 -28
  159. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +0 -130
  160. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base.rb +0 -37
  161. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes.rb +0 -11
  162. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/preferred_version_requirements.rb +0 -43
  163. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/setup.rb +0 -16
  164. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/source_generator.rb +0 -22
  165. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec.rb +0 -11
  166. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb +0 -31
  167. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb +0 -17
  168. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb +0 -42
  169. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb +0 -55
  170. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb +0 -62
  171. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb +0 -19
  172. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb +0 -42
  173. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb +0 -45
  174. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems.rb +0 -11
  175. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb +0 -77
  176. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/rubocop.rb +0 -30
  177. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base.rb +0 -18
  178. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners.rb +0 -11
  179. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/dependencies.rb +0 -27
  180. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/gemfile_lock.rb +0 -27
  181. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb +0 -30
  182. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/version_builder.rb +0 -52
  183. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb +0 -111
  184. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators.rb +0 -11
  185. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb +0 -39
  186. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +0 -68
  187. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb +0 -42
  188. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb +0 -28
  189. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +0 -73
  190. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb +0 -43
  191. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb +0 -25
  192. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb +0 -31
  193. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +0 -19
  194. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +0 -61
  195. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb +0 -23
  196. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb +0 -55
  197. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundle.rb +0 -29
  198. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +0 -100
  199. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb +0 -60
  200. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb +0 -89
  201. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb +0 -76
  202. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb +0 -19
  203. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +0 -68
  204. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb +0 -13
  205. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb +0 -59
  206. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/minitest.rb +0 -29
  207. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb +0 -52
  208. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb +0 -29
  209. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple.rb +0 -90
  210. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/rspec.rb +0 -25
  211. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb +0 -13
  212. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb +0 -59
  213. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +0 -64
  214. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb +0 -11
  215. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +0 -7
  216. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb +0 -9
  217. data/sub/avm-eac_ruby_base1/locale/en.yml +0 -9
  218. data/sub/avm-eac_ruby_base1/locale/pt-BR.yml +0 -9
  219. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb +0 -7
  220. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out +0 -192
  221. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml +0 -300
  222. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out +0 -245
  223. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml +0 -355
  224. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.source.out +0 -0
  225. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.target.yaml +0 -305
  226. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb +0 -15
  227. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.source +0 -6
  228. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.target +0 -3
  229. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.source +0 -6
  230. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.target +0 -5
  231. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/build_spec.rb +0 -46
  232. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/specification_spec.rb +0 -49
  233. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb +0 -24
  234. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base_spec.rb +0 -23
  235. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/preferred_version_requirements_spec.rb +0 -23
  236. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb +0 -14
  237. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb +0 -7
  238. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +0 -36
  239. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile +0 -5
  240. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock +0 -27
  241. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir2/empty.rb +0 -1
  242. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb +0 -4
  243. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb +0 -19
  244. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile +0 -8
  245. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock +0 -1
  246. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore +0 -2
  247. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec +0 -19
  248. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb +0 -7
  249. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb +0 -9
  250. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/rubocop_spec.rb +0 -3
  251. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/spec_helper.rb +0 -4
  252. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile +0 -8
  253. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock +0 -1
  254. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore +0 -2
  255. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb +0 -5
  256. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb +0 -7
  257. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec +0 -19
  258. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/rubocop_spec.rb +0 -3
  259. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb +0 -4
  260. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +0 -30
  261. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile +0 -5
  262. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock +0 -19
  263. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile +0 -14
  264. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/exe/myrunner +0 -5
  265. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem/version.rb +0 -5
  266. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem.rb +0 -5
  267. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/mygem.gemspec +0 -17
  268. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +0 -16
  269. data/sub/avm-eac_ruby_base1/spec/rubocop_spec.rb +0 -3
  270. data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +0 -8
  271. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template +0 -19
  272. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/root_lib.template +0 -7
  273. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile +0 -8
  274. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb +0 -3
  275. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb +0 -4
  276. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 833289c0854aa34e840b31da37d349d002d8d541cdc50ff14983852730bd80f6
4
- data.tar.gz: d6f22ddba4381b075bc4c716155faaa5a086433ce7318609fc6651fce75b6bc4
3
+ metadata.gz: 90cc35695a96e5a68b05547e316935299b3ac32592ba5cb12fc0dfff73853651
4
+ data.tar.gz: 508452fbef29321fe3dc2eb161a6f6a843e548e44f6ff9cbbe2652016650cf03
5
5
  SHA512:
6
- metadata.gz: c72425cd752eaba71ccfb13148f1918110ffd7360d9c156df18f87343f29f12c93c21e53a35ff9f3ee3efd09b3404e68f76f78523c67359c00187b7a7926217a
7
- data.tar.gz: 844fb173354f08332c19f6118cfddb5f385ecccf6f9ed13c7895dcd2f1ba7c196261068ba292e3e18de1262dffdc3d77d5ef96806ac866433afc952923117d56
6
+ metadata.gz: d6c855e202297cacf1b9c9a56c94a389395adaf5942325d0c600c6f8367b0e4b5c89c68a097fe87334da63d31f32f4c9d92b5e7ecaa34406cd5b4491bfb6d358
7
+ data.tar.gz: d11bd3b1702a67c17aee566c2b4845af43c9c398d3a2b52b7276563c4fdfb397c3acd0cc9ab713e88e058a9458a24cef2ab82c5ea260de9b7dd9c2ff1502fb98
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.83.0)
5
- avm (~> 0.84)
6
- avm-eac_asciidoctor_base0 (~> 0.20)
4
+ eac_tools (0.84.0)
5
+ avm (~> 0.84, >= 0.84.1)
6
+ avm-eac_asciidoctor_base0 (~> 0.21)
7
7
  avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
8
8
  avm-eac_github_base0 (~> 0.3)
9
9
  avm-eac_latex_base0 (~> 0.3, >= 0.3.1)
@@ -19,15 +19,15 @@ PATH
19
19
  avm-eac_wordpress_base0 (~> 0.3, >= 0.3.1)
20
20
  avm-git (~> 0.14)
21
21
  avm-tools (~> 0.159)
22
- eac_ruby_utils (~> 0.119, >= 0.119.2)
22
+ eac_ruby_utils (~> 0.120)
23
23
 
24
24
  PATH
25
25
  remote: sub/avm-eac_asciidoctor_base0
26
26
  specs:
27
- avm-eac_asciidoctor_base0 (0.20.0)
27
+ avm-eac_asciidoctor_base0 (0.21.0)
28
28
  asciidoctor (~> 2.0, >= 2.0.20)
29
29
  avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
30
- eac_ruby_utils (~> 0.119, >= 0.119.2)
30
+ eac_ruby_utils (~> 0.120)
31
31
  os (~> 1.1, >= 1.1.4)
32
32
  rouge (~> 3.30)
33
33
 
@@ -77,13 +77,6 @@ PATH
77
77
  avm (~> 0.79)
78
78
  eac_ruby_utils (~> 0.119, >= 0.119.1)
79
79
 
80
- PATH
81
- remote: sub/avm-eac_python_base0
82
- specs:
83
- avm-eac_python_base0 (0.2.2)
84
- avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
85
- eac_ruby_utils (~> 0.119, >= 0.119.2)
86
-
87
80
  PATH
88
81
  remote: sub/avm-eac_rails_base0
89
82
  specs:
@@ -100,19 +93,6 @@ PATH
100
93
  avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
101
94
  eac_ruby_utils (~> 0.119, >= 0.119.2)
102
95
 
103
- PATH
104
- remote: sub/avm-eac_redmine_base0
105
- specs:
106
- avm-eac_redmine_base0 (0.22.0)
107
- avm (~> 0.81)
108
- avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
109
- avm-eac_rails_base1 (~> 0.10)
110
- avm-eac_ubuntu_base0 (~> 0.5)
111
- curb (~> 0.9, >= 0.9.11)
112
- eac_fs (~> 0.16)
113
- eac_rest (~> 0.10)
114
- eac_ruby_utils (~> 0.119, >= 0.119.2)
115
-
116
96
  PATH
117
97
  remote: sub/avm-eac_redmine_plugin_base0
118
98
  specs:
@@ -120,16 +100,6 @@ PATH
120
100
  avm-eac_ruby_base1 (~> 0.27, >= 0.27.1)
121
101
  eac_ruby_utils (~> 0.107, >= 0.107.1)
122
102
 
123
- PATH
124
- remote: sub/avm-eac_ruby_base1
125
- specs:
126
- avm-eac_ruby_base1 (0.33.1)
127
- aranha-parsers (~> 0.22)
128
- avm (~> 0.84)
129
- avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
130
- eac_envs-http (~> 0.4, >= 0.4.1)
131
- eac_ruby_utils (~> 0.119, >= 0.119.2)
132
-
133
103
  PATH
134
104
  remote: sub/avm-eac_ubuntu_base0
135
105
  specs:
@@ -198,14 +168,14 @@ PATH
198
168
  PATH
199
169
  remote: sub/avm
200
170
  specs:
201
- avm (0.84.0)
202
- aranha-parsers (~> 0.21)
203
- eac_cli (~> 0.38, >= 0.38.1)
171
+ avm (0.84.1)
172
+ aranha-parsers (~> 0.22)
173
+ eac_cli (~> 0.39)
204
174
  eac_config (~> 0.14, >= 0.14.1)
205
175
  eac_docker (~> 0.7)
206
176
  eac_fs (~> 0.16)
207
177
  eac_git (~> 0.14, >= 0.14.1)
208
- eac_ruby_utils (~> 0.119, >= 0.119.2)
178
+ eac_ruby_utils (~> 0.120)
209
179
  eac_templates (~> 0.5)
210
180
  filesize (~> 0.2)
211
181
  htmlbeautifier (~> 1.4, >= 1.4.2)
@@ -238,6 +208,24 @@ GEM
238
208
  ofx-parser (~> 1.1)
239
209
  asciidoctor (2.0.20)
240
210
  ast (2.4.2)
211
+ avm-eac_python_base0 (0.2.2)
212
+ avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
213
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
214
+ avm-eac_redmine_base0 (0.22.0)
215
+ avm (~> 0.81)
216
+ avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
217
+ avm-eac_rails_base1 (~> 0.10)
218
+ avm-eac_ubuntu_base0 (~> 0.5)
219
+ curb (~> 0.9, >= 0.9.11)
220
+ eac_fs (~> 0.16)
221
+ eac_rest (~> 0.10)
222
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
223
+ avm-eac_ruby_base1 (0.33.1)
224
+ aranha-parsers (~> 0.22)
225
+ avm (~> 0.84)
226
+ avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
227
+ eac_envs-http (~> 0.4, >= 0.4.1)
228
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
241
229
  base64 (0.2.0)
242
230
  clipboard (1.3.6)
243
231
  colorize (0.8.1)
@@ -284,7 +272,7 @@ GEM
284
272
  rubocop (~> 1.57, >= 1.57.1)
285
273
  rubocop-rails (~> 2.21, >= 2.21.2)
286
274
  rubocop-rspec (~> 2.24, >= 2.24.1)
287
- eac_ruby_utils (0.119.2)
275
+ eac_ruby_utils (0.120.0)
288
276
  activesupport (>= 4, < 7)
289
277
  addressable (~> 2.8, >= 2.8.5)
290
278
  bundler
@@ -293,7 +281,7 @@ GEM
293
281
  eac_templates (0.5.0)
294
282
  eac_config (~> 0.12)
295
283
  eac_ruby_utils (~> 0.112)
296
- faraday (2.7.11)
284
+ faraday (2.7.12)
297
285
  base64
298
286
  faraday-net_http (>= 2.0, < 3.1)
299
287
  ruby2_keywords (>= 0.0.4)
@@ -372,10 +360,11 @@ GEM
372
360
  rubocop (~> 1.41)
373
361
  rubocop-factory_bot (2.24.0)
374
362
  rubocop (~> 1.33)
375
- rubocop-rails (2.22.1)
363
+ rubocop-rails (2.22.2)
376
364
  activesupport (>= 4.2.0)
377
365
  rack (>= 1.1)
378
366
  rubocop (>= 1.33.0, < 2.0)
367
+ rubocop-ast (>= 1.30.0, < 2.0)
379
368
  rubocop-rspec (2.25.0)
380
369
  rubocop (~> 1.40)
381
370
  rubocop-capybara (~> 2.17)
@@ -413,12 +402,9 @@ DEPENDENCIES
413
402
  avm-eac_latex_base0!
414
403
  avm-eac_php_base0!
415
404
  avm-eac_postgresql_base0!
416
- avm-eac_python_base0!
417
405
  avm-eac_rails_base0!
418
406
  avm-eac_rails_base1!
419
- avm-eac_redmine_base0!
420
407
  avm-eac_redmine_plugin_base0!
421
- avm-eac_ruby_base1!
422
408
  avm-eac_ubuntu_base0!
423
409
  avm-eac_webapp_base0!
424
410
  avm-eac_wordpress_base0!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.83.0'
4
+ VERSION = '0.84.0'
5
5
  end
data/sub/avm/Gemfile CHANGED
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
- eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
7
+ local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if File.exist?(local_gemfile)
data/sub/avm/avm.gemspec CHANGED
@@ -13,13 +13,13 @@ Gem::Specification.new do |s|
13
13
  s.files = Dir['{lib, locale}/**/*']
14
14
  s.required_ruby_version = '>= 2.7'
15
15
 
16
- s.add_dependency 'aranha-parsers', '~> 0.21'
17
- s.add_dependency 'eac_cli', '~> 0.38', '>= 0.38.1'
16
+ s.add_dependency 'aranha-parsers', '~> 0.22'
17
+ s.add_dependency 'eac_cli', '~> 0.39'
18
18
  s.add_dependency 'eac_config', '~> 0.14', '>= 0.14.1'
19
19
  s.add_dependency 'eac_docker', '~> 0.7'
20
20
  s.add_dependency 'eac_fs', '~> 0.16'
21
21
  s.add_dependency 'eac_git', '~> 0.14', '>= 0.14.1'
22
- s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
22
+ s.add_dependency 'eac_ruby_utils', '~> 0.120'
23
23
  s.add_dependency 'eac_templates', '~> 0.5'
24
24
  s.add_dependency 'filesize', '~> 0.2'
25
25
  s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.2'
@@ -26,7 +26,7 @@ module Avm
26
26
  parse_publishable_value(entry(PUBLISHABLE_KEY).optional_value, false)
27
27
  end
28
28
 
29
- def parse_publishable_value(value, hash_to_true) # rubocop:disable Metrics/CyclomaticComplexity
29
+ def parse_publishable_value(value, hash_to_true)
30
30
  return value.with_indifferent_access if parse_publishable_value_hash?(value, hash_to_true)
31
31
  return true if value.nil? || value == true
32
32
  return false if value == false || value.is_a?(::EacRubyUtils::BlankNotBlank)
@@ -93,7 +93,7 @@ module Avm
93
93
  return '_UNKNOWN_MTIME' unless ::File.exist?(source_path)
94
94
 
95
95
  t = ::File.mtime(source_path)
96
- t.strftime('_%Y-%m-%d_%H-%M-%S_') + t.strftime('%z').gsub(/\A\+/, 'P').gsub(/\A\-/, 'N')
96
+ t.strftime('_%Y-%m-%d_%H-%M-%S_') + t.strftime('%z').gsub(/\A\+/, 'P').gsub(/\A-/, 'N')
97
97
  end
98
98
 
99
99
  def file_extension(basename)
@@ -21,10 +21,10 @@ module Avm
21
21
  end
22
22
 
23
23
  attr_reader :registry
24
- attr_accessor :snapshot
25
- attr_accessor :version
24
+ attr_accessor :snapshot, :version
26
25
 
27
26
  def initialize(registry = nil)
27
+ super()
28
28
  @registry = registry || self.class.default_registry
29
29
  self.snapshot = true
30
30
  self.version = true
@@ -61,7 +61,7 @@ module Avm
61
61
  end
62
62
 
63
63
  def tag_version
64
- [tag_version_version, stereotype_tag].reject(&:blank?).join('_')
64
+ [tag_version_version, stereotype_tag].compact_blank.join('_')
65
65
  end
66
66
 
67
67
  def tag_version_version
@@ -89,7 +89,7 @@ module Avm
89
89
  def output_image_name
90
90
  return unless parsed.image_name
91
91
 
92
- out(docker_image.tag.to_s.strip + "\n")
92
+ out("#{docker_image.tag.to_s.strip}\n")
93
93
  end
94
94
 
95
95
  def registry_uncached
@@ -10,7 +10,7 @@ module Avm
10
10
  class PathComponent < ::Avm::Entries::Base::UriComponentsEntriesValues::GenericComponent
11
11
  def setup
12
12
  super
13
- define_inherited_value_proc_method { |value| value + '/' + id }
13
+ define_inherited_value_proc_method { |value| "#{value}/#{id}" }
14
14
  end
15
15
  end
16
16
  end
@@ -22,7 +22,7 @@ module Avm
22
22
 
23
23
  # @return [String]
24
24
  def key_const_set(prefix, suffix)
25
- key = [prefix, suffix].reject(&:blank?).join('.')
25
+ key = [prefix, suffix].compact_blank.join('.')
26
26
  entries_provider_class.const_set(key.gsub('.', '_').upcase, key)
27
27
  key
28
28
  end
@@ -49,7 +49,7 @@ module Avm
49
49
  # @return [String, nil]
50
50
  def field_get(name)
51
51
  v = data[name.to_sym]
52
- v.nil? ? nil : v.to_s
52
+ v&.to_s
53
53
  end
54
54
 
55
55
  def field_set(field, value)
@@ -78,7 +78,7 @@ module Avm
78
78
 
79
79
  # @return [Addressable::URI]
80
80
  def to_required_uri
81
- ::Addressable::URI.new(FIELDS.map { |f| [f.to_sym, field_get(f)] }.to_h)
81
+ ::Addressable::URI.new(FIELDS.to_h { |f| [f.to_sym, field_get(f)] })
82
82
  end
83
83
 
84
84
  private
@@ -15,7 +15,7 @@ module Avm
15
15
  private
16
16
 
17
17
  %w[xdg-open].each do |program|
18
- define_method(program.underscore + '_uncached') do
18
+ define_method("#{program.underscore}_uncached") do
19
19
  env.executable(program, '--version')
20
20
  end
21
21
  end
@@ -11,7 +11,7 @@ module Avm
11
11
  ::Avm::Instances::EntryKeys.all
12
12
  end
13
13
 
14
- ::Avm::Instances::EntryKeys.all.each do |key|
14
+ ::Avm::Instances::EntryKeys.find_each do |key|
15
15
  method_name = key.to_s.variableize
16
16
  define_method method_name do
17
17
  read_entry(key)
@@ -12,7 +12,7 @@ module Avm
12
12
  end
13
13
 
14
14
  def install_data_path_inherited_value_proc(value)
15
- value + '/' + id
15
+ "#{value}/#{id}"
16
16
  end
17
17
 
18
18
  def install_groupname_default_value
@@ -20,7 +20,7 @@ module Avm
20
20
 
21
21
  lists.add_string :access, :local, :ssh
22
22
 
23
- ID_PATTERN = /\A([a-z0-9]+(?:\-[a-z0-9]+)*)_(.+)\z/.freeze
23
+ ID_PATTERN = /\A([a-z0-9]+(?:-[a-z0-9]+)*)_(.+)\z/.freeze
24
24
 
25
25
  class << self
26
26
  def by_id(id)
@@ -6,7 +6,7 @@ module Avm
6
6
  module Instances
7
7
  module Ids
8
8
  ID_PARTS_SEPARATOR = '_'
9
- ID_PATTERN = /\A([a-z0-9]+(?:\-[a-z0-9]+)*)_(.+)\z/.freeze
9
+ ID_PATTERN = /\A([a-z0-9]+(?:-[a-z0-9]+)*)_(.+)\z/.freeze
10
10
  ID_PARSER = ID_PATTERN.to_parser do |m|
11
11
  ::Struct.new(:application_id, :instance_suffix).new(m[1], m[2])
12
12
  end
@@ -12,7 +12,7 @@ module Avm
12
12
  common_constructor :context, :content
13
13
 
14
14
  def instances
15
- content.keys.map { |k| by_logical_path(k).instance }.reject(&:blank?)
15
+ content.keys.map { |k| by_logical_path(k).instance }.compact_blank
16
16
  end
17
17
 
18
18
  def by_logical_path(key)
@@ -49,7 +49,7 @@ module Avm
49
49
  end
50
50
 
51
51
  def cache_instances(instances)
52
- write_cache_file(Hash[instances.map { |i| [i.logical, i.to_h] }])
52
+ write_cache_file(instances.to_h { |i| [i.logical, i.to_h] })
53
53
  instances
54
54
  end
55
55
 
@@ -60,11 +60,11 @@ module Avm
60
60
  end
61
61
 
62
62
  def included?
63
- !::Avm::Launcher::Context.current.settings.excluded_projects.include?(project_name)
63
+ ::Avm::Launcher::Context.current.settings.excluded_projects.exclude?(project_name)
64
64
  end
65
65
 
66
66
  def to_h
67
- super.to_h.merge(parent: parent ? parent.logical : nil)
67
+ super.to_h.merge(parent: parent&.logical)
68
68
  end
69
69
 
70
70
  private
@@ -28,7 +28,7 @@ module Avm
28
28
  end
29
29
 
30
30
  def to_h
31
- { logical: logical, real: real.to_s, parent_path: parent_path ? parent_path.to_h : nil }
31
+ { logical: logical, real: real.to_s, parent_path: parent_path&.to_h }
32
32
  end
33
33
 
34
34
  def project?
@@ -48,13 +48,13 @@ module Avm
48
48
  end
49
49
 
50
50
  def included?
51
- !context.settings.excluded_paths.include?(logical)
51
+ context.settings.excluded_paths.exclude?(logical)
52
52
  end
53
53
 
54
54
  private
55
55
 
56
56
  def stereotypes_uncached
57
- ::Avm::Launcher::Stereotype.stereotypes.select { |s| s.match?(self) }
57
+ ::Avm::Launcher::Stereotype.stereotypes.select { |s| s.match?(self) } # rubocop:disable Style/SelectByRegexp
58
58
  end
59
59
 
60
60
  def build_child(name)
@@ -13,11 +13,9 @@ module Avm
13
13
  lists.add_string :status, :updated, :pending, :blocked, :outdated
14
14
 
15
15
  lists.status.values.each do |status| # rubocop:disable Style/HashEachMethods
16
- class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
17
- def self.#{status}(message)
18
- new('#{status}', message)
16
+ singleton_class.define_method status do |message|
17
+ new(status, message)
19
18
  end
20
- RUBY_EVAL
21
19
  end
22
20
 
23
21
  class << self
@@ -21,7 +21,7 @@ module Avm
21
21
 
22
22
  # @return [Array] List of paths. Blank paths are rejected.
23
23
  def paths
24
- split(SEPARATOR).reject(&:blank?)
24
+ split(SEPARATOR).compact_blank
25
25
  end
26
26
  end
27
27
  end
@@ -11,11 +11,9 @@ module Avm
11
11
  lists.add_string :type, :success, :error, :neutral, :pending, :outdated
12
12
 
13
13
  lists.type.values.each do |type| # rubocop:disable Style/HashEachMethods
14
- class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
15
- def self.#{type}(value)
16
- new(value, TYPE_#{type.upcase})
17
- end
18
- RUBY_EVAL
14
+ singleton_class.define_method type do |value|
15
+ new(value, type)
16
+ end
19
17
  end
20
18
 
21
19
  TYPE_SUCCESS_COLOR = 'green'
@@ -62,11 +60,9 @@ module Avm
62
60
  end
63
61
 
64
62
  lists.type.values.each do |type| # rubocop:disable Style/HashEachMethods
65
- class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
66
- def #{type}?
67
- @type == '#{type}'
68
- end
69
- RUBY_EVAL
63
+ define_method "#{type}?" do
64
+ @type == type
65
+ end
70
66
  end
71
67
 
72
68
  private
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
- ::RSpec.shared_examples 'avm_file_format_file_resource_name' do |input_expected|
5
+ RSpec.shared_examples 'avm_file_format_file_resource_name' do |input_expected|
6
6
  describe '#file_resource_name' do
7
7
  input_expected.each do |path, expected_resource_name|
8
8
  context "when path is \"#{path}\"" do
@@ -3,11 +3,11 @@
3
3
  require 'avm/file_formats/search_formatter'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
- ::RSpec.shared_examples 'avm_file_formats_with_fixtures' do |the_spec_file|
6
+ RSpec.shared_examples 'avm_file_formats_with_fixtures' do |the_spec_file|
7
7
  include_examples 'source_target_fixtures', the_spec_file
8
8
 
9
9
  def format_files_in_directory(target_dir)
10
- ::Avm::FileFormats::SearchFormatter
10
+ Avm::FileFormats::SearchFormatter
11
11
  .new([target_dir], recursive: true, apply: true, verbose: false)
12
12
  .run
13
13
  end
@@ -16,16 +16,16 @@ require 'eac_ruby_utils/core_ext'
16
16
  dir = temp_dir
17
17
  source_basename = source_file_basename_without_source_extname(source_file)
18
18
  source_path = dir.join(source_basename)
19
- ::FileUtils.cp(source_file, source_path)
19
+ FileUtils.cp(source_file, source_path)
20
20
  format_files_in_directory(dir)
21
21
  source_path.read
22
22
  end
23
23
 
24
24
  def source_file_basename_without_source_extname(source_file)
25
- source_file.to_pathname.basename_sub { |b| b.to_path.gsub(/\.source/, '') }.basename
25
+ source_file.to_pathname.basename_sub { |b| b.to_path.gsub('.source', '') }.basename
26
26
  end
27
27
 
28
28
  def target_data(target_file)
29
- ::File.read(target_file)
29
+ File.read(target_file)
30
30
  end
31
31
  end
@@ -3,8 +3,8 @@
3
3
  require 'eac_fs/comparator'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
- ::RSpec.shared_examples 'avm_source_generated' do |spec_file, stereotype, options = {}|
7
- fixtures_dir = ::Pathname.new('base_spec_files').expand_path(::File.dirname(spec_file))
6
+ RSpec.shared_examples 'avm_source_generated' do |spec_file, stereotype, options = {}|
7
+ fixtures_dir = Pathname.new('base_spec_files').expand_path(File.dirname(spec_file))
8
8
 
9
9
  fixtures_dir.children.select(&:directory?).each do |target_dir|
10
10
  context "when target is \"#{target_dir.basename}\"" do
@@ -18,6 +18,6 @@ require 'eac_ruby_utils/core_ext'
18
18
 
19
19
  # @return [EacFs::Comparato]
20
20
  def fs_comparator
21
- ::EacFs::Comparator.new.rename_file('.gitignore', '_gitignore')
21
+ EacFs::Comparator.new.rename_file('.gitignore', '_gitignore')
22
22
  end
23
23
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
- ::RSpec.shared_examples 'entries_values' do |spec_file, expected_values|
5
+ RSpec.shared_examples 'entries_values' do |spec_file, expected_values|
6
6
  describe '#read_entry' do
7
7
  config_path = spec_file.to_pathname
8
8
  config_path = config_path.dirname.join("#{config_path.basename_noext}_files", 'config.yml')
9
- ::EacRubyUtils::Rspec.default_setup.stub_eac_config_node(self, config_path)
9
+ EacRubyUtils::Rspec.default_setup.stub_eac_config_node(self, config_path)
10
10
 
11
11
  expected_values.each do |instance_id, values|
12
12
  values.each do |input, expected|
@@ -2,8 +2,8 @@
2
2
 
3
3
  require 'avm/registry'
4
4
 
5
- ::RSpec.shared_examples 'in_avm_registry' do |registry_method|
6
- let(:avm_registry) { ::Avm::Registry.send(registry_method) }
5
+ RSpec.shared_examples 'in_avm_registry' do |registry_method|
6
+ let(:avm_registry) { Avm::Registry.send(registry_method) }
7
7
 
8
8
  it 'is in the avm registry' do
9
9
  expect(avm_registry.registered_modules).to include(described_class)
@@ -2,8 +2,8 @@
2
2
 
3
3
  require 'avm/registry'
4
4
 
5
- ::RSpec.shared_examples 'not_in_avm_registry' do |registry_method = nil|
6
- registry_method.if_present(::Avm::Registry.registries) { |v| [::Avm::Registry.send(v)] }
5
+ RSpec.shared_examples 'not_in_avm_registry' do |registry_method = nil|
6
+ registry_method.if_present(Avm::Registry.registries) { |v| [Avm::Registry.send(v)] }
7
7
  .each do |registry|
8
8
  context "when registry is #{registry}" do
9
9
  it 'is not in the avm registry' do
@@ -20,7 +20,7 @@ module Avm
20
20
  def commit_message
21
21
  r = class_name
22
22
  r += ': remove' unless path.file?
23
- r + '.'
23
+ "#{r}."
24
24
  end
25
25
 
26
26
  def relative_path
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
- ::EacRubyUtils.require_sub __FILE__
5
+ EacRubyUtils.require_sub __FILE__
6
6
 
7
7
  module Avm
8
8
  module Scms
@@ -26,8 +26,8 @@ module Avm
26
26
 
27
27
  def rule_class_by_key(key)
28
28
  RULES_CLASSES.find { |klass| klass.keys.include?(key) } ||
29
- raise("Rule not find with key \"#{key}\" (Available: " +
30
- RULES_CLASSES.flat_map(&:keys).join(', ') + ')')
29
+ raise("Rule not find with key \"#{key}\" (Available: " \
30
+ "#{RULES_CLASSES.flat_map(&:keys).join(', ')})")
31
31
  end
32
32
  end
33
33
  end
@@ -24,9 +24,15 @@ module Avm
24
24
  immutable_accessor :path, type: :array
25
25
 
26
26
  def to_s
27
- self.class.name.demodulize + '[' +
28
- %w[fixup message].map { |m| [m, send(m)] }.reject { |m| m[1].blank? }
29
- .map { |m| m.join(': ') }.join(',') + ']'
27
+ "#{self.class.name.demodulize}[#{attributes_to_s}]"
28
+ end
29
+
30
+ private
31
+
32
+ # @return [String]
33
+ def attributes_to_s
34
+ %w[fixup message].map { |m| [m, send(m)] }.reject { |m| m[1].blank? }
35
+ .map { |m| m.join(': ') }.join(',')
30
36
  end
31
37
  end
32
38
  end
@@ -47,7 +47,7 @@ module Avm
47
47
 
48
48
  # @return [Hash<String, String>]
49
49
  def options
50
- parsed.option.map { |v| v.split(OPTION_NAME_VALUE_SEPARATOR) }.to_h
50
+ parsed.option.to_h { |v| v.split(OPTION_NAME_VALUE_SEPARATOR) }
51
51
  end
52
52
 
53
53
  def target_path
@@ -28,7 +28,7 @@ module Avm
28
28
  def subs
29
29
  subs_paths_to_search
30
30
  .map { |sub_path| ::Avm::Registry.sources.detect_optional(sub_path, parent: self) }
31
- .reject(&:blank?)
31
+ .compact_blank
32
32
  .sort_by { |sub| [sub.path] }
33
33
  end
34
34