eac_tools 0.16.1 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +27 -15
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/lib/avm/entries/auto_values/uri_entry.rb +24 -0
  5. data/sub/avm/lib/avm/entries/uri_builder.rb +85 -0
  6. data/sub/avm/lib/avm/instances/base/auto_values/install.rb +6 -9
  7. data/sub/avm/lib/avm/instances/base/auto_values.rb +2 -8
  8. data/sub/avm/lib/avm/instances/entry_keys.rb +1 -1
  9. data/sub/avm/lib/avm/registry/source_generators.rb +3 -2
  10. data/sub/avm/lib/avm/source_generators/base.rb +16 -1
  11. data/sub/avm/lib/avm/source_generators/option.rb +11 -0
  12. data/sub/avm/lib/avm/source_generators/option_list.rb +32 -0
  13. data/sub/avm/lib/avm/source_generators/runner.rb +52 -0
  14. data/sub/avm/lib/avm/sources/runner.rb +38 -0
  15. data/sub/avm/lib/avm/version.rb +1 -1
  16. data/sub/avm/spec/lib/avm/instances/base_spec.rb +18 -1
  17. data/sub/avm/spec/lib/avm/instances/base_spec_configs_storage.yml +6 -0
  18. data/sub/avm/spec/lib/avm/sources/runner_spec.rb +9 -0
  19. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb +12 -0
  20. data/sub/{avm-tools/lib/avm/rails.rb → avm-eac_generic_base0/lib/avm/eac_generic_base0/instances.rb} +4 -2
  21. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
  22. data/sub/avm-eac_latex_base0/Gemfile +8 -0
  23. data/sub/avm-eac_latex_base0/avm-eac_latex_base0.gemspec +20 -0
  24. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/apache_host.rb +19 -0
  25. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/base.rb +13 -0
  26. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/deploy.rb +38 -0
  27. data/sub/{avm-tools/lib/avm/ruby/bundler.rb → avm-eac_latex_base0/lib/avm/eac_latex_base0/instances.rb} +2 -2
  28. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/base.rb +44 -0
  29. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/chapters_content.rb +49 -0
  30. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/commons.rb +16 -0
  31. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/copy_files.rb +45 -0
  32. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/base_stereotype.rb +23 -0
  33. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/chapter_index.rb +27 -0
  34. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/tex_source.rb +37 -0
  35. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file.rb +49 -0
  36. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build.rb +119 -0
  37. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_chapters.rb +43 -0
  38. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_single.rb +33 -0
  39. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/info.rb +32 -0
  40. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners.rb +13 -0
  41. data/sub/{avm-tools/lib/avm/ruby/gems.rb → avm-eac_latex_base0/lib/avm/eac_latex_base0/sources.rb} +2 -2
  42. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/version.rb +7 -0
  43. data/sub/{avm-tools/lib/avm/ruby.rb → avm-eac_latex_base0/lib/avm/eac_latex_base0.rb} +1 -1
  44. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem → avm-eac_latex_base0}/spec/rubocop_spec.rb +0 -0
  45. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem → avm-eac_latex_base0}/spec/spec_helper.rb +0 -0
  46. data/sub/{avm-tools/template/avm/eac_writings_base0 → avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build}/commons/all.tex +0 -0
  47. data/sub/{avm-tools/template/avm/eac_writings_base0 → avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build}/commons/ebook.tex +0 -0
  48. data/sub/{avm-tools/template/avm/eac_writings_base0 → avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build}/commons/images.tex +0 -0
  49. data/sub/{avm-tools/template/avm/eac_writings_base0 → avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build}/commons/links.tex +0 -0
  50. data/sub/{avm-tools/template/avm/eac_writings_base0 → avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build}/commons/portuguese.tex +0 -0
  51. data/sub/{avm-tools/template/avm/eac_writings_base0 → avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build}/commons/source_code/java.tex +0 -0
  52. data/sub/{avm-tools/template/avm/eac_writings_base0 → avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build}/commons/source_code.tex +0 -0
  53. data/sub/{avm-tools/template/avm/eac_writings_base0 → avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build}/commons/utils.tex +0 -0
  54. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
  55. data/sub/{avm-tools/lib/avm/ruby/gems/generator.rb → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb} +27 -16
  56. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators.rb +11 -0
  57. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +84 -0
  58. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  59. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec.rb → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb} +8 -6
  60. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile +8 -0
  61. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files}/dashed-mygem/dashed-mygem.gemspec +0 -0
  62. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files}/dashed-mygem/lib/dashed/mygem/version.rb +0 -0
  63. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files}/dashed-mygem/lib/dashed/mygem.rb +0 -0
  64. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem}/spec/rubocop_spec.rb +0 -0
  65. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem}/spec/spec_helper.rb +0 -0
  66. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile +8 -0
  67. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files}/mygem/lib/mygem/version.rb +0 -0
  68. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files}/mygem/lib/mygem.rb +0 -0
  69. data/sub/{avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files}/mygem/mygem.gemspec +0 -0
  70. data/sub/{avm-tools/template/avm/ruby/gems/generator/static → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem}/spec/rubocop_spec.rb +0 -0
  71. data/sub/{avm-tools/template/avm/ruby/gems/generator/static → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem}/spec/spec_helper.rb +0 -0
  72. data/sub/{avm-tools/template/avm/ruby/gems/generator → avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base}/gemspec.template +0 -0
  73. data/sub/{avm-tools/template/avm/ruby/gems/generator → avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base}/root_lib.template +0 -0
  74. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile +8 -0
  75. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb +3 -0
  76. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb +4 -0
  77. data/sub/{avm-tools/template/avm/ruby/gems/generator → avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base}/version.template +0 -0
  78. data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +1 -0
  79. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb +2 -2
  80. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +1 -1
  81. data/sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb +4 -3
  82. data/sub/avm-tools/avm-tools.gemspec +1 -1
  83. data/sub/avm-tools/lib/avm/tools/runner/app_src.rb +4 -14
  84. data/sub/avm-tools/lib/avm/tools/runner/source_generate.rb +2 -35
  85. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  86. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri/query_value.rb +37 -0
  87. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri.rb +4 -0
  88. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable.rb +4 -0
  89. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  90. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/addressable/uri/query_value_spec.rb +25 -0
  91. metadata +111 -71
  92. data/sub/avm/lib/avm/instances/base/auto_values/system.rb +0 -23
  93. data/sub/avm-tools/lib/avm/eac_writings_base0/apache_host.rb +0 -17
  94. data/sub/avm-tools/lib/avm/eac_writings_base0/commons.rb +0 -12
  95. data/sub/avm-tools/lib/avm/eac_writings_base0/deploy.rb +0 -36
  96. data/sub/avm-tools/lib/avm/eac_writings_base0/file_build/base_stereotype.rb +0 -19
  97. data/sub/avm-tools/lib/avm/eac_writings_base0/file_build/chapter_index.rb +0 -23
  98. data/sub/avm-tools/lib/avm/eac_writings_base0/file_build/tex_source.rb +0 -33
  99. data/sub/avm-tools/lib/avm/eac_writings_base0/file_build.rb +0 -45
  100. data/sub/avm-tools/lib/avm/eac_writings_base0/instance.rb +0 -11
  101. data/sub/avm-tools/lib/avm/eac_writings_base0/project.rb +0 -33
  102. data/sub/avm-tools/lib/avm/eac_writings_base0/project_build/chapters_content.rb +0 -47
  103. data/sub/avm-tools/lib/avm/eac_writings_base0/project_build/copy_files.rb +0 -42
  104. data/sub/avm-tools/lib/avm/eac_writings_base0/project_build.rb +0 -117
  105. data/sub/avm-tools/lib/avm/eac_writings_base0.rb +0 -9
  106. data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_chapters.rb +0 -45
  107. data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_single.rb +0 -35
  108. data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/info.rb +0 -34
  109. data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0.rb +0 -33
  110. data/sub/avm-tools/lib/avm/tools/runner/eac_writings_base0.rb +0 -14
  111. data/sub/avm-tools/lib/avm/tools/runner/ruby/gems/generate.rb +0 -39
  112. data/sub/avm-tools/lib/avm/tools/runner/ruby/gems.rb +0 -19
  113. data/sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/Gemfile +0 -5
  114. data/sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/Gemfile.lock +0 -1
  115. data/sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/Gemfile +0 -5
  116. data/sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/Gemfile.lock +0 -1
  117. data/sub/avm-tools/template/avm/ruby/gems/generator/static/Gemfile +0 -5
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: avm
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.35'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.35'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: avm-eac_asciidoctor_base0
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,14 +44,28 @@ dependencies:
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '0.4'
47
+ version: '0.5'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '0.4'
54
+ version: '0.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: avm-eac_latex_base0
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.1'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: avm-eac_rails_base0
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +140,14 @@ dependencies:
112
140
  requirements:
