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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 194395a1e093f372c5c1cc9d839494745705412fb56e662256a51b22da74d0da
4
- data.tar.gz: fcd99ef1c6da1fff0822f3d9f4a1665bb4624bd0e18f2428797654c1c38ed4c5
3
+ metadata.gz: 9b86618f5e0b6acf9c493717389ada6aa49459a59b4a3eb2970d8f0b2b16d570
4
+ data.tar.gz: 3cdba7b928c7b2754642ad9ce59f36ecd8d2656fa1a1a18d4f675e6809134376
5
5
  SHA512:
6
- metadata.gz: aef95411c2e9650c6512a966bf0b3256149195966afc08b9654e09a617450314d01976656ac5fa91f3bf1e79eac75a32977ff3ebb1d127f1b0f5f3072d140f53
7
- data.tar.gz: a603b730da95fc9dbb7c5fcd9d29d82552823ed2eb970492b8d1eb5d4ce643713a6186634a643cef03e3b2111661f99f13dc0864013efbaa42a6b7fc269335f1
6
+ metadata.gz: 6fe556277a414f99d7a798d00b602ae780ba83b64d709b957e047d90673517ca6b56abfa6dabbacd16bbe407f65a8a08aa00d30302851a87f50bd3c92ee6d3fc
7
+ data.tar.gz: 1f814609ae504133bd62e30a8356d0a847a61ec470b8bfa8ef7855dce8cef3b516aeb596f3e612696a155a02a5247189f1f711b08b847cbbeebfd88e9f18a819
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.96.1)
4
+ eac_tools (0.97.0)
5
5
  avm (~> 0.94)
6
- avm-eac_asciidoctor_base0 (~> 0.24)
6
+ avm-eac_asciidoctor_base0 (~> 0.25)
7
7
  avm-eac_generic_base0 (~> 0.13)
8
8
  avm-eac_github_base0 (~> 0.3)
9
9
  avm-eac_gitlab_base0 (~> 0.4)
@@ -12,7 +12,7 @@ PATH
12
12
  avm-eac_postgresql_base0 (~> 0.5, >= 0.5.3)
13
13
  avm-eac_python_base0 (~> 0.2, >= 0.2.2)
14
14
  avm-eac_rails_base0 (~> 0.11, >= 0.11.1)
15
- avm-eac_rails_base1 (~> 0.10)
15
+ avm-eac_rails_base1 (~> 0.10, >= 0.10.1)
16
16
  avm-eac_redmine_base0 (~> 0.22, >= 0.22.3)
17
17
  avm-eac_redmine_plugin_base0 (~> 0.4, >= 0.4.1)
18
18
  avm-eac_ruby_base0 (~> 0.1)
@@ -21,21 +21,23 @@ PATH
21
21
  avm-eac_wordpress_base0 (~> 0.3, >= 0.3.2)
22
22
  avm-git (~> 0.18)
23
23
  avm-tools (~> 0.162)
24
- eac_ruby_utils (~> 0.122)
24
+ eac_ruby_utils (~> 0.123)
25
25
 
26
26
  PATH
27
- remote: sub/avm-eac_ruby_base1
27
+ remote: sub/avm-eac_asciidoctor_base0
28
28
  specs:
29
- avm-eac_ruby_base1 (0.35.1)
30
- avm (~> 0.94)
31
- avm-eac_generic_base0 (~> 0.13)
32
- eac_envs-http (~> 0.5, >= 0.5.1)
33
- eac_ruby_utils (~> 0.122)
29
+ avm-eac_asciidoctor_base0 (0.25.0)
30
+ asciidoctor (~> 2.0, >= 2.0.23)
31
+ avm-eac_webapp_base0 (~> 0.20, >= 0.20.1)
32
+ eac_fs (~> 0.18, >= 0.18.1)
33
+ eac_ruby_utils (~> 0.123)
34
+ os (~> 1.1, >= 1.1.4)
35
+ rouge (~> 3.30)
34
36
 
