eac_tools 0.96.1 → 0.97.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +43 -42
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +24 -0
  5. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/documents_owner.rb +30 -0
  6. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +37 -0
  7. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +17 -0
  8. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_host.rb +19 -0
  9. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb +12 -0
  10. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb +33 -0
  11. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb +37 -0
  12. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb +92 -0
  13. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb +28 -0
  14. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb +64 -0
  15. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +101 -0
  16. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/theme.rb +41 -0
  17. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build.rb +60 -0
  18. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb +28 -0
  19. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/base.rb +21 -0
  20. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/breadcrumbs.rb +55 -0
  21. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs/document_builder.rb +63 -0
  22. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs.rb +35 -0
  23. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/default_body.rb +21 -0
  24. data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros.rb} +3 -3
  25. data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/instances.rb +1 -1
  26. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging/catcher.rb +47 -0
  27. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging/error.rb +18 -0
  28. data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging.rb} +2 -2
  29. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb +28 -0
  30. data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/source_generators.rb +1 -1
  31. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/instance_to_build.rb +45 -0
  32. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/theme.rb +46 -0
  33. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +49 -0
  34. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/media.rb +28 -0
  35. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/title.rb +31 -0
  36. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document.rb +56 -0
  37. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb +58 -0
  38. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document/build.rb +51 -0
  39. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document.rb +30 -0
  40. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/documents.rb +28 -0
  41. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/ignore_errors_option.rb +44 -0
  42. data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/sources/runners.rb +1 -1
  43. data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/sources.rb +1 -1
  44. data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/version.rb +2 -2
  45. data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb} +1 -1
  46. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +13 -0
  47. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb +81 -0
  48. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc +25 -0
  49. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb +22 -0
  50. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/_media/a_media_file +1 -0
  51. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/_media/a_media_file +1 -0
  52. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/body.adoc +11 -0
  53. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/title +1 -0
  54. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/body.adoc +11 -0
  55. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/_media/a_media_file +1 -0
  56. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/body.adoc +11 -0
  57. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/title +1 -0
  58. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/title +1 -0
  59. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_media/a_media_file +1 -0
  60. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_theme/main.css +1 -0
  61. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/_media/a_media_file +1 -0
  62. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/index.html +1 -0
  63. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/doc2_1/_media/a_media_file +1 -0
  64. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/doc2_1/index.html +1 -0
  65. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/index.html +1 -0
  66. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/index.html +1 -0
  67. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec.rb +8 -0
  68. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/body.adoc +11 -0
  69. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/title +1 -0
  70. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/theme/main.css +1 -0
  71. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb +16 -0
  72. data/sub/avm-eac_asciidoctor_base0/spec/spec_helper/eac_asciidoctor_base0_stubs.rb +55 -0
  73. data/sub/{avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem → avm-eac_asciidoctor_base0}/spec/spec_helper.rb +4 -0
  74. data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/body.adoc +11 -0
  75. data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/title +1 -0
  76. data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/theme/main.css +1 -0
  77. metadata +87 -156
  78. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +0 -22
  79. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb +0 -56
  80. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb +0 -19
  81. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb +0 -34
  82. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/depends_on.rb +0 -25
  83. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb +0 -44
  84. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/in_gemfile.rb +0 -17
  85. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb +0 -77
  86. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb +0 -33
  87. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb +0 -19
  88. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/ruby_requirement.rb +0 -16
  89. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb +0 -26
  90. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser.rb +0 -25
  91. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb +0 -11
  92. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +0 -47
  93. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb +0 -22
  94. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances/mixin.rb +0 -19
  95. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb +0 -126
  96. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/specification.rb +0 -63
  97. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb +0 -11
  98. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/local_project_mixin.rb +0 -28
  99. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +0 -130
  100. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base.rb +0 -37
  101. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes.rb +0 -11
  102. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/preferred_version_requirements.rb +0 -43
  103. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/setup.rb +0 -16
  104. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/source_generator.rb +0 -22
  105. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec.rb +0 -11
  106. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb +0 -31
  107. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb +0 -17
  108. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb +0 -42
  109. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb +0 -55
  110. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb +0 -71
  111. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb +0 -25
  112. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb +0 -59
  113. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/remote.rb +0 -36
  114. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb +0 -45
  115. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems.rb +0 -11
  116. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb +0 -77
  117. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/rubocop.rb +0 -30
  118. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base.rb +0 -18
  119. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners.rb +0 -11
  120. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/dependencies.rb +0 -63
  121. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/gemfile_lock.rb +0 -27
  122. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb +0 -35
  123. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/version_builder.rb +0 -62
  124. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb +0 -112
  125. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb +0 -39
  126. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +0 -68
  127. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb +0 -42
  128. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb +0 -28
  129. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +0 -73
  130. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb +0 -43
  131. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb +0 -25
  132. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb +0 -31
  133. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +0 -19
  134. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +0 -61
  135. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb +0 -23
  136. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local/sibling.rb +0 -53
  137. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local.rb +0 -69
  138. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb +0 -55
  139. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundle.rb +0 -29
  140. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +0 -58
  141. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb +0 -60
  142. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb +0 -89
  143. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb +0 -76
  144. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb +0 -19
  145. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +0 -68
  146. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb +0 -59
  147. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/minitest.rb +0 -29
  148. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb +0 -52
  149. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb +0 -29
  150. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple.rb +0 -90
  151. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/rspec.rb +0 -25
  152. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb +0 -13
  153. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb +0 -59
  154. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +0 -64
  155. data/sub/avm-eac_ruby_base1/locale/en.yml +0 -9
  156. data/sub/avm-eac_ruby_base1/locale/pt-BR.yml +0 -9
  157. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb +0 -7
  158. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out +0 -192
  159. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml +0 -300
  160. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out +0 -245
  161. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml +0 -355
  162. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.source.out +0 -0
  163. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.target.yaml +0 -305
  164. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb +0 -15
  165. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.source +0 -6
  166. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.target +0 -3
  167. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.source +0 -6
  168. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.target +0 -5
  169. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/build_spec.rb +0 -46
  170. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/specification_spec.rb +0 -59
  171. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb +0 -29
  172. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base_spec.rb +0 -23
  173. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/preferred_version_requirements_spec.rb +0 -23
  174. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec.rb +0 -37
  175. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/changes1.source.yaml +0 -5
  176. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/changes1.target.txt +0 -15
  177. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/the_gem.gemspec +0 -15
  178. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb +0 -15
  179. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb +0 -7
  180. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +0 -36
  181. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile +0 -5
  182. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock +0 -27
  183. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir2/empty.rb +0 -1
  184. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb +0 -4
  185. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb +0 -19
  186. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile +0 -8
  187. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock +0 -1
  188. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore +0 -2
  189. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec +0 -19
  190. 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
  191. 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
  192. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile +0 -8
  193. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock +0 -1
  194. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore +0 -2
  195. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb +0 -5
  196. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb +0 -7
  197. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec +0 -19
  198. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/rubocop_spec.rb +0 -3
  199. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb +0 -4
  200. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +0 -30
  201. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile +0 -5
  202. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock +0 -19
  203. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile +0 -14
  204. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/exe/myrunner +0 -5
  205. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem/version.rb +0 -5
  206. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem.rb +0 -5
  207. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/mygem.gemspec +0 -17
  208. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +0 -16
  209. data/sub/avm-eac_ruby_base1/spec/rubocop_spec.rb +0 -3
  210. data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +0 -4
  211. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template +0 -19
  212. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/root_lib.template +0 -7
  213. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile +0 -8
  214. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb +0 -3
  215. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb +0 -4
  216. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template +0 -5
  217. /data/sub/{avm-eac_ruby_base1 → avm-eac_asciidoctor_base0}/Gemfile +0 -0
  218. /data/sub/{avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem → avm-eac_asciidoctor_base0}/spec/rubocop_spec.rb +0 -0