113
141
  - - "~>"
114
142
  - !ruby/object:Gem::Version
115
- version: '0.12'
143
+ version: '0.16'
116
144
  type: :runtime
117
145
  prerelease: false
118
146
  version_requirements: !ruby/object:Gem::Requirement
119
147
  requirements:
120
148
  - - "~>"
121
149
  - !ruby/object:Gem::Version
122
- version: '0.12'
150
+ version: '0.16'
123
151
  - !ruby/object:Gem::Dependency
124
152
  name: avm-eac_webapp_base0
125
153
  requirement: !ruby/object:Gem::Requirement
@@ -147,6 +175,9 @@ dependencies:
147
175
  - - "~>"
148
176
  - !ruby/object:Gem::Version
149
177
  version: '0.1'
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 0.1.1
150
181
  type: :runtime
151
182
  prerelease: false
152
183
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,40 +185,37 @@ dependencies:
154
185
  - - "~>"
155
186
  - !ruby/object:Gem::Version
156
187
  version: '0.1'
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: 0.1.1
157
191
  - !ruby/object:Gem::Dependency
158
192
  name: avm-tools
159
193
  requirement: !ruby/object:Gem::Requirement
160
194
  requirements:
161
195
  - - "~>"
162
196
  - !ruby/object:Gem::Version