35
37
  GEM
36
38
  remote: https://rubygems.org/
37
39
  specs:
38
- activesupport (6.1.7.8)
40
+ activesupport (6.1.7.10)
39
41
  concurrent-ruby (~> 1.0, >= 1.0.2)
40
42
  i18n (>= 1.6, < 2)
41
43
  minitest (>= 5.1)
@@ -54,14 +56,6 @@ GEM
54
56
  eac_templates (~> 0.7, >= 0.7.1)
55
57
  minitar (~> 0.9)
56
58
  ruby-progressbar (~> 1.13)
57
- avm-eac_asciidoctor_base0 (0.24.0)
58
- asciidoctor (~> 2.0, >= 2.0.23)
59
- avm-eac_webapp_base0 (~> 0.20, >= 0.20.1)
60
- eac_fs (~> 0.18)
61
- eac_ruby_gem_support (~> 0.10)
62
- eac_ruby_utils (~> 0.122)
63
- os (~> 1.1, >= 1.1.4)
64
- rouge (~> 3.30)
65
59
  avm-eac_generic_base0 (0.13.0)
66
60
  avm (~> 0.90)
67
61
  eac_ruby_utils (~> 0.121)
@@ -90,11 +84,11 @@ GEM
90
84
  avm-eac_rails_base0 (0.11.1)
91
85
  avm-eac_rails_base1 (~> 0.10)
92
86
  eac_ruby_utils (~> 0.121)
93
- avm-eac_rails_base1 (0.10.0)
94
- avm (~> 0.81)
95
- avm-eac_ruby_base1 (~> 0.33)
96
- avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
97
- eac_ruby_utils (~> 0.119, >= 0.119.2)
87
+ avm-eac_rails_base1 (0.10.1)
88
+ avm (~> 0.94)
89
+ avm-eac_ruby_base1 (~> 0.35, >= 0.35.1)
90
+ avm-eac_webapp_base0 (~> 0.20, >= 0.20.1)
91
+ eac_ruby_utils (~> 0.122)
98
92
  avm-eac_redmine_base0 (0.22.3)
99
93
  avm (~> 0.92)
100
94
  avm-eac_generic_base0 (~> 0.13)
@@ -110,6 +104,11 @@ GEM
110
104
  avm-eac_ruby_base0 (0.1.0)
111
105
  avm-eac_ruby_base1 (~> 0.34)
112
106
  eac_ruby_utils (~> 0.122)
107
+ avm-eac_ruby_base1 (0.35.1)
108
+ avm (~> 0.94)
109
+ avm-eac_generic_base0 (~> 0.13)
110
+ eac_envs-http (~> 0.5, >= 0.5.1)
111
+ eac_ruby_utils (~> 0.122)
113
112
  avm-eac_ubuntu_base0 (0.5.1)
114
113
  avm (~> 0.86, >= 0.86.2)
115
114
  eac_ruby_utils (~> 0.121)
@@ -161,17 +160,18 @@ GEM
161
160
  eac_docker (0.7.0)
162
161
  eac_ruby_utils (~> 0.112)
163
162
  eac_templates (~> 0.3, >= 0.3.2)
164
- eac_envs-http (0.5.1)
165
- eac_fs (~> 0.17)
166
- eac_ruby_utils (~> 0.120)
167
- faraday (~> 2.7, >= 2.7.12)
163
+ eac_envs-http (0.6.1)
164
+ eac_fs (~> 0.18, >= 0.18.1)
165
+ eac_ruby_utils (~> 0.123)
166
+ faraday (~> 2.8, >= 2.8.1)
168
167
  faraday-follow_redirects (~> 0.3)
169
168
  faraday-gzip (~> 0.1)
170
169
  faraday-multipart (~> 1.0, >= 1.0.4)