@@ -1,305 +0,0 @@
1
- ---
2
- - :gem_name: actionpack
3
- :versions_requirements:
4
- - :requirements_source: ">= 5.0"
5
- :stack:
6
- - :gem_name: actionpack-xml_parser
7
- :version: &9 !ruby/object:Gem::Version
8
- version: 2.0.1
9
- - :requirements_source: "= 5.2.8.1"
10
- :stack:
11
- - :gem_name: rails (= 5.2.8.1)
12
- :version: &1 !ruby/object:Gem::Version
13
- version: 5.2.8.1
14
- - :requirements_source: ">= 5.0.1.rc1"
15
- :stack:
16
- - :gem_name: rails-controller-testing
17
- :version: &2 !ruby/object:Gem::Version
18
- version: 1.0.5
19
- - :requirements_source: ">= 3.0"
20
- :stack:
21
- - :gem_name: rspec-rails (~> 3.5, >= 3.5.2)
22
- :version: &4 !ruby/object:Gem::Version
23
- version: 3.9.1
24
- - :requirements_source: ">= 3.1"
25
- :stack:
26
- - :gem_name: slim-rails
27
- :version: &14 !ruby/object:Gem::Version
28
- version: 3.6.2
29
- - :gem_name: actionview
30
- :versions_requirements:
31
- - :requirements_source: "= 5.2.8.1"
32
- :stack:
33
- - :gem_name: rails (= 5.2.8.1)
34
- :version: *1
35
- - :requirements_source: ">= 5.0.1.rc1"
36
- :stack:
37
- - :gem_name: rails-controller-testing
38
- :version: *2
39
- - :gem_name: activerecord
40
- :versions_requirements:
41
- - :requirements_source: "< 6, >= 4.1"
42
- :stack:
43
- - :gem_name: activemodel-associations
44
- :version: &3 !ruby/object:Gem::Version
45
- version: 0.2.0
46
- - :requirements_source: ">= 4.0.0, < 7.1"
47
- :stack:
48
- - :gem_name: awesome_nested_set
49
- :version: &15 !ruby/object:Gem::Version
50
- version: 3.5.0
51
- - :requirements_source: "= 5.2.8.1"
52
- :stack:
53
- - :gem_name: rails (= 5.2.8.1)
54
- :version: *1
55
- - :gem_name: activesupport
56
- :versions_requirements:
57
- - :requirements_source: "< 6, >= 4.1"
58
- :stack:
59
- - :gem_name: activemodel-associations
60
- :version: *3
61
- - :requirements_source: ">= 4, < 7"
62
- :stack:
63
- - :gem_name: redmine_with_git
64
- :version: &5 !ruby/object:Gem::Version
65
- version: 0.7.9
66
- - :gem_name: eac_ruby_utils (~> 0.119)
67
- :version: !ruby/object:Gem::Version
68
- version: 0.119.1
69
- - :requirements_source: ">= 2"
70
- :stack:
71
- - :gem_name: html-pipeline
72
- :version: !ruby/object:Gem::Version
73
- version: 2.14.3
74
- - :requirements_source: "= 5.2.8.1"
75
- :stack:
76
- - :gem_name: rails (= 5.2.8.1)
77
- :version: *1
78
- - :requirements_source: ">= 5.0.1.rc1"
79
- :stack:
80
- - :gem_name: rails-controller-testing
81
- :version: *2
82
- - :requirements_source: ">= 5.0.0"
83
- :stack:
84
- - :gem_name: rails-dom-testing
85
- :version: &11 !ruby/object:Gem::Version
86
- version: 2.2.0
87
- - :requirements_source: ">= 3.0"
88
- :stack:
89
- - :gem_name: rspec-rails (~> 3.5, >= 3.5.2)
90
- :version: *4
91
- - :requirements_source: ">= 4.2.0"
92
- :stack:
93
- - :gem_name: rubocop-rails (~> 2.9.0)
94
- :version: &7 !ruby/object:Gem::Version
95
- version: 2.9.1
96
- - :gem_name: i18n
97
- :versions_requirements:
98
- - :requirements_source: "~> 1.8.2"
99
- :stack: []
100
- - :requirements_source: ">= 0.7, < 2"
101
- :stack:
102
- - :gem_name: rails (= 5.2.8.1)
103
- :version: *1
104
- - :gem_name: activesupport (= 5.2.8.1)
105
- :version: *1
106
- - :gem_name: mail
107
- :versions_requirements:
108
- - :requirements_source: "~> 2.7.1"
109
- :stack: []
110
- - :requirements_source: "~> 2.5, >= 2.5.4"
111
- :stack:
112
- - :gem_name: rails (= 5.2.8.1)
113
- :version: *1
114
- - :gem_name: actionmailer (= 5.2.8.1)
115
- :version: *1
116
- - :gem_name: mini_mime
117
- :versions_requirements:
118
- - :requirements_source: "~> 1.0.1"
119
- :stack: []
120
- - :requirements_source: ">= 0.1.3"
121
- :stack:
122
- - :gem_name: capybara (~> 3.31.0)
123
- :version: &6 !ruby/object:Gem::Version
124
- version: 3.31.0
125
- - :requirements_source: ">= 0.1.1"
126
- :stack:
127
- - :gem_name: mail (~> 2.7.1)
128
- :version: !ruby/object:Gem::Version
129
- version: 2.7.1
130
- - :gem_name: nokogiri
131
- :versions_requirements:
132
- - :requirements_source: "~> 1.13.10"
133
- :stack: []
134
- - :requirements_source: "~> 1.15, >= 1.15.2"
135
- :stack:
136
- - :gem_name: redmine_with_git
137
- :version: *5
138
- - :gem_name: avm (~> 0.78)
139
- :version: !ruby/object:Gem::Version
140
- version: 0.78.0
141
- - :gem_name: aranha-parsers (~> 0.20)
142
- :version: &8 !ruby/object:Gem::Version
143
- version: 0.21.0
144
- - :gem_name: rack
145
- :versions_requirements:
146
- - :requirements_source: "~> 2.0, >= 2.0.8"
147
- :stack:
148
- - :gem_name: rails (= 5.2.8.1)
149
- :version: *1
150
- - :gem_name: actionpack (= 5.2.8.1)
151
- :version: *1
152
- - :requirements_source: ">= 1.6.0"
153
- :stack:
154
- - :gem_name: capybara (~> 3.31.0)
155
- :version: *6
156
- - :requirements_source: ">= 1.5.1"
157
- :stack:
158
- - :gem_name: gitlab-grack (~> 2.0.0)
159
- :version: !ruby/object:Gem::Version
160
- version: 2.0.2
161
- - :requirements_source:
162
- :stack:
163
- - :gem_name: rack-parser
164
- :version: !ruby/object:Gem::Version
165
- version: 0.7.0
166
- - :requirements_source: ">= 1.4"
167
- :stack:
168
- - :gem_name: request_store (~> 1.5.0)
169
- :version: !ruby/object:Gem::Version
170
- version: 1.5.1
171
- - :requirements_source: ">= 1.1"
172
- :stack:
173
- - :gem_name: rubocop-rails (~> 2.9.0)
174
- :version: *7
175
- - :requirements_source: ">= 2.2.4"
176
- :stack:
177
- - :gem_name: sidekiq
178
- :version: !ruby/object:Gem::Version
179
- version: 7.1.2
180
- - :requirements_source: "> 1, < 3"
181
- :stack:
182
- - :gem_name: redmine_plugins_helper
183
- :version: &12 !ruby/object:Gem::Version
184
- version: 0.12.2
185
- - :gem_name: sass-rails (~> 5.0)
186
- :version: &13 !ruby/object:Gem::Version
187
- version: 5.1.0
188
- - :gem_name: sprockets (>= 2.8, < 4.0)
189
- :version: !ruby/object:Gem::Version
190
- version: 3.7.2
191
- - :gem_name: rails
192
- :versions_requirements:
193
- - :requirements_source: "= 5.2.8.1"
194
- :stack: []
195
- - :requirements_source: "< 6.2, >= 4.2.0"
196
- :stack:
197
- - :gem_name: active_scaffold
198
- :version: !ruby/object:Gem::Version
199
- version: 3.6.20
200
- - :requirements_source: ">= 4.1"
201
- :stack:
202
- - :gem_name: deface (= 1.5.3)
203
- :version: !ruby/object:Gem::Version
204
- version: 1.5.3
205
- - :requirements_source: ">= 4.2.11"
206
- :stack:
207
- - :gem_name: redmine_nonproject_modules
208
- :version: &10 !ruby/object:Gem::Version
209
- version: 0.3.12
210
- - :gem_name: eac_rails_utils (~> 0.15)
211
- :version: *8
212
- - :requirements_source: ">= 5.2"
213
- :stack:
214
- - :gem_name: invisible_captcha
215
- :version: !ruby/object:Gem::Version
216
- version: 2.1.0
217
- - :gem_name: railties
218
- :versions_requirements:
219
- - :requirements_source: ">= 5.0"
220
- :stack:
221
- - :gem_name: actionpack-xml_parser
222
- :version: *9
223
- - :requirements_source: ">= 4.2.0"
224
- :stack:
225
- - :gem_name: redmine_nonproject_modules
226
- :version: *10
227
- - :gem_name: jquery-rails (~> 4.5)
228
- :version: !ruby/object:Gem::Version
229
- version: 4.6.0
230
- - :requirements_source: ">= 3.2.16"
231
- :stack:
232
- - :gem_name: jquery-ui-rails (~> 5.0.5)
233
- :version: !ruby/object:Gem::Version
234
- version: 5.0.5
235
- - :requirements_source: "= 5.2.8.1"
236
- :stack:
237
- - :gem_name: rails (= 5.2.8.1)
238
- :version: *1
239
- - :requirements_source: ">= 5.1, < 6.2"
240
- :stack:
241
- - :gem_name: roadie-rails (~> 2.2.0)
242
- :version: *11
243
- - :requirements_source: ">= 3.0"
244
- :stack:
245
- - :gem_name: rspec-rails (~> 3.5, >= 3.5.2)
246
- :version: *4
247
- - :requirements_source: ">= 5.2.0"
248
- :stack:
249
- - :gem_name: redmine_plugins_helper
250
- :version: *12
251
- - :gem_name: sass-rails (~> 5.0)
252
- :version: *13
253
- - :requirements_source: ">= 3.1"
254
- :stack:
255
- - :gem_name: slim-rails
256
- :version: *14
257
- - :gem_name: rspec-rails
258
- :versions_requirements:
259
- - :requirements_source: "~> 3.5, >= 3.5.2"
260
- :stack: []
261
- - :requirements_source:
262
- :stack:
263
- - :gem_name: redmine_plugins_helper
264
- :version: *12
265
- - :gem_name: rubocop
266
- :versions_requirements:
267
- - :requirements_source: "~> 1.12.0"
268
- :stack: []
269
- - :requirements_source: ">= 0.90.0, < 2.0"
270
- :stack:
271
- - :gem_name: rubocop-rails (~> 2.9.0)
272
- :version: *7
273
- - :requirements_source: "~> 1.0"
274
- :stack:
275
- - :gem_name: rubocop-rspec
276
- :version: !ruby/object:Gem::Version
277
- version: 2.4.0
278
- - :gem_name: "ruby\0"
279
- :versions_requirements: []
280
- - :gem_name: selenium-webdriver
281
- :versions_requirements:
282
- - :requirements_source: "~> 3.142.7"
283
- :stack: []
284
- - :requirements_source: "> 3.141, < 5.0"
285
- :stack:
286
- - :gem_name: webdrivers (~> 4.4)
287
- :version: !ruby/object:Gem::Version
288
- version: 4.7.0
289
- - :gem_name: shoulda-matchers
290
- :versions_requirements:
291
- - :requirements_source: "~> 2.7.0"
292
- :stack: []
293
- - :requirements_source: ">= 1.4.1, < 3.0"
294
- :stack:
295
- - :gem_name: shoulda (~> 3.5.0)
296
- :version: *15
297
- - :gem_name: simplecov
298
- :versions_requirements:
299
- - :requirements_source: "~> 0.18.5"
300
- :stack: []
301
- - :requirements_source:
302
- :stack:
303
- - :gem_name: codeclimate-test-reporter
304
- :version: !ruby/object:Gem::Version
305
- version: 1.0.7
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_ruby_base1/file_formats/base'
4
-
5
- RSpec.describe Avm::EacRubyBase1::FileFormats::Base do
6
- include_examples 'avm_file_formats_with_fixtures', __FILE__
7
- include_examples 'avm_file_format_file_resource_name', {
8
- 'app/models/mynamespace/the_class.rb' => 'Mynamespace::TheClass',
9
- 'lib/ruby/lib/cliutils/eac_redmine_base0/activity.rb' => 'Cliutils::EacRedmineBase0::Activity',
10
- 'a_non_library_file.rb' => 'a_non_library_file.rb',
11
- 'spec/lib/my_lib_spec.rb' => 'RSpec.describe(MyLib)',
12
- 'spec/lib/sub/my_lib_spec.rb' => 'RSpec.describe(Sub::MyLib)',
13
- 'spec/spec_helper.rb' => 'spec/spec_helper.rb'
14
- }
15
- end
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_support/core_ext/object'
4
- require 'avm/eac_ruby_base1/launcher/gem/build'
5
-
6
- RSpec.describe Avm::EacRubyBase1::Launcher::Gem::Build do
7
- describe '#output_file' do
8
- let(:gem_dir) do
9
- avm_eac_ruby_base1_source(target_path: temp_dir.join('ruby_gem_stub'))
10
- .path.to_path
11
- end
12
-
13
- it 'builds .gem file' do # rubocop:disable RSpec/ExampleLength
14
- expect(File.directory?(gem_dir)).to be true
15
- build = described_class.new(gem_dir)
16
-
17
- # Open/close
18
- assert_closed(build)
19
- build.build
20
- assert_open(build)
21
- build.close
22
- assert_closed(build)
23
-
24
- # Reopen/reclose
25
- build.build
26
- assert_open(build)
27
- build.close
28
- assert_closed(build)
29
- end
30
-
31
- private
32
-
33
- def assert_closed(build)
34
- expect(build.output_file.blank?).to be true
35
- expect(build.builded?).to be false
36
- end
37
-
38
- def assert_open(build) # rubocop:disable Metrics/AbcSize
39
- expect(build.output_file.present?).to be true
40
- expect(build.builded?).to be true
41
- expect(File.exist?(build.output_file)).to be true
42
- expect(File.size(build.output_file)).to be_positive
43
- expect(File.basename(build.output_file)).to eq('ruby_gem_stub-0.0.0.gem')
44
- end
45
- end
46
- end
@@ -1,59 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_ruby_base1/launcher/gem/specification'
4
-
5
- RSpec.describe Avm::EacRubyBase1::Launcher::Gem::Specification do
6
- let(:source_version) { '1.0.0.pre.stub' }
7
- let(:source) do
8
- r = avm_eac_ruby_base1_source(target_path: temp_dir.join('ruby_gem_stub'))
9
- r.version = source_version
10
- r
11
- end
12
- let(:gemspec_file) { source.gemspec_path.to_path }
13
- let(:version_file) { source.version_file.path.to_path }
14
- let(:instance) { described_class.new(gemspec_file) }
15
-
16
- describe '#parse_version_file' do
17
- context 'when version file is valid' do
18
- let(:file) { version_file }
19
-
20
- it do
21
- expect(File.exist?(file)).to be true
22
- end
23
-
24
- it 'parses valid version file' do
25
- expect(described_class.parse_version_file(file)).to eq('1.0.0.pre.stub')
26
- end
27
- end
28
-
29
- context 'when version file is invalid' do
30
- let(:file) { __FILE__ }
31
-
32
- it do
33
- expect(File.exist?(file)).to be true
34
- end
35
-
36
- it 'does not parse invalid version file' do
37
- expect(described_class.parse_version_file(file)).to be_nil
38
- end
39
- end
40
- end
41
-
42
- describe '#name' do
43
- it 'returns gemspec name' do
44
- expect(instance.name).to eq('ruby_gem_stub')
45
- end
46
- end
47
-
48
- describe '#version' do
49
- it 'returns gemspec version' do
50
- expect(instance.version).to eq('1.0.0.pre.stub')
51
- end
52
- end
53
-
54
- describe '#full_name' do
55
- it 'returns gem full name' do
56
- expect(instance.full_name).to eq('ruby_gem_stub-1.0.0.pre.stub')
57
- end
58
- end
59
- end
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/launcher/context'
4
- require 'avm/launcher/instances/base'
5
- require 'avm/eac_ruby_base1/launcher_stereotypes/base/publish'
6
-
7
- RSpec.describe Avm::EacRubyBase1::LauncherStereotypes::Base::Publish do
8
- let(:context) { temp_launcher_context }
9
- let(:application_id) { 'ruby_gem_stub' }
10
- let(:source_path) { temp_dir.join(application_id) }
11
-
12
- before do
13
- EacConfig::Node.context.current.entry("#{application_id}.avm_type").value = 'Application'
14
- EacConfig::Node.context.current.entry("#{application_id}_dev.install.path").value =
15
- source_path.to_path
16
- avm_eac_ruby_base1_source(target_path: source_path)
17
- end
18
-
19
- describe '#publish' do
20
- let(:instance) { context.instance('/ruby_gem_stub') }
21
-
22
- it 'dries run publish for Ruby Gems' do
23
- allow_any_instance_of(described_class).to receive(:gem_versions_uncached).and_return([]) # rubocop:disable RSpec/AnyInstance
24
- expect(instance).to be_a Avm::Launcher::Instances::Base
25
- context.publish_options = { confirm: false, new: true, stereotype: 'RubyGem' }
26
- described_class.new(instance).run
27
- end
28
- end
29
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_ruby_base1/launcher_stereotypes/base'
4
-
5
- RSpec.describe Avm::EacRubyBase1::LauncherStereotypes::Base do
6
- describe '#load_gemspec' do
7
- let(:dummy_dir) { avm_eac_ruby_base1_source(target_path: temp_dir.join(gemname)).path }
8
- let(:gemname) { 'avm-eac_ruby_base1' }
9
- let(:self_gemspec) { File.join(app_root_path, "#{gemname}.gemspec") }
10
- let(:stub_gemspec) { File.join(dummy_dir, "#{gemname}.gemspec") }
11
- let(:stub_expected_version) { '0.0.0' }
12
-
13
- it 'does not return same version for different gemspecs with same name' do # rubocop:disable RSpec/ExampleLength, RSpec/MultipleExpectations
14
- stub_spec = described_class.load_gemspec(stub_gemspec)
15
- expect(stub_spec.version).to eq(stub_expected_version)
16
- expect(stub_spec.name).to eq(gemname)
17
-
18
- self_spec = described_class.load_gemspec(self_gemspec)
19
- expect(self_spec.version).not_to eq(stub_expected_version)
20
- expect(self_spec.name).to eq(gemname)
21
- end
22
- end
23
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_ruby_base1/preferred_version_requirements'
4
-
5
- RSpec.describe Avm::EacRubyBase1::PreferredVersionRequirements do
6
- describe '#to_requirements_list' do
7
- {
8
- '0.1.0' => ['~> 0.1'],
9
- '0.1.1' => ['~> 0.1', '>= 0.1.1'],
10
- '0.5' => ['~> 0.5'],
11
- '4.2.11.3' => ['~> 4.2.11', '>= 4.2.11.3'],
12
- '1' => ['~> 1.0']
13
- }.each do |source, expected|
14
- context "when version is \"#{source}\"" do
15
- subject(:instance) { described_class.new(source) }
16
-
17
- it do
18
- expect(instance.to_requirements_list).to eq(expected)
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_ruby_base1/rubygems/gemspec'
4
-
5
- RSpec.describe Avm::EacRubyBase1::Rubygems::Gemspec do
6
- let(:gemspec_path) { fixtures_directory.join('the_gem.gemspec') }
7
-
8
- include_examples 'source_target_fixtures', __FILE__
9
-
10
- # @return [Avm::EacRubyBase1::Rubygems::Gemspec]
11
- def new_gemspec
12
- described_class.from_file(gemspec_path)
13
- end
14
-
15
- # @return [String]
16
- def source_data(file)
17
- EacRubyUtils::Yaml.load_file(file).each_with_object(new_gemspec) do |e, a|
18
- a.dependency(e.fetch(0)).version_specs = e.fetch(1)
19
- end.to_text
20
- end
21
-
22
- # @return [String]
23
- def target_data(target_file)
24
- target_file.to_pathname.read
25
- end
26
-
27
- # @param data [String]
28
- # @return [String]
29
- def target_content(data)
30
- data
31
- end
32
-
33
- # @return [String]
34
- def target_file_extname
35
- '.txt'
36
- end
37
- end
@@ -1,5 +0,0 @@
1
- ---
2
- avm: ['~> 1.0', '>= 1.0.5']
3
- eac_envs-http: ['~> 0.5', '>= 0.5.1']
4
- eac_ruby_gem_support: ['> 0.5']
5
- avm-eac_generic_base0: ['1.0.0']
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Gem::Specification.new do |s|
4
- s.name = 'the_gem'
5
- s.version = '0.0.0'
6
-
7
- s.required_ruby_version = '>= 2.7'
8
-
9
- s.add_dependency 'avm', '~> 1.0', '>= 1.0.5'
10
- s.add_dependency 'avm-eac_generic_base0', '1.0.0'
11
- s.add_dependency 'eac_envs-http', '~> 0.5', '>= 0.5.1'
12
- s.add_dependency 'eac_ruby_utils', '~> 0.122'
13
-
14
- s.add_development_dependency 'eac_ruby_gem_support', '> 0.5'
15
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Gem::Specification.new do |s|
4
- s.name = 'the_gem'
5
- s.version = '0.0.0'
6
-
7
- s.required_ruby_version = '>= 2.7'
8
-
9
- s.add_dependency 'avm', '~> 0.94'
10
- s.add_dependency 'avm-eac_generic_base0', '~> 0.13'
11
- s.add_dependency 'eac_envs-http', '~> 0.5', '>= 0.5.1'
12
- s.add_dependency 'eac_ruby_utils', '~> 0.122'
13
-
14
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.10'
15
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_ruby_base1/rubygems/version_file'
4
-
5
- RSpec.describe Avm::EacRubyBase1::Rubygems::VersionFile do
6
- include_context 'spec_paths', __FILE__
7
-
8
- let(:stub_file) { fixtures_directory.join('a_version_file.rb') }
9
- let(:instance) { described_class.new(stub_file) }
10
- let(:target_version) { Gem::Version.new('0.69.1') }
11
-
12
- describe '#value' do
13
- it { expect(instance.value).to eq(target_version) }
14
- end
15
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Tools
5
- VERSION = '0.69.1'
6
- end
7
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_ruby_base1/runners/base/rubocop'
4
- require 'avm/eac_ruby_base1/sources/base'
5
-
6
- RSpec.describe Avm::EacRubyBase1::Runners::Base::Rubocop do
7
- let(:fixtures_root) { Pathname.new(__dir__).expand_path.join('rubocop_spec_files') }
8
- let(:dir1) { fixtures_root.join('dir1') } # rubocop:disable RSpec/IndexedLet
9
- let(:dir2) { fixtures_root.join('dir2') } # rubocop:disable RSpec/IndexedLet
10
- let(:dir3) { dir1.join('dir3') } # rubocop:disable RSpec/IndexedLet
11
- let(:dir4) { fixtures_root.join('dir4') } # rubocop:disable RSpec/IndexedLet
12
-
13
- before do
14
- Avm::EacRubyBase1::Sources::Base.new(dir3).bundle.execute!
15
- end
16
-
17
- {
18
- dir1: '0.48.1',
19
- dir2: Avm::EacRubyBase1::Sources::Base.new(File.expand_path('../../../../../..', __dir__))
20
- .gemfile_lock_gem_version('rubocop').to_s,
21
- dir3: '0.48.1',
22
- dir4: '33.33.33'
23
- }.each do |dir_name, rubocop_version|
24
- context "when dir is #{dir_name}" do
25
- let(:dir) { send(dir_name) }
26
- let(:thegem) { Avm::EacRubyBase1::Sources::Base.new(dir) }
27
-
28
- it "return #{rubocop_version} as Rubocop version" do
29
- argv = ['-C', dir.to_s, '--', '--version']
30
- expect { described_class.run(argv: argv) }.to(
31
- output("#{rubocop_version}\n").to_stdout_from_any_process
32
- )
33
- end
34
- end
35
- end
36
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rubocop', '0.48.1'