163
- version: '0.129'
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: 0.129.1
197
+ version: '0.131'
167
198
  type: :runtime
168
199
  prerelease: false
169
200
  version_requirements: !ruby/object:Gem::Requirement
170
201
  requirements:
171
202
  - - "~>"
172
203
  - !ruby/object:Gem::Version
173
- version: '0.129'
174
- - - ">="
175
- - !ruby/object:Gem::Version
176
- version: 0.129.1
204
+ version: '0.131'
177
205
  - !ruby/object:Gem::Dependency
178
206
  name: eac_ruby_utils
179
207
  requirement: !ruby/object:Gem::Requirement
180
208
  requirements:
181
209
  - - "~>"
182
210
  - !ruby/object:Gem::Version
183
- version: '0.97'
211
+ version: '0.98'
184
212
  type: :runtime
185
213
  prerelease: false
186
214
  version_requirements: !ruby/object:Gem::Requirement
187
215
  requirements:
188
216
  - - "~>"
189
217
  - !ruby/object:Gem::Version
190
- version: '0.97'
218
+ version: '0.98'
191
219
  - !ruby/object:Gem::Dependency
192
220
  name: eac_ruby_gem_support
193
221
  requirement: !ruby/object:Gem::Requirement
@@ -236,6 +264,8 @@ files:
236
264
  - sub/avm-eac_generic_base0/Gemfile
237
265
  - sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec
