eac_tools 0.85.0 → 0.86.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +27 -42
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm-tools/Gemfile +2 -2
  5. data/sub/avm-tools/lib/avm/tools/rspec/helpers/runner.rb +20 -0
  6. data/sub/{avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners.rb → avm-tools/lib/avm/tools/rspec/helpers.rb} +3 -3
  7. data/sub/avm-tools/lib/avm/tools/rspec/setup.rb +24 -0
  8. data/sub/{avm-files/lib/avm/files/runner_with.rb → avm-tools/lib/avm/tools/rspec.rb} +2 -2
  9. data/sub/avm-tools/lib/avm/tools/runner/git/dirty_files.rb +1 -1
  10. data/sub/avm-tools/lib/avm/tools/runner/git/subrepo/fix.rb +1 -1
  11. data/sub/avm-tools/lib/avm/tools/runner/source/auto_commit.rb +2 -2
  12. data/sub/avm-tools/lib/avm/tools/runner/source/issue/complete.rb +1 -1
  13. data/sub/avm-tools/lib/avm/tools/runner/source/subs.rb +1 -1
  14. data/sub/avm-tools/lib/avm/tools/runner.rb +1 -1
  15. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  16. data/sub/avm-tools/spec/dummy/avm-tools_stub/avm-tools.gemspec +1 -1
  17. data/sub/avm-tools/spec/dummy/ruby_gem_stub/ruby_gem_stub.gemspec +1 -1
  18. data/sub/avm-tools/spec/lib/avm/{projects/stereotypes → git/launcher_stereotypes}/git_subrepo/publish_spec.rb +19 -19
  19. data/sub/avm-tools/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec.rb +49 -0
  20. data/sub/avm-tools/spec/lib/avm/launcher/context_spec.rb +22 -22
  21. data/sub/avm-tools/spec/lib/avm/tools/runner/files/rotate_spec.rb +14 -14
  22. data/sub/avm-tools/spec/lib/avm/tools/runner/git/deploy_spec.rb +37 -37
  23. data/sub/avm-tools/spec/lib/avm/tools/runner/launcher_stereotypes/list_spec.rb +1 -1
  24. data/sub/avm-tools/spec/lib/avm/tools/runner/source/issue/complete_spec.rb +4 -4
  25. data/sub/avm-tools/spec/lib/avm/tools/runner_spec.rb +2 -2
  26. data/sub/avm-tools/spec/rubocop_spec.rb +1 -1
  27. data/sub/avm-tools/spec/spec_helper/eac_launcher.rb +14 -14
  28. data/sub/avm-tools/spec/spec_helper.rb +3 -3
  29. metadata +16 -142
  30. data/sub/avm-eac_asciidoctor_base0/Gemfile +0 -8
  31. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +0 -24
  32. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/documents_owner.rb +0 -30
  33. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +0 -37
  34. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +0 -17
  35. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_host.rb +0 -19
  36. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb +0 -12
  37. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb +0 -33
  38. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb +0 -37
  39. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb +0 -83
  40. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb +0 -28
  41. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb +0 -64
  42. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +0 -101
  43. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build.rb +0 -51
  44. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb +0 -28
  45. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/base.rb +0 -21
  46. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/breadcrumbs.rb +0 -55
  47. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs/document_builder.rb +0 -63
  48. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs.rb +0 -35
  49. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/default_body.rb +0 -21
  50. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros.rb +0 -13
  51. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances.rb +0 -11
  52. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb +0 -28
  53. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators.rb +0 -11
  54. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/instance_to_build.rb +0 -45
  55. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/theme.rb +0 -40
  56. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +0 -49
  57. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/media.rb +0 -28
  58. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/title.rb +0 -31
  59. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document.rb +0 -56
  60. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb +0 -54
  61. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document/build.rb +0 -46
  62. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document.rb +0 -30
  63. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/documents.rb +0 -28
  64. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners.rb +0 -13
  65. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb +0 -11
  66. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +0 -7
  67. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb +0 -9
  68. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +0 -13
  69. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb +0 -72
  70. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc +0 -25
  71. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb +0 -22
  72. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/_media/a_media_file +0 -1
  73. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/_media/a_media_file +0 -1
  74. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/body.adoc +0 -11
  75. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/title +0 -1
  76. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/body.adoc +0 -11
  77. 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 +0 -1
  78. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/body.adoc +0 -11
  79. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/doc2_1/title +0 -1
  80. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/title +0 -1
  81. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_media/a_media_file +0 -1
  82. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/_media/a_media_file +0 -1
  83. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/index.html +0 -1
  84. 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 +0 -1
  85. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/doc2_1/index.html +0 -1
  86. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/index.html +0 -1
  87. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/index.html +0 -1
  88. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec.rb +0 -8
  89. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/body.adoc +0 -11
  90. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/title +0 -1
  91. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/theme/main.css +0 -1
  92. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb +0 -16
  93. data/sub/avm-eac_asciidoctor_base0/spec/rubocop_spec.rb +0 -3
  94. data/sub/avm-eac_asciidoctor_base0/spec/spec_helper/eac_asciidoctor_base0_stubs.rb +0 -55
  95. data/sub/avm-eac_asciidoctor_base0/spec/spec_helper.rb +0 -8
  96. data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/body.adoc +0 -11
  97. data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/title +0 -1
  98. data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/theme/main.css +0 -1
  99. data/sub/avm-eac_latex_base0/Gemfile +0 -8
  100. data/sub/avm-eac_latex_base0/avm-eac_latex_base0.gemspec +0 -20
  101. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/executables.rb +0 -22
  102. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/apache_host.rb +0 -19
  103. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/base.rb +0 -12
  104. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/deploy.rb +0 -38
  105. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances.rb +0 -11
  106. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/base.rb +0 -44
  107. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/chapters_content.rb +0 -49
  108. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/commons.rb +0 -16
  109. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/copy_files.rb +0 -45
  110. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/base_stereotype.rb +0 -23
  111. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/chapter_index.rb +0 -27
  112. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/tex_source.rb +0 -37
  113. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file.rb +0 -49
  114. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build.rb +0 -121
  115. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_chapters.rb +0 -43
  116. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_single.rb +0 -33
  117. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/info.rb +0 -32
  118. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources.rb +0 -11
  119. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/version.rb +0 -7
  120. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0.rb +0 -9
  121. data/sub/avm-eac_latex_base0/spec/rubocop_spec.rb +0 -3
  122. data/sub/avm-eac_latex_base0/spec/spec_helper.rb +0 -4
  123. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/instances/deploy/index.html.template +0 -9
  124. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/all.tex +0 -5
  125. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/ebook.tex +0 -11
  126. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/images.tex +0 -11
  127. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/links.tex +0 -2
  128. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/portuguese.tex +0 -8
  129. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/source_code/java.tex +0 -15
  130. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/source_code.tex +0 -21
  131. data/sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/utils.tex +0 -6
  132. data/sub/avm-files/Gemfile +0 -8
  133. data/sub/avm-files/avm-files.gemspec +0 -23
  134. data/sub/avm-files/lib/avm/files/appendable/file_content.rb +0 -24
  135. data/sub/avm-files/lib/avm/files/appendable/plain_directory.rb +0 -25
  136. data/sub/avm-files/lib/avm/files/appendable/resource_base.rb +0 -13
  137. data/sub/avm-files/lib/avm/files/appendable/tar_output_command.rb +0 -26
  138. data/sub/avm-files/lib/avm/files/appendable/templatized_directory.rb +0 -29
  139. data/sub/avm-files/lib/avm/files/appendable.rb +0 -55
  140. data/sub/avm-files/lib/avm/files/appender.rb +0 -11
  141. data/sub/avm-files/lib/avm/files/deploy.rb +0 -71
  142. data/sub/avm-files/lib/avm/files/runner_with/file_replacer.rb +0 -34
  143. data/sub/avm-files/lib/avm/files/runner_with/filesystem_renamer.rb +0 -103
  144. data/sub/avm-files/lib/avm/files/runner_with/filesystem_traverser.rb +0 -54
  145. data/sub/avm-files/lib/avm/files/text_replacer/gsub.rb +0 -24
  146. data/sub/avm-files/lib/avm/files/text_replacer.rb +0 -32
  147. data/sub/avm-files/lib/avm/files/version.rb +0 -7
  148. data/sub/avm-files/lib/avm/files.rb +0 -9
  149. data/sub/avm-files/spec/rubocop_spec.rb +0 -3
  150. data/sub/avm-files/spec/spec_helper.rb +0 -4
  151. data/sub/avm-tools/spec/lib/avm/projects/stereotypes/git_subrepo/warp_spec.rb +0 -49
  152. data/sub/avm-tools/spec/spec_helper/avm_tools_runner.rb +0 -11
  153. /data/sub/avm-tools/spec/lib/avm/{projects/stereotypes → git/launcher_stereotypes}/git_subrepo/publish_spec_settings.yml +0 -0
  154. /data/sub/avm-tools/spec/lib/avm/{projects/stereotypes → git/launcher_stereotypes}/git_subrepo/warp_spec_settings.yml +0 -0
