eac_tools 0.96.2 → 0.97.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +36 -35
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +24 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/documents_owner.rb +30 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +37 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +17 -0
- data/sub/{avm-eac_rails_base1/lib/avm/eac_rails_base1 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/instances/apache_host.rb +5 -4
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb +12 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb +33 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/body_target.rb +37 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb +92 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb +28 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb +64 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +101 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/theme.rb +41 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build.rb +60 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb +28 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/base.rb +21 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/breadcrumbs.rb +55 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs/document_builder.rb +63 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs.rb +35 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/default_body.rb +21 -0
- data/sub/{avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros.rb} +2 -2
- data/sub/{avm-eac_rails_base1/lib/avm/eac_rails_base1 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/instances.rb +1 -1
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging/catcher.rb +47 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging/error.rb +18 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/logging.rb +11 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb +28 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators.rb +11 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/instance_to_build.rb +45 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/theme.rb +46 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +49 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/media.rb +28 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document/title.rb +31 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/document.rb +56 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb +58 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document/build.rb +51 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/document.rb +30 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/documents.rb +28 -0
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/ignore_errors_option.rb +44 -0
- data/sub/{avm-eac_rails_base1/lib/avm/eac_rails_base1/instances → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources}/runners.rb +2 -2
- data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb +11 -0
- data/sub/{avm-eac_rails_base1/lib/avm/eac_rails_base1 → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0}/version.rb +2 -2
- data/sub/{avm-eac_rails_base1/lib/avm/eac_rails_base1.rb → avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb} +1 -1
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +13 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb +81 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc +25 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb +22 -0
- 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
- 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
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/body.adoc +11 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc1/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/body.adoc +11 -0
- 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
- 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
- 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
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.source/content/doc2/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_media/a_media_file +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/_theme/main.css +1 -0
- 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
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc1/index.html +1 -0
- 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
- 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
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/doc2/index.html +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec_files/first.target/index.html +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec.rb +8 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/body.adoc +11 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/content/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/theme/main.css +1 -0
- data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb +16 -0
- data/sub/avm-eac_asciidoctor_base0/spec/spec_helper/eac_asciidoctor_base0_stubs.rb +55 -0
- data/sub/{avm-eac_rails_base1 → avm-eac_asciidoctor_base0}/spec/spec_helper.rb +4 -0
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/body.adoc +11 -0
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/content/title +1 -0
- data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/theme/main.css +1 -0
- metadata +81 -39
- data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +0 -22
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_base.rb +0 -16
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_path.rb +0 -21
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +0 -50
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/deploy.rb +0 -23
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/daemon.rb +0 -39
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb +0 -27
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb +0 -28
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb +0 -28
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb +0 -45
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb +0 -27
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb +0 -19
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb +0 -34
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +0 -48
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb +0 -19
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/service.rb +0 -72
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.rb +0 -31
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit.rb +0 -59
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb +0 -27
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +0 -47
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb +0 -43
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/apache_path/extra_content.conf +0 -5
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler.service +0 -12
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.sh +0 -6
- /data/sub/{avm-eac_rails_base1 → avm-eac_asciidoctor_base0}/Gemfile +0 -0
- /data/sub/{avm-eac_rails_base1 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b86618f5e0b6acf9c493717389ada6aa49459a59b4a3eb2970d8f0b2b16d570
|
4
|
+
data.tar.gz: 3cdba7b928c7b2754642ad9ce59f36ecd8d2656fa1a1a18d4f675e6809134376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
4
|
+
eac_tools (0.97.0)
|
5
5
|
avm (~> 0.94)
|
6
|
-
avm-eac_asciidoctor_base0 (~> 0.
|
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)
|
@@ -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.
|
24
|
+
eac_ruby_utils (~> 0.123)
|
25
25
|
|
26
26
|
PATH
|
27
|
-
remote: sub/avm-
|
27
|
+
remote: sub/avm-eac_asciidoctor_base0
|
28
28
|
specs:
|
29
|
-
avm-
|
30
|
-
|
31
|
-
avm-eac_ruby_base1 (~> 0.35, >= 0.35.1)
|
29
|
+
avm-eac_asciidoctor_base0 (0.25.0)
|
30
|
+
asciidoctor (~> 2.0, >= 2.0.23)
|
32
31
|
avm-eac_webapp_base0 (~> 0.20, >= 0.20.1)
|
33
|
-
|
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.
|
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,6 +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)
|
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)
|
93
92
|
avm-eac_redmine_base0 (0.22.3)
|
94
93
|
avm (~> 0.92)
|
95
94
|
avm-eac_generic_base0 (~> 0.13)
|
@@ -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.
|
165
|
-
eac_fs (~> 0.
|
166
|
-
eac_ruby_utils (~> 0.
|
167
|
-
faraday (~> 2.
|
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
|
-
|
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.
|
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.
|
194
|
+
eac_ruby_utils (0.123.0)
|
195
195
|
activesupport (>= 4, < 7)
|
196
|
-
addressable (~> 2.8, >= 2.8.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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-
|
313
|
+
avm-eac_asciidoctor_base0!
|
313
314
|
eac_ruby_gem_support (~> 0.10)
|
314
315
|
eac_tools!
|
315
316
|
|
data/lib/eac_tools/version.rb
CHANGED
@@ -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
|
@@ -1,16 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/eac_rails_base1/instances/apache_base'
|
4
3
|
require 'avm/eac_webapp_base0/instances/apache_host'
|
5
4
|
|
6
5
|
module Avm
|
7
|
-
module
|
6
|
+
module EacAsciidoctorBase0
|
8
7
|
module Instances
|
9
8
|
class ApacheHost < ::Avm::EacWebappBase0::Instances::ApacheHost
|
10
|
-
|
9
|
+
def document_root
|
10
|
+
instance.read_entry(::Avm::Instances::EntryKeys::INSTALL_PATH)
|
11
|
+
end
|
11
12
|
|
12
13
|
def extra_content
|
13
|
-
'
|
14
|
+
''
|
14
15
|
end
|
15
16
|
end
|
16
17
|
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
|
data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb
ADDED
@@ -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
|