238
266
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0.rb
267
+ - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances.rb
268
+ - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb
239
269
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
240
270
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base.rb
241
271
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
@@ -247,6 +277,38 @@ files:
247
277
  - sub/avm-eac_generic_base0/spec/lib/avm/eac_generic_base0/sources/base_spec.rb
248
278
  - sub/avm-eac_generic_base0/spec/rubocop_spec.rb
249
279
  - sub/avm-eac_generic_base0/spec/spec_helper.rb
280
+ - sub/avm-eac_latex_base0/Gemfile
281
+ - sub/avm-eac_latex_base0/avm-eac_latex_base0.gemspec
282
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0.rb
283
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances.rb
284
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/apache_host.rb
285
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/base.rb
286
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/deploy.rb
287
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources.rb
288
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/base.rb
289
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build.rb
290
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/chapters_content.rb
291
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/commons.rb
292
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/copy_files.rb
293
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file.rb
294
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/base_stereotype.rb
295
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/chapter_index.rb
296
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/tex_source.rb
297
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners.rb
298
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_chapters.rb
299
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_single.rb
300
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/info.rb
301
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/version.rb
302
+ - sub/avm-eac_latex_base0/spec/rubocop_spec.rb
303
+ - sub/avm-eac_latex_base0/spec/spec_helper.rb
304
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/all.tex
305
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/ebook.tex
306
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/images.tex
307
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/links.tex
308
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/portuguese.tex
309
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/source_code.tex
310
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/source_code/java.tex
311
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/utils.tex
250
312
  - sub/avm-eac_rails_base0/Gemfile
251
313
  - sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec
252
314
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0.rb
@@ -383,6 +445,8 @@ files:
383
445
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb
384
446
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb
385
447
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb
448
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators.rb
449
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb
386
450
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb
387
451
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb
388
452
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
@@ -392,6 +456,7 @@ files:
392
456
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
393
457
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb
394
458
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb
459
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb
395
460
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb
396
461
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb
397
462
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb
@@ -412,6 +477,19 @@ files:
412
477
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml
413
478
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb
414
479
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb
480
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb
481
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile
482
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec
483
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb
484
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb
485
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/rubocop_spec.rb
486
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/spec/spec_helper.rb
487
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile
488
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb
489
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb
490
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec
491
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/rubocop_spec.rb
492
+ - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb
415
493
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
416
494
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile
417
495
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile
@@ -422,6 +500,12 @@ files:
422
500
  - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb
423
501
  - sub/avm-eac_ruby_base1/spec/rubocop_spec.rb
424
502
  - sub/avm-eac_ruby_base1/spec/spec_helper.rb
503
+ - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template
504
+ - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/root_lib.template
505
+ - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile
506
+ - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb
507
+ - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb
508
+ - sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template
425
509
  - sub/avm-eac_webapp_base0/Gemfile
426
510
  - sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec
427
511
  - sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0.rb
@@ -471,19 +555,6 @@ files:
471
555
  - sub/avm-tools/avm-tools.gemspec
472
556
  - sub/avm-tools/exe/avm
473
557
  - sub/avm-tools/lib/avm.rb
474
- - sub/avm-tools/lib/avm/eac_writings_base0.rb
475
- - sub/avm-tools/lib/avm/eac_writings_base0/apache_host.rb
476
- - sub/avm-tools/lib/avm/eac_writings_base0/commons.rb
477
- - sub/avm-tools/lib/avm/eac_writings_base0/deploy.rb
478
- - sub/avm-tools/lib/avm/eac_writings_base0/file_build.rb
479
- - sub/avm-tools/lib/avm/eac_writings_base0/file_build/base_stereotype.rb
480
- - sub/avm-tools/lib/avm/eac_writings_base0/file_build/chapter_index.rb
481
- - sub/avm-tools/lib/avm/eac_writings_base0/file_build/tex_source.rb
482
- - sub/avm-tools/lib/avm/eac_writings_base0/instance.rb
483
- - sub/avm-tools/lib/avm/eac_writings_base0/project.rb
484
- - sub/avm-tools/lib/avm/eac_writings_base0/project_build.rb
485
- - sub/avm-tools/lib/avm/eac_writings_base0/project_build/chapters_content.rb
486
- - sub/avm-tools/lib/avm/eac_writings_base0/project_build/copy_files.rb
487
558
  - sub/avm-tools/lib/avm/launcher/context.rb