@@ -1,25 +0,0 @@
1
- :stylesheet: ../../../../theme/main.css
2
- = c1_1_1
3
- The Author <theauthor@example.net>
4
- :Author Initials: T.A.
5
- :toc: left
6
- :icons:
7
- :numbered:
8
- :source-highlighter: rouge
9
- :website: https://www.example.net
10
-
11
- [.normal]
12
- link:../../../index.html[Home] » link:../../index.html[c1] » link:../index.html[c1_1] » link:index.html[c1_1_1]
13
-
14
- == Child Documents
15
-
16
- * link:c1_1_1_1/index.html[c1_1_1_1]
17
- * link:c1_1_1_2/index.html[c1_1_1_2]
18
-
19
- == First Section
20
-
21
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sapien.
22
-
23
- == Second Section
24
-
25
- Nam faucibus quis dui at laoreet. Pellentesque ut sapien est.
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_asciidoctor_base0/instances/build'
4
- require 'eac_fs/comparator'
5
-
6
- RSpec.describe Avm::EacAsciidoctorBase0::Instances::Build do
7
- let(:app_director) { eac_asciidoctor_base0_stubs }
8
- let(:fs_comparator) { EacFs::Comparator.new.truncate_file('*.html') }
9
- let(:instance) { described_class.new(app_director.instance) }
10
-
11
- include_examples 'source_target_fixtures', __FILE__ do
12
- def source_data(source_file)
13
- FileUtils.copy_entry(source_file, app_director.source.path)
14
- instance.perform
15
- fs_comparator.build(instance.target_directory)
16
- end
17
-
18
- def target_data(target_file)
19
- fs_comparator.build(target_file.to_pathname)
20
- end
21
- end
22
- end
@@ -1,11 +0,0 @@
1
- == Child Documents
2
-
3
- //#child_docs
4
-
5
- == First Section
6
-
7
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sapien.
8
-
9
- == Second Section
10
-
11
- Nam faucibus quis dui at laoreet. Pellentesque ut sapien est.
@@ -1,11 +0,0 @@
1
- == Child Documents
2
-
3
- //#child_docs
4
-
5
- == First Section
6
-
7
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sapien.
8
-
9
- == Second Section
10
-
11
- Nam faucibus quis dui at laoreet. Pellentesque ut sapien est.
@@ -1,11 +0,0 @@
1
- == Child Documents
2
-
3
- //#child_docs
4
-
5
- == First Section
6
-
7
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sapien.
8
-
9
- == Second Section
10
-
11
- Nam faucibus quis dui at laoreet. Pellentesque ut sapien est.
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_asciidoctor_base0/source_generators/base'
4
- require 'avm/source_generators/runner'
5
-
6
- RSpec.describe Avm::EacAsciidoctorBase0::SourceGenerators::Base do
7
- include_examples 'avm_source_generated', __FILE__, 'EacAsciidoctorBase0'
8
- end
@@ -1,11 +0,0 @@
1
- == Child Documents
2
-
3
- //#child_docs
4
-
5
- == First Section
6
-
7
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sapien.
8
-
9
- == Second Section
10
-
11
- Nam faucibus quis dui at laoreet. Pellentesque ut sapien est.
@@ -1 +0,0 @@
1
- @import "https://darshandsoni.com/asciidoctor-skins/css/adoc-colony.css";
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_asciidoctor_base0/instances/base'
4
- require 'avm/eac_asciidoctor_base0/sources/base'
5
-
6
- RSpec.describe Avm::EacAsciidoctorBase0::Sources::Base do
7
- include_examples 'in_avm_registry', 'sources'
8
-
9
- describe '#instance' do
10
- let(:source) { eac_asciidoctor_base0_stubs.source }
11
-
12
- it do
13
- expect(source.instance).to be_a(Avm::EacAsciidoctorBase0::Instances::Base)
14
- end
15
- end
16
- end
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,55 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_config/node'
4
- require 'avm/applications/base'
5
- require 'avm/instances/base'
6
- require 'eac_ruby_utils/core_ext'
7
-
8
- module EacAsciidoctorBase0Stubs
9
- class Director
10
- DEFAULT_APPLICATION_ID = 'myapp'
11
- INSTANCE_ENTRY_KEYS = {
12
- 'install.name' => 'The Author',
13
- 'install.name_initials' => 'T.A.',
14
- 'install.email' => 'theauthor@example.net',
15
- 'web.url' => 'https://www.example.net'
16
- }.freeze
17
-
18
- enable_simple_cache
19
- common_constructor :rspec_example, :application_id, default: [DEFAULT_APPLICATION_ID] do
20
- source
21
- application
22
- instance
23
- end
24
-
25
- private
26
-
27
- # @return [Avm::Applications::Base]
28
- def application_uncached
29
- r = ::Avm::Applications::Base.new(application_id)
30
- r.entry('stereotype').write('EacAsciidoctorBase0')
31
- r.local_source_path_entry.value = source.path.to_path
32
- r
33
- end
34
-
35
- # @return [Avm::EacAsciidoctorBase0::Instances::Base]
36
- def instance_uncached
37
- r = ::Avm::EacAsciidoctorBase0::Instances::Base.new(application, 'stub')
38
- INSTANCE_ENTRY_KEYS.each { |k, v| r.entry(k).write(v) }
39
- r
40
- end
41
-
42
- # @return [Avm::EacAsciidoctorBase0::Sources::Base]
43
- def source_uncached
44
- rspec_example.avm_source('EacAsciidoctorBase0', target_basename: application_id)
45
- end
46
- end
47
-
48
- def eac_asciidoctor_base0_stubs(id = nil)
49
- args = [self]
50
- args << id if id.present?
51
- ::EacAsciidoctorBase0Stubs::Director.new(*args)
52
- end
53
- end
54
-
55
- EacRubyUtils::Rspec.default_setup.rspec_config.include(EacAsciidoctorBase0Stubs)
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/rspec/default_setup'
4
- EacRubyUtils::Rspec.default_setup_create(File.expand_path('..', __dir__))
5
- .stub_avm_contexts
6
-
7
- require 'eac_ruby_utils/require_sub'
8
- EacRubyUtils.require_sub __FILE__
@@ -1,11 +0,0 @@
1
- == Child Documents
2
-
3
- //#child_docs
4
-
5
- == First Section
6
-
7
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sapien.
8
-
9
- == Second Section
10
-
11
- Nam faucibus quis dui at laoreet. Pellentesque ut sapien est.
@@ -1 +0,0 @@
1
- @import "https://darshandsoni.com/asciidoctor-skins/css/adoc-colony.css";
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
6
-
7
- local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
- eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- $LOAD_PATH.push File.expand_path('lib', __dir__)
4
-
5
- require 'avm/eac_latex_base0/version'
6
-
7
- Gem::Specification.new do |s|
8
- s.name = 'avm-eac_latex_base0'
9
- s.version = Avm::EacLatexBase0::VERSION
10
- s.authors = ['Put here the authors']
11
- s.summary = 'Put here de description.'
12
-
13
- s.files = Dir['{lib}/**/*']
14
-
15
- s.add_dependency 'avm', '~> 0.67'
16
- s.add_dependency 'avm-eac_webapp_base0', '~> 0.15'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.112'
18
-
19
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5', '>= 0.5.1'
20
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'eac_ruby_utils/envs'
5
-
6
- module Avm
7
- module EacPythonBase0
8
- module Executables
9
- class << self
10
- enable_simple_cache
11
-
12
- private
13
-
14
- %w[latex].each do |program|
15
- define_method(program.underscore + '_uncached') do
16
- ::EacRubyUtils::Envs.local.executable(program, '--version')
17
- end
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/instances/apache_host'
4
-
5
- module Avm
6
- module EacLatexBase0
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
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/instances/base'
4
-
5
- module Avm
6
- module EacLatexBase0
7
- module Instances
8
- class Base < ::Avm::EacWebappBase0::Instances::Base
9
- end
10
- end
11
- end
12
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/instances/deploy'
4
- require 'avm/eac_latex_base0/sources/base'
5
- require 'avm/eac_latex_base0/sources/build'
6
-
7
- module Avm
8
- module EacLatexBase0
9
- module Instances
10
- class Deploy < ::Avm::EacWebappBase0::Instances::Deploy
11
- def build_content
12
- ::Avm::EacLatexBase0::Sources::Build.new(project, output_file:
13
- build_dir.join(pdf_path))
14
- end
15
-
16
- def title
17
- instance.id.humanize
18
- end
19
-
20
- def pdf_path
21
- "#{instance.id.underscore}.pdf"
22
- end
23
-
24
- def variables_source
25
- self
26
- end
27
-
28
- private
29
-
30
- def project_uncached
31
- ::Avm::EacLatexBase0::Sources::Base.new(
32
- instance.source_instance.read_entry(::Avm::Instances::EntryKeys::INSTALL_PATH)
33
- )
34
- end
35
- end
36
- end
37
- end
38
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacLatexBase0
7
- module Instances
8
- require_sub __FILE__
9
- end
10
- end
11
- end
@@ -1,44 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/sources/base'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module Avm
7
- module EacLatexBase0
8
- module Sources
9
- class Base < ::Avm::Sources::Base
10
- def chapters
11
- chapters_file.read.split("\n").map(&:strip).reject { |c| c == '' }
12
- end
13
-
14
- def chapters_file
15
- root.join('chapters')
16
- end
17
-
18
- def main_file
19
- path.join('main.tex')
20
- end
21
-
22
- def name
23
- root.basename.to_s
24
- end
25
-
26
- def default_output_dir
27
- root.join('dist')
28
- end
29
-
30
- def default_output_file
31
- root.join("#{name}.pdf")
32
- end
33
-
34
- def root
35
- path
36
- end
37
-
38
- def valid?
39
- main_file.file?
40
- end
41
- end
42
- end
43
- end
44
- end
@@ -1,49 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module EacLatexBase0
5
- module Sources
6
- class Build
7
- class << self
8
- def chapter_filename(chapter_name)
9
- "chapter_#{chapter_name}"
10
- end
11
- end
12
-
13
- module ChaptersContent
14
- private
15
-
16
- def chapter
17
- options[:chapter]
18
- end
19
-
20
- def chapter_filename(chapter_name)
21
- ::Avm::EacLatexBase0::Sources::Build.chapter_filename(chapter_name)
22
- end
23
-
24
- def check_chapter
25
- return unless chapter
26
- return if project.chapters.include?(chapter)
27
-
28
- fatal_error("Chapter not found: \"#{chapter}\" (List: #{project.chapters})")
29
- end
30
-
31
- def include_content
32
- main_path = source_temp_dir.join('main.tex')
33
- main_path.write(main_path.read.gsub(CONTENT_VAR, include_chapters_content))
34
- end
35
-
36
- def include_chapters_content
37
- r = chapters_content
38
- r = "\\maketitle\n\n#{r}" if chapter.blank?
39
- r
40
- end
41
-
42
- def chapters_content
43
- project.chapters.map { |c| "\\include{#{chapter_filename(c)}}" }.join("\n")
44
- end
45
- end
46
- end
47
- end
48
- end
49
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_templates/core_ext'
4
- require 'singleton'
5
-
6
- module Avm
7
- module EacLatexBase0
8
- module Sources
9
- class Build
10
- class Commons
11
- include ::Singleton
12
- end
13
- end
14
- end
15
- end
16
- end
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_latex_base0/sources/build/commons'
4
- require 'avm/eac_latex_base0/sources/build/file'
5
-
6
- module Avm
7
- module EacLatexBase0
8
- module Sources
9
- class Build
10
- module CopyFiles
11
- def copy_project_files
12
- copy_project_dir('.')
13
- end
14
-
15
- def copy_project_obj(subpath)
16
- return if File.basename(subpath).start_with?('.')
17
-
18
- if File.directory?(File.join(project.root, subpath))
19
- copy_project_dir(subpath)
20
- else
21
- copy_project_file(subpath)
22
- end
23
- end
24
-
25
- def copy_project_file(subpath)
26
- ::Avm::EacLatexBase0::Sources::Build::File.new(project, subpath)
27
- .build_to_dir(source_temp_dir)
28
- end
29
-
30
- def copy_project_dir(subpath)
31
- Dir.entries(File.join(project.root, subpath)).each do |f|
32
- copy_project_obj(File.join(subpath, f))
33
- end
34
- end
35
-
36
- def copy_commons_files
37
- target_dir = source_temp_dir.join('commons')
38
- target_dir.mkpath
39
- ::Avm::EacLatexBase0::Sources::Build::Commons.instance.template.apply(self, target_dir)
40
- end
41
- end
42
- end
43
- end
44
- end
45
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module EacLatexBase0
5
- module Sources
6
- class Build
7
- class File
8
- module BaseStereotype
9
- private
10
-
11
- def target_subpath
12
- subpath
13
- end
14
-
15
- def copy(target_path)
16
- FileUtils.copy_file(source_path, target_path)
17
- end
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module EacLatexBase0
5
- module Sources
6
- class Build
7
- class File
8
- module ChapterIndex
9
- class << self
10
- def match?(subpath)
11
- ::File.basename(subpath) == 'index.tex'
12
- end
13
- end
14
-
15
- private
16
-
17
- def target_subpath
18
- ::Avm::EacLatexBase0::Sources::Build.chapter_filename(
19
- File.basename(File.dirname(subpath))
20
- ) + '.tex'
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module EacLatexBase0
5
- module Sources
6
- class Build
7
- class File
8
- module TexSource
9
- class << self
10
- def match?(subpath)
11
- ::File.extname(subpath) == '.tex'
12
- end
13
- end
14
-
15
- private
16
-
17
- def copy(target_path)
18
- ::File.write(target_path, target_content)
19
- end
20
-
21
- def target_content
22
- s = ::File.read(source_path)
23
- replacements.each do |from, to|
24
- s = s.gsub(from, to)
25
- end
26
- s
27
- end
28
-
29
- def replacements
30
- { '%dir%' => ::File.dirname(subpath) }
31
- end
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end