171
- faraday-retry (~> 2.2)
172
- eac_fs (0.18.0)
170
+ faraday-retry (~> 2.2, >= 2.2.1)
171
+ random-port (~> 0.7, >= 0.7.1)
172
+ eac_fs (0.18.1)
173
173
  content-type (~> 0.0, >= 0.0.2)
174
- eac_ruby_utils (~> 0.122)
174
+ eac_ruby_utils (~> 0.123)
175
175
  ruby-filemagic (~> 0.7, >= 0.7.3)
176
176
  eac_git (0.16.0)
177
177
  eac_ruby_utils (~> 0.121)
@@ -191,9 +191,9 @@ GEM
191
191
  rubocop (~> 1.60, >= 1.60.1)
192
192
  rubocop-rails (~> 2.23, >= 2.23.1)
193
193
  rubocop-rspec (~> 2.26, >= 2.26.1)
194
- eac_ruby_utils (0.122.0)
194
+ eac_ruby_utils (0.123.0)
195
195
  activesupport (>= 4, < 7)
196
- addressable (~> 2.8, >= 2.8.6)
196
+ addressable (~> 2.8, >= 2.8.7)
197
197
  bundler
198
198
  filesize (~> 0.2)
199
199
  net-ssh (~> 4.2)
@@ -221,7 +221,7 @@ GEM
221
221
  htmlbeautifier (1.4.3)
222
222
  i18n (1.14.6)
223
223
  concurrent-ruby (~> 1.0)
224
- json (2.7.2)
224
+ json (2.7.5)
225
225
  language_server-protocol (3.17.0.3)
226
226
  minitar (0.12.1)
227
227
  minitest (5.25.1)
@@ -230,7 +230,7 @@ GEM
230
230
  os (1.1.4)
231
231
  parallel (1.26.3)
232
232
  parseconfig (1.1.2)
233
- parser (3.3.5.0)
233
+ parser (3.3.5.1)
234
234
  ast (~> 2.4.1)
235
235
  racc
236
236
  parslet (2.0.0)
@@ -238,8 +238,9 @@ GEM
238
238
  tty-color (~> 0.5)
239
239
  public_suffix (5.1.1)
240
240
  racc (1.8.1)
241
- rack (3.1.7)
241
+ rack (3.1.8)
242
242
  rainbow (3.1.1)
243
+ random-port (0.7.1)
243
244
  rchardet (1.8.0)
244
245
  regexp_parser (2.9.2)
245
246
  rouge (3.30.0)
@@ -247,16 +248,16 @@ GEM
247
248
  rspec-core (~> 3.13.0)
248
249
  rspec-expectations (~> 3.13.0)
249
250
  rspec-mocks (~> 3.13.0)
250
- rspec-core (3.13.1)
251
+ rspec-core (3.13.2)
251
252
  rspec-support (~> 3.13.0)
252
253
  rspec-expectations (3.13.3)
253
254
  diff-lcs (>= 1.2.0, < 2.0)
254
255
  rspec-support (~> 3.13.0)
255
- rspec-mocks (3.13.1)
256
+ rspec-mocks (3.13.2)
256
257
  diff-lcs (>= 1.2.0, < 2.0)
257
258
  rspec-support (~> 3.13.0)
258
259
  rspec-support (3.13.1)
259
- rubocop (1.66.1)
260
+ rubocop (1.68.0)
260
261
  json (~> 2.3)
261
262
  language_server-protocol (>= 3.17.0)
262
263
  parallel (~> 1.10)
@@ -266,13 +267,13 @@ GEM
266
267
  rubocop-ast (>= 1.32.2, < 2.0)
267
268
  ruby-progressbar (~> 1.7)
268
269
  unicode-display_width (>= 2.4.0, < 3.0)
269
- rubocop-ast (1.32.3)
270
+ rubocop-ast (1.33.1)
270
271
  parser (>= 3.3.1.0)
271
272
  rubocop-capybara (2.21.0)