488
559
  - sub/avm-tools/lib/avm/launcher/context/instance_collector.rb
489
560
  - sub/avm-tools/lib/avm/launcher/context/instance_discovery.rb
@@ -543,21 +614,12 @@ files:
543
614
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
544
615
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
545
616
  - sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem/publish.rb
546
- - sub/avm-tools/lib/avm/rails.rb
547
- - sub/avm-tools/lib/avm/ruby.rb
548
- - sub/avm-tools/lib/avm/ruby/bundler.rb
549
- - sub/avm-tools/lib/avm/ruby/gems.rb
550
- - sub/avm-tools/lib/avm/ruby/gems/generator.rb
551
617
  - sub/avm-tools/lib/avm/stereotypes.rb
552
618
  - sub/avm-tools/lib/avm/tools.rb
553
619
  - sub/avm-tools/lib/avm/tools/app_src.rb
554
620
  - sub/avm-tools/lib/avm/tools/core_ext.rb
555
621
  - sub/avm-tools/lib/avm/tools/runner.rb
556
622
  - sub/avm-tools/lib/avm/tools/runner/app_src.rb
557
- - sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0.rb
558
- - sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_chapters.rb
559
- - sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_single.rb
560
- - sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/info.rb
561
623
  - sub/avm-tools/lib/avm/tools/runner/app_src/info.rb
562
624
  - sub/avm-tools/lib/avm/tools/runner/app_src/issue.rb
563
625
  - sub/avm-tools/lib/avm/tools/runner/app_src/issue/complete.rb
@@ -575,7 +637,6 @@ files:
575
637
  - sub/avm-tools/lib/avm/tools/runner/config.rb
576
638
  - sub/avm-tools/lib/avm/tools/runner/config/load_path.rb
577
639
  - sub/avm-tools/lib/avm/tools/runner/eac_webapp_base0.rb
578
- - sub/avm-tools/lib/avm/tools/runner/eac_writings_base0.rb
579
640
  - sub/avm-tools/lib/avm/tools/runner/files.rb
580
641
  - sub/avm-tools/lib/avm/tools/runner/files/format.rb
581
642
  - sub/avm-tools/lib/avm/tools/runner/files/rotate.rb
@@ -597,8 +658,6 @@ files:
597
658
  - sub/avm-tools/lib/avm/tools/runner/launcher/projects.rb
598
659
  - sub/avm-tools/lib/avm/tools/runner/launcher/publish.rb
599
660
  - sub/avm-tools/lib/avm/tools/runner/ruby.rb
600
- - sub/avm-tools/lib/avm/tools/runner/ruby/gems.rb
601
- - sub/avm-tools/lib/avm/tools/runner/ruby/gems/generate.rb
602
661
  - sub/avm-tools/lib/avm/tools/runner/ruby/rubocop.rb
603
662
  - sub/avm-tools/lib/avm/tools/runner/self.rb
604
663
  - sub/avm-tools/lib/avm/tools/runner/self/docker.rb
@@ -659,21 +718,6 @@ files:
659
718
  - sub/avm-tools/spec/lib/avm/tools/runner/git/deploy_spec.rb
660
719
  - sub/avm-tools/spec/lib/avm/tools/runner/git/deploy_spec_files/append1/stub3.txt.template
661
720
  - sub/avm-tools/spec/lib/avm/tools/runner/git/deploy_spec_files/append2/stub4.txt
662
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec.rb
663
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/Gemfile
664
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/Gemfile.lock
665
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/dashed-mygem.gemspec
666
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/lib/dashed/mygem.rb
667
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/lib/dashed/mygem/version.rb
668
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/spec/rubocop_spec.rb
669
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/dashed-mygem/spec/spec_helper.rb
670
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/Gemfile
671
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/Gemfile.lock
672
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/lib/mygem.rb
673
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/lib/mygem/version.rb
674
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/mygem.gemspec
675
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/spec/rubocop_spec.rb
676
- - sub/avm-tools/spec/lib/avm/tools/runner/ruby/gems/generate_spec_files/mygem/spec/spec_helper.rb
677
721
  - sub/avm-tools/spec/lib/avm/tools/runner/ruby/rubocop_spec.rb
678
722
  - sub/avm-tools/spec/lib/avm/tools/runner/ruby/rubocop_spec_files/dir1/dir3/Gemfile
679
723
  - sub/avm-tools/spec/lib/avm/tools/runner/ruby/rubocop_spec_files/dir1/dir3/Gemfile.lock
@@ -690,21 +734,7 @@ files:
690
734
  - sub/avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server/id_rsa.pub
691
735
  - sub/avm-tools/spec/spec_helper/stubbed_docker_server.rb
692
736
  - sub/avm-tools/spec/spec_helper/templates.rb
693
- - sub/avm-tools/template/avm/eac_writings_base0/commons/all.tex
694
- - sub/avm-tools/template/avm/eac_writings_base0/commons/ebook.tex
695
- - sub/avm-tools/template/avm/eac_writings_base0/commons/images.tex
696
- - sub/avm-tools/template/avm/eac_writings_base0/commons/links.tex
697
- - sub/avm-tools/template/avm/eac_writings_base0/commons/portuguese.tex
698
- - sub/avm-tools/template/avm/eac_writings_base0/commons/source_code.tex
699
- - sub/avm-tools/template/avm/eac_writings_base0/commons/source_code/java.tex
700
- - sub/avm-tools/template/avm/eac_writings_base0/commons/utils.tex
701
737
  - sub/avm-tools/template/avm/eac_writings_base0/deploy/index.html.template
702
- - sub/avm-tools/template/avm/ruby/gems/generator/gemspec.template
703
- - sub/avm-tools/template/avm/ruby/gems/generator/root_lib.template
704
- - sub/avm-tools/template/avm/ruby/gems/generator/static/Gemfile
705
- - sub/avm-tools/template/avm/ruby/gems/generator/static/spec/rubocop_spec.rb
706
- - sub/avm-tools/template/avm/ruby/gems/generator/static/spec/spec_helper.rb
707
- - sub/avm-tools/template/avm/ruby/gems/generator/version.template
708
738
  - sub/avm-tools/template/avm/self/docker_image/Dockerfile
709
739
  - sub/avm-tools/template/avm/self/docker_image/entrypoint.sh
710
740
  - sub/avm/Gemfile
@@ -731,8 +761,10 @@ files:
731
761
  - sub/avm/lib/avm/entries.rb
732
762
  - sub/avm/lib/avm/entries/auto_values.rb
733
763
  - sub/avm/lib/avm/entries/auto_values/entry.rb
764
+ - sub/avm/lib/avm/entries/auto_values/uri_entry.rb
734
765
  - sub/avm/lib/avm/entries/base.rb
735
766
  - sub/avm/lib/avm/entries/entry.rb
767
+ - sub/avm/lib/avm/entries/uri_builder.rb
736
768
  - sub/avm/lib/avm/executables.rb
737
769
  - sub/avm/lib/avm/instances.rb
738
770
  - sub/avm/lib/avm/instances/base.rb
@@ -745,7 +777,6 @@ files:
745
777
  - sub/avm/lib/avm/instances/base/auto_values/mailer.rb
746
778
  - sub/avm/lib/avm/instances/base/auto_values/ruby.rb
747
779
  - sub/avm/lib/avm/instances/base/auto_values/source.rb
748
- - sub/avm/lib/avm/instances/base/auto_values/system.rb
749
780
  - sub/avm/lib/avm/instances/base/auto_values/web.rb