272
273
  rubocop (~> 1.41)
273
274
  rubocop-factory_bot (2.26.1)
274
275
  rubocop (~> 1.61)
275
- rubocop-rails (2.26.1)
276
+ rubocop-rails (2.27.0)
276
277
  activesupport (>= 4.2.0)
277
278
  rack (>= 1.1)
278
279
  rubocop (>= 1.52.0, < 2.0)
@@ -309,7 +310,7 @@ PLATFORMS
309
310
  x86_64-linux
310
311
 
311
312
  DEPENDENCIES
312
- avm-eac_ruby_base1!
313
+ avm-eac_asciidoctor_base0!
313
314
  eac_ruby_gem_support (~> 0.10)
314
315
  eac_tools!
315
316
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.96.1'
4
+ VERSION = '0.97.0'
5
5
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+
5
+ require 'avm/eac_asciidoctor_base0/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'avm-eac_asciidoctor_base0'
9
+ s.version = Avm::EacAsciidoctorBase0::VERSION
10
+ s.authors = ['Put here the authors']
11
+ s.summary = 'Put here de description.'
12
+
13
+ s.files = Dir['{lib,template}/**/*', 'template/avm/eac_asciidoctor_base0/instances/deploy/.keep']
14
+ s.required_ruby_version = '>= 2.7'
15
+
16
+ s.add_dependency 'asciidoctor', '~> 2.0', '>= 2.0.23'
17
+ s.add_dependency 'avm-eac_webapp_base0', '~> 0.20', '>= 0.20.1'
18
+ s.add_dependency 'eac_fs', '~> 0.18', '>= 0.18.1'
19
+ s.add_dependency 'eac_ruby_utils', '~> 0.123'
20
+ s.add_dependency 'os', '~> 1.1', '>= 1.1.4'
21
+ s.add_dependency 'rouge', '~> 3.30'
22
+
23
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.10'
24
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'eac_ruby_utils/recursive_builder'
5
+
6
+ module Avm
7
+ module EacAsciidoctorBase0
8
+ module DocumentsOwner
9
+ common_concern
10
+
11
+ # @param subpath [Pathname]
12
+ # @return [Avm::EacAsciidoctorBase0::Sources::Document]
13
+ # @raise [KeyError]
14
+ def document(subpath)
15
+ documents.find { |d| d.subpath.to_pathname == subpath.to_pathname } ||
16
+ raise(::KeyError, "Document not found with subpath = \"#{subpath}\"")
17
+ end
18
+
19
+ # @return [Enumerable<Avm::EacAsciidoctorBase0::Sources::Document>]
20
+ def documents
21
+ ::EacRubyUtils::RecursiveBuilder.new(root_document, &:children).result
22
+ end
23
+
24
+ # @return [Object]
25
+ def root_document
26
+ raise "Abstract method hit: #{__method__}"
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_generic_base0/file_formats/base'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module EacAsciidoctorBase0
8
+ module FileFormats
9
+ class Base < ::Avm::EacGenericBase0::FileFormats::Base
10
+ class FileResourceName
11
+ enable_method_class
12
+ common_constructor :file_format, :path do
13
+ self.path = path.to_pathname
14
+ end
15
+
16
+ CONTENT_PATTERNS = [%r{content/(.+)\z}].freeze
17
+
18
+ # @param path [Pathname]
19
+ # @return [Avm::FileFormats::FileWith]
20
+ def result
21
+ result_from_content || file_format.result_from_superclass(path)
22
+ end
23
+
24
+ private
25
+
26
+ def result_from_content
27
+ file_format.result_from_patterns(CONTENT_PATTERNS, path) do |m|
28
+ r = ::File.dirname(m[1])
29
+ r = '' if r == '.'
30
+ "Content[/#{r}]"
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_generic_base0/file_formats/base'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module EacAsciidoctorBase0
8
+ module FileFormats
9
+ class Base < ::Avm::EacGenericBase0::FileFormats::Base
10
+ require_sub __FILE__
11
+
12
+ VALID_BASENAMES = %w[*.adoc title].freeze
13
+ VALID_TYPES = %w[].freeze
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_webapp_base0/instances/apache_host'
4
+
5
+ module Avm
6
+ module EacAsciidoctorBase0
7
+ module Instances
8
+ class ApacheHost < ::Avm::EacWebappBase0::Instances::ApacheHost
9
+ def document_root
10
+ instance.read_entry(::Avm::Instances::EntryKeys::INSTALL_PATH)
11
+ end
12
+
13
+ def extra_content
14
+ ''
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_webapp_base0/instances/apache_path'
4
+
5
+ module Avm
6
+ module EacAsciidoctorBase0
7
+ module Instances
8
+ class ApachePath < ::Avm::EacWebappBase0::Instances::ApachePath
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_asciidoctor_base0/instances/apache_host'
4
+ require 'avm/eac_asciidoctor_base0/instances/apache_path'
5
+ require 'avm/eac_asciidoctor_base0/instances/deploy'
6
+ require 'avm/eac_webapp_base0/instances/base'
7
+
8
+ module Avm
9
+ module EacAsciidoctorBase0
10
+ module Instances
11
+ class Base < ::Avm::EacWebappBase0::Instances::Base
12
+ AUTHOR_EMAIL_ENTRY_PATH = 'install.email'
13
+ AUTHOR_NAME_ENTRY_PATH = 'install.name'
14
+ AUTHOR_NAME_INITIALS_ENTRY_PATH = 'install.name_initials'
15
+
16
+ # @return [String]
17
+ def author_email
18
+ entry(AUTHOR_EMAIL_ENTRY_PATH).value!
19
+ end
20
+
21
+ # @return [String]
22
+ def author_name
23
+ entry(AUTHOR_NAME_ENTRY_PATH).value!
24
+ end
25
+
26
+ # @return [String]
27
+ def author_name_initials
28
+ entry(AUTHOR_NAME_INITIALS_ENTRY_PATH).value!
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'asciidoctor'
4
+ require 'avm/eac_asciidoctor_base0/instances/macros'
5
+ require 'eac_ruby_utils/core_ext'
6
+
7
+ module Avm
8
+ module EacAsciidoctorBase0
9
+ module Instances
10
+ class Build
11
+ class Document
12
+ module BodyTarget
13
+ common_concern
14
+
15
+ BODY_TARGET_BASENAME = 'index.html'
16
+
17
+ # Absolute path to the output of Asciidoctor's source file.
18
+ #
19
+ # @return [Pathname]
20
+ def body_target_path
21
+ build.target_directory.join(source_document.subpath).join(BODY_TARGET_BASENAME)
22
+ end
23
+
24
+ # @return [Asciidoctor::Document]
25
+ def body_target_write
26
+ ::Asciidoctor.convert(
27
+ pre_processed_body_source_content,
28
+ base_dir: convert_base_dir,
29
+ to_file: body_target_path.to_path, safe: :unsafe, mkdirs: true
30
+ )
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,92 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacAsciidoctorBase0
7
+ module Instances
8
+ class Build
9
+ class Document
10
+ class HeaderLines
11
+ enable_method_class
12
+ enable_settings_provider
13
+ enable_simple_cache
14
+ common_constructor :document
15
+
16
+ delegate :build, :source_document, to: :document
17
+ delegate :instance, to: :build
18
+ delegate :author_email, :author_name, to: :instance
19
+
20
+ ATTRIBUTES = ['Author Initials', 'toc', 'icons', 'numbered', 'source-highlighter',
21
+ 'website'].freeze
22
+ TOC = 'left'
23
+ ICONS = ''
24
+ NUMBERED = ''
25
+ SOURCE_HIGHLIGHTER = 'rouge'
26
+
27
+ # @return [String]
28
+ def attribute_line(name, value)
29
+ [":#{name}:", value].compact_blank.join(' ')
30
+ end
31
+
32
+ def attributes_lines
33
+ ATTRIBUTES.map { |attr| attribute_line(attr, attribute_value(attr)) }
34
+ end
35
+
36
+ def attribute_value(attr)
37
+ setting_value(attr.variableize)
38
+ end
39
+
40
+ def author_initials
41
+ instance.author_name_initials
42
+ end
43
+
44
+ def author_line
45
+ "#{author_name} <#{author_email}>"
46
+ end
47
+
48
+ # @return [String]
49
+ def breadcrumbs_lines
50
+ ['[.normal]', document.macro_lines(:breadcrumbs)]
51
+ end
52
+
53
+ # @return [Array<String>]
54
+ def result
55
+ [stylesheet_line, title_line, author_line] + attributes_lines + [''] +
56
+ breadcrumbs_lines
57
+ end
58
+
59
+ # @return [Pathname]
60
+ def relative_path_to_stylesheet
61
+ build.theme.target_stylesheet_path
62
+ .relative_path_from(document.body_target_path.dirname)
63
+ end
64
+
65
+ # @return [String]
66
+ def stylesheet_line
67
+ attribute_line('stylesheet', stylesheet_path)
68
+ end
69
+
70
+ # @return [String]
71
+ def title_line
72
+ "= #{source_document.title}"
73
+ end
74
+
75
+ def website
76
+ instance.web_url
77
+ end
78
+
79
+ protected
80
+
81
+ # @return [Pathname]
82
+ def stylesheet_path_uncached
83
+ temp = ::EacRubyUtils::Fs::Temp.file
84
+ temp.write("@import '#{relative_path_to_stylesheet}'\n")
85
+ temp.to_pathname
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'asciidoctor'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module EacAsciidoctorBase0
8
+ module Instances
9
+ class Build
10
+ class Document
11
+ module Media
12
+ def copy_media_directory
13
+ source_document.copy_media_directory_to(media_target_path)
14
+ end
15
+
16
+ # @return [Pathname]
17
+ def media_target_path
18
+ build.target_directory.join(
19
+ parent_document.present? ? source_document.subpath : '',
20
+ ::Avm::EacAsciidoctorBase0::Sources::Document::Media::MEDIA_DIRECTORY_BASENAME
21
+ )
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacAsciidoctorBase0
7
+ module Instances
8
+ class Build
9
+ class Document
10
+ class PreProcessLine
11
+ enable_method_class
12
+ enable_simple_cache
13
+
14
+ ARGUMENT_SEPARATOR = ','
15
+ MACRO_PARSER = %r{\A\s*//\#(\S+)(?:\s+(.+))?\s*?\z}.to_parser do |m|
16
+ ::Struct.new(:name, :arguments).new(m[1],
17
+ m[2].to_s.split(ARGUMENT_SEPARATOR).map(&:strip))
18
+ end
19
+
20
+ common_constructor :document, :line
21
+
22
+ # @return [Array<String>]
23
+ def result
24
+ if macro?
25
+ macro_value
26
+ else
27
+ [line]
28
+ end
29
+ end
30
+
31
+ def macro?
32
+ macro_name.present?
33
+ end
34
+
35
+ # @return [Array<String>, nil]
36
+ def macro_arguments
37
+ parsed_macro.if_present(&:arguments)
38
+ end
39
+
40
+ # @return [String, nil]
41
+ def macro_name
42
+ parsed_macro.if_present(&:name)
43
+ end
44
+
45
+ def macro_parser
46
+ MACRO_PARSER
47
+ end
48
+
49
+ # @return [Array<String>]
50
+ def macro_value
51
+ document.macro_lines(macro_name, macro_arguments)
52
+ end
53
+
54
+ private
55
+
56
+ def parsed_macro_uncached
57
+ macro_parser.parse(line)
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end