750
781
  - sub/avm/lib/avm/instances/base/dockerizable.rb
751
782
  - sub/avm/lib/avm/instances/base/entry_keys.rb
@@ -787,6 +818,9 @@ files:
787
818
  - sub/avm/lib/avm/self/instance/entry_keys.rb
788
819
  - sub/avm/lib/avm/source_generators.rb
789
820
  - sub/avm/lib/avm/source_generators/base.rb
821
+ - sub/avm/lib/avm/source_generators/option.rb
822
+ - sub/avm/lib/avm/source_generators/option_list.rb
823
+ - sub/avm/lib/avm/source_generators/runner.rb
790
824
  - sub/avm/lib/avm/sources.rb
791
825
  - sub/avm/lib/avm/sources/base.rb
792
826
  - sub/avm/lib/avm/sources/base/configuration.rb
@@ -798,6 +832,7 @@ files:
798
832
  - sub/avm/lib/avm/sources/base/testing.rb
799
833
  - sub/avm/lib/avm/sources/configuration.rb
800
834
  - sub/avm/lib/avm/sources/configuration/rubocop.rb
835
+ - sub/avm/lib/avm/sources/runner.rb
801
836
  - sub/avm/lib/avm/sources/tests.rb
802
837
  - sub/avm/lib/avm/sources/tests/builder.rb
803
838
  - sub/avm/lib/avm/sources/tests/performer.rb
@@ -814,6 +849,7 @@ files:
814
849
  - sub/avm/spec/lib/avm/instances/base_spec_configs_storage.yml
815
850
  - sub/avm/spec/lib/avm/scms/base_spec.rb
816
851
  - sub/avm/spec/lib/avm/sources/base_spec.rb
852
+ - sub/avm/spec/lib/avm/sources/runner_spec.rb
817
853
  - sub/avm/spec/rubocop_spec.rb
818
854
  - sub/avm/spec/spec_helper.rb
819
855
  - sub/eac_cli/Gemfile
@@ -1067,6 +1103,9 @@ files:
1067
1103
  - sub/eac_ruby_utils/lib/eac_ruby_utils/options_consumer.rb
1068
1104
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patch.rb
1069
1105
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches.rb
1106
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable.rb
1107
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri.rb
1108
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri/query_value.rb
1070
1109
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb
1071
1110
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb
1072
1111
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb
@@ -1169,6 +1208,7 @@ files:
1169
1208
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb
1170
1209
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/method_class_spec.rb
1171
1210
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
1211
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/addressable/uri/query_value_spec.rb
1172
1212
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
1173
1213
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb
1174
1214
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'addressable'
4
-
5
- module Avm
6
- module Instances
7
- class Base
8
- module AutoValues
9
- module System
10
- def auto_system_username
11
- inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, 'system.username') ||
12
- read_entry_optional(::Avm::Instances::EntryKeys::INSTALL_USERNAME)
13
- end
14
-
15
- def auto_system_groupname
16
- inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, 'system.groupname') ||
17
- read_entry_optional('system.username')
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/apache_host'
4
-
5
- module Avm
6
- module EacWritingsBase0
7
- class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
8
- def document_root
9
- instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
10
- end
11
-
12
- def extra_content
13
- ''
14
- end
15
- end
16
- end
17
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_templates/core_ext'
4
- require 'singleton'
5
-
6
- module Avm
7
- module EacWritingsBase0
8
- class Commons
9
- include ::Singleton
10
- end
11
- end
12
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/deploy'
4
- require 'avm/eac_writings_base0/project'
5
- require 'avm/eac_writings_base0/project_build'
6
-
7
- module Avm
8
- module EacWritingsBase0
9
- class Deploy < ::Avm::EacWebappBase0::Deploy
10
- def build_content
11
- ::Avm::EacWritingsBase0::ProjectBuild.new(project, output_file:
12
- build_dir.join(pdf_path))
13
- end
14
-
15
- def title
16
- instance.id.humanize
17
- end
18
-
19
- def pdf_path
20
- "#{instance.id.underscore}.pdf"
21
- end
22
-
23
- def variables_source
24
- self
25
- end
26
-
27
- private
28
-
29
- def project_uncached
30
- ::Avm::EacWritingsBase0::Project.new(
31
- instance.source_instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
32
- )
33
- end
34
- end
35
- end
36
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module EacWritingsBase0
5
- class FileBuild
6
- module BaseStereotype
7
- private
8
-
9
- def target_subpath
10
- subpath
11
- end
12
-
13
- def copy(target_path)
14
- FileUtils.copy_file(source_path, target_path)
15
- end
16
- end
17
- end
18
- end
19
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module EacWritingsBase0
5
- class FileBuild
6
- module ChapterIndex
7
- class << self
8
- def match?(subpath)
9
- ::File.basename(subpath) == 'index.tex'
10
- end
11
- end
12
-
13
- private
14
-
15
- def target_subpath
16
- ::Avm::EacWritingsBase0::ProjectBuild.chapter_filename(
17
- File.basename(File.dirname(subpath))
18
- ) + '.tex'
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module EacWritingsBase0
5
- class FileBuild
6
- module TexSource
7
- class << self
8
- def match?(subpath)
9
- ::File.extname(subpath) == '.tex'
10
- end
11
- end
12
-
13
- private
14
-
15
- def copy(target_path)
16
- ::File.write(target_path, target_content)
17
- end
18
-
19
- def target_content
20
- s = ::File.read(source_path)
21
- replacements.each do |from, to|
22
- s = s.gsub(from, to)
23
- end
24
- s
25
- end
26
-
27
- def replacements
28
- { '%dir%' => ::File.dirname(subpath) }
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacWritingsBase0
7
- class FileBuild
8
- require_sub __FILE__
9
- include ::Avm::EacWritingsBase0::FileBuild::BaseStereotype
10
- DEFAULT_STEREOTYPES = [::Avm::EacWritingsBase0::FileBuild::ChapterIndex,
11
- ::Avm::EacWritingsBase0::FileBuild::TexSource].freeze
12
-
13
- class << self
14
- def stereotypes
15
- DEFAULT_STEREOTYPES
16
- end
17
- end
18
-
19
- common_constructor :project, :subpath do
20
- self.class.stereotypes.each do |stereotype|
21
- singleton_class.prepend(stereotype) if stereotype.match?(subpath)
22
- end
23
- end
24
-
25
- def build_to_dir(build_root_target_dir)
26
- create_target_dir(build_root_target_dir)
27
- copy(target_path(build_root_target_dir))
28
- end
29
-
30
- private
31
-
32
- def create_target_dir(build_root_target_dir)
33
- FileUtils.mkdir_p(File.dirname(target_path(build_root_target_dir)))
34
- end
35
-
36
- def source_path
37
- File.join(project.root, subpath)
38
- end
39
-
40
- def target_path(build_root_target_dir)
41
- File.join(build_root_target_dir, target_subpath)
42
- end
43
- end
44
- end
45
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/instance'
4
-
5
- module Avm
6
- module EacWritingsBase0
7
- class Instance < ::Avm::EacWebappBase0::Instance
8
- FILES_UNITS = {}.freeze
9
- end
10
- end
11
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacWritingsBase0
7
- class Project
8
- common_constructor :root do
9
- self.root = root.to_pathname
10
- end
11
-
12
- def chapters
13
- chapters_file.read.split("\n").map(&:strip).reject { |c| c == '' }
14
- end
15
-
16
- def chapters_file
17
- root.join('chapters')
18
- end
19
-
20
- def name
21
- root.basename.to_s
22
- end
23
-
24
- def default_output_dir
25
- root.join('dist')
26
- end
27
-
28
- def default_output_file
29
- root.join("#{name}.pdf")
30
- end
31
- end
32
- end
33
- end