eac_tools 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +23 -11
  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/version.rb +1 -1
  10. data/sub/avm/spec/lib/avm/instances/base_spec.rb +18 -1
  11. data/sub/avm/spec/lib/avm/instances/base_spec_configs_storage.yml +6 -0
  12. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb +12 -0
  13. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances.rb +11 -0
  14. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
  15. data/sub/avm-eac_latex_base0/Gemfile +8 -0
  16. data/sub/avm-eac_latex_base0/avm-eac_latex_base0.gemspec +20 -0
  17. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/apache_host.rb +19 -0
  18. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/base.rb +13 -0
  19. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/deploy.rb +38 -0
  20. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances.rb +11 -0
  21. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/base.rb +44 -0
  22. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/chapters_content.rb +49 -0
  23. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/commons.rb +16 -0
  24. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/copy_files.rb +45 -0
  25. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/base_stereotype.rb +23 -0
  26. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/chapter_index.rb +27 -0
  27. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/tex_source.rb +37 -0
  28. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file.rb +49 -0
  29. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build.rb +119 -0
  30. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_chapters.rb +43 -0
  31. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_single.rb +33 -0
  32. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/info.rb +32 -0
  33. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners.rb +13 -0
  34. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources.rb +11 -0
  35. data/sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/version.rb +7 -0
  36. data/sub/{avm-tools/lib/avm/eac_writings_base0.rb → avm-eac_latex_base0/lib/avm/eac_latex_base0.rb} +1 -1
  37. data/sub/avm-eac_latex_base0/spec/rubocop_spec.rb +3 -0
  38. data/sub/avm-eac_latex_base0/spec/spec_helper.rb +4 -0
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  48. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile +3 -0
  49. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile +3 -0
  50. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile +3 -0
  51. data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +1 -0
  52. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb +2 -2
  53. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +1 -1
  54. data/sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb +4 -3
  55. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  56. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri/query_value.rb +37 -0
  57. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri.rb +4 -0
  58. data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable.rb +4 -0
  59. data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  60. data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/addressable/uri/query_value_spec.rb +25 -0
  61. metadata +78 -37
  62. data/sub/avm/lib/avm/instances/base/auto_values/system.rb +0 -23
  63. data/sub/avm-tools/lib/avm/eac_writings_base0/apache_host.rb +0 -17
  64. data/sub/avm-tools/lib/avm/eac_writings_base0/commons.rb +0 -12
  65. data/sub/avm-tools/lib/avm/eac_writings_base0/deploy.rb +0 -36
  66. data/sub/avm-tools/lib/avm/eac_writings_base0/file_build/base_stereotype.rb +0 -19
  67. data/sub/avm-tools/lib/avm/eac_writings_base0/file_build/chapter_index.rb +0 -23
  68. data/sub/avm-tools/lib/avm/eac_writings_base0/file_build/tex_source.rb +0 -33
  69. data/sub/avm-tools/lib/avm/eac_writings_base0/file_build.rb +0 -45
  70. data/sub/avm-tools/lib/avm/eac_writings_base0/instance.rb +0 -11
  71. data/sub/avm-tools/lib/avm/eac_writings_base0/project.rb +0 -33
  72. data/sub/avm-tools/lib/avm/eac_writings_base0/project_build/chapters_content.rb +0 -47
  73. data/sub/avm-tools/lib/avm/eac_writings_base0/project_build/copy_files.rb +0 -42
  74. data/sub/avm-tools/lib/avm/eac_writings_base0/project_build.rb +0 -117
  75. data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_chapters.rb +0 -45
  76. data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_single.rb +0 -35
  77. data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/info.rb +0 -34
  78. data/sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0.rb +0 -33
  79. data/sub/avm-tools/lib/avm/tools/runner/eac_writings_base0.rb +0 -14
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.17.0
4
+ version: 0.18.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-05 00:00:00.000000000 Z
11
+ date: 2022-08-06 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.13'
143
+ version: '0.15'
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.13'
150
+ version: '0.15'
123
151
  - !ruby/object:Gem::Dependency
124
152
  name: avm-eac_webapp_base0
125
153
  requirement: !ruby/object:Gem::Requirement
@@ -160,28 +188,28 @@ dependencies:
160
188
  requirements:
161
189
  - - "~>"
162
190
  - !ruby/object:Gem::Version
163
- version: '0.130'
191
+ version: '0.131'
164
192
  type: :runtime
165
193
  prerelease: false
166
194
  version_requirements: !ruby/object:Gem::Requirement
167
195
  requirements:
168
196
  - - "~>"
169
197
  - !ruby/object:Gem::Version
170
- version: '0.130'
198
+ version: '0.131'
171
199
  - !ruby/object:Gem::Dependency
172
200
  name: eac_ruby_utils
173
201
  requirement: !ruby/object:Gem::Requirement
174
202
  requirements:
175
203
  - - "~>"
176
204
  - !ruby/object:Gem::Version
177
- version: '0.97'
205
+ version: '0.98'
178
206
  type: :runtime
179
207
  prerelease: false
180
208
  version_requirements: !ruby/object:Gem::Requirement
181
209
  requirements:
182
210
  - - "~>"
183
211
  - !ruby/object:Gem::Version
184
- version: '0.97'
212
+ version: '0.98'
185
213
  - !ruby/object:Gem::Dependency
186
214
  name: eac_ruby_gem_support
187
215
  requirement: !ruby/object:Gem::Requirement
@@ -230,6 +258,8 @@ files:
230
258
  - sub/avm-eac_generic_base0/Gemfile
231
259
  - sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec
232
260
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0.rb
261
+ - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances.rb
262
+ - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb
233
263
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
234
264
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base.rb
235
265
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
@@ -241,6 +271,38 @@ files:
241
271
  - sub/avm-eac_generic_base0/spec/lib/avm/eac_generic_base0/sources/base_spec.rb
242
272
  - sub/avm-eac_generic_base0/spec/rubocop_spec.rb
243
273
  - sub/avm-eac_generic_base0/spec/spec_helper.rb
274
+ - sub/avm-eac_latex_base0/Gemfile
275
+ - sub/avm-eac_latex_base0/avm-eac_latex_base0.gemspec
276
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0.rb
277
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances.rb
278
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/apache_host.rb
279
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/base.rb
280
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/instances/deploy.rb
281
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources.rb
282
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/base.rb
283
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build.rb
284
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/chapters_content.rb
285
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/commons.rb
286
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/copy_files.rb
287
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file.rb
288
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/base_stereotype.rb
289
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/chapter_index.rb
290
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/build/file/tex_source.rb
291
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners.rb
292
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_chapters.rb
293
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/build_single.rb
294
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/sources/runners/info.rb
295
+ - sub/avm-eac_latex_base0/lib/avm/eac_latex_base0/version.rb
296
+ - sub/avm-eac_latex_base0/spec/rubocop_spec.rb
297
+ - sub/avm-eac_latex_base0/spec/spec_helper.rb
298
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/all.tex
299
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/ebook.tex
300
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/images.tex
301
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/links.tex
302
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/portuguese.tex
303
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/source_code.tex
304
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/source_code/java.tex
305
+ - sub/avm-eac_latex_base0/template/avm/eac_latex_base0/sources/build/commons/utils.tex
244
306
  - sub/avm-eac_rails_base0/Gemfile
245
307
  - sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec
246
308
  - sub/avm-eac_rails_base0/lib/avm/eac_rails_base0.rb
@@ -486,19 +548,6 @@ files:
486
548
  - sub/avm-tools/avm-tools.gemspec
487
549
  - sub/avm-tools/exe/avm
488
550
  - sub/avm-tools/lib/avm.rb
489
- - sub/avm-tools/lib/avm/eac_writings_base0.rb
490
- - sub/avm-tools/lib/avm/eac_writings_base0/apache_host.rb
491
- - sub/avm-tools/lib/avm/eac_writings_base0/commons.rb
492
- - sub/avm-tools/lib/avm/eac_writings_base0/deploy.rb
493
- - sub/avm-tools/lib/avm/eac_writings_base0/file_build.rb
494
- - sub/avm-tools/lib/avm/eac_writings_base0/file_build/base_stereotype.rb
495
- - sub/avm-tools/lib/avm/eac_writings_base0/file_build/chapter_index.rb
496
- - sub/avm-tools/lib/avm/eac_writings_base0/file_build/tex_source.rb
497
- - sub/avm-tools/lib/avm/eac_writings_base0/instance.rb
498
- - sub/avm-tools/lib/avm/eac_writings_base0/project.rb
499
- - sub/avm-tools/lib/avm/eac_writings_base0/project_build.rb
500
- - sub/avm-tools/lib/avm/eac_writings_base0/project_build/chapters_content.rb
501
- - sub/avm-tools/lib/avm/eac_writings_base0/project_build/copy_files.rb
502
551
  - sub/avm-tools/lib/avm/launcher/context.rb
503
552
  - sub/avm-tools/lib/avm/launcher/context/instance_collector.rb
504
553
  - sub/avm-tools/lib/avm/launcher/context/instance_discovery.rb
@@ -564,10 +613,6 @@ files:
564
613
  - sub/avm-tools/lib/avm/tools/core_ext.rb
565
614
  - sub/avm-tools/lib/avm/tools/runner.rb
566
615
  - sub/avm-tools/lib/avm/tools/runner/app_src.rb
567
- - sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0.rb
568
- - sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_chapters.rb
569
- - sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/build_single.rb
570
- - sub/avm-tools/lib/avm/tools/runner/app_src/eac_writings_base0/info.rb
571
616
  - sub/avm-tools/lib/avm/tools/runner/app_src/info.rb
572
617
  - sub/avm-tools/lib/avm/tools/runner/app_src/issue.rb
573
618
  - sub/avm-tools/lib/avm/tools/runner/app_src/issue/complete.rb
@@ -585,7 +630,6 @@ files:
585
630
  - sub/avm-tools/lib/avm/tools/runner/config.rb
586
631
  - sub/avm-tools/lib/avm/tools/runner/config/load_path.rb
587
632
  - sub/avm-tools/lib/avm/tools/runner/eac_webapp_base0.rb
588
- - sub/avm-tools/lib/avm/tools/runner/eac_writings_base0.rb
589
633
  - sub/avm-tools/lib/avm/tools/runner/files.rb
590
634
  - sub/avm-tools/lib/avm/tools/runner/files/format.rb
591
635
  - sub/avm-tools/lib/avm/tools/runner/files/rotate.rb
@@ -683,14 +727,6 @@ files:
683
727
  - sub/avm-tools/spec/spec_helper/stub_templates/stubbed_docker_server/id_rsa.pub
684
728
  - sub/avm-tools/spec/spec_helper/stubbed_docker_server.rb
685
729
  - sub/avm-tools/spec/spec_helper/templates.rb
686
- - sub/avm-tools/template/avm/eac_writings_base0/commons/all.tex
687
- - sub/avm-tools/template/avm/eac_writings_base0/commons/ebook.tex
688
- - sub/avm-tools/template/avm/eac_writings_base0/commons/images.tex
689
- - sub/avm-tools/template/avm/eac_writings_base0/commons/links.tex
690
- - sub/avm-tools/template/avm/eac_writings_base0/commons/portuguese.tex
691
- - sub/avm-tools/template/avm/eac_writings_base0/commons/source_code.tex
692
- - sub/avm-tools/template/avm/eac_writings_base0/commons/source_code/java.tex
693
- - sub/avm-tools/template/avm/eac_writings_base0/commons/utils.tex
694
730
  - sub/avm-tools/template/avm/eac_writings_base0/deploy/index.html.template
695
731
  - sub/avm-tools/template/avm/self/docker_image/Dockerfile
696
732
  - sub/avm-tools/template/avm/self/docker_image/entrypoint.sh
@@ -718,8 +754,10 @@ files:
718
754
  - sub/avm/lib/avm/entries.rb
719
755
  - sub/avm/lib/avm/entries/auto_values.rb
720
756
  - sub/avm/lib/avm/entries/auto_values/entry.rb
757
+ - sub/avm/lib/avm/entries/auto_values/uri_entry.rb
721
758
  - sub/avm/lib/avm/entries/base.rb
722
759
  - sub/avm/lib/avm/entries/entry.rb
760
+ - sub/avm/lib/avm/entries/uri_builder.rb
723
761
  - sub/avm/lib/avm/executables.rb
724
762
  - sub/avm/lib/avm/instances.rb
725
763
  - sub/avm/lib/avm/instances/base.rb
@@ -732,7 +770,6 @@ files:
732
770
  - sub/avm/lib/avm/instances/base/auto_values/mailer.rb
733
771
  - sub/avm/lib/avm/instances/base/auto_values/ruby.rb
734
772
  - sub/avm/lib/avm/instances/base/auto_values/source.rb
735
- - sub/avm/lib/avm/instances/base/auto_values/system.rb
736
773
  - sub/avm/lib/avm/instances/base/auto_values/web.rb
737
774
  - sub/avm/lib/avm/instances/base/dockerizable.rb
738
775
  - sub/avm/lib/avm/instances/base/entry_keys.rb
@@ -1059,6 +1096,9 @@ files:
1059
1096
  - sub/eac_ruby_utils/lib/eac_ruby_utils/options_consumer.rb
1060
1097
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patch.rb
1061
1098
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches.rb
1099
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable.rb
1100
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri.rb
1101
+ - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri/query_value.rb
1062
1102
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb
1063
1103
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb
1064
1104
  - sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb
@@ -1161,6 +1201,7 @@ files:
1161
1201
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb
1162
1202
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/method_class_spec.rb
1163
1203
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
1204
+ - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/addressable/uri/query_value_spec.rb
1164
1205
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
1165
1206
  - sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb
1166
1207
  - 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
@@ -1,47 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module EacWritingsBase0
5
- class ProjectBuild
6
- class << self
7
- def chapter_filename(chapter_name)
8
- "chapter_#{chapter_name}"
9
- end
10
- end
11
-
12
- module ChaptersContent
13
- private
14
-
15
- def chapter
16
- options[:chapter]
17
- end
18
-
19
- def chapter_filename(chapter_name)
20
- ::Avm::EacWritingsBase0::ProjectBuild.chapter_filename(chapter_name)
21
- end
22
-
23
- def check_chapter
24
- return unless chapter
25
- return if project.chapters.include?(chapter)
26
-
27
- fatal_error("Chapter not found: \"#{chapter}\" (List: #{project.chapters})")
28
- end
29
-
30
- def include_content
31
- main_path = source_temp_dir.join('main.tex')
32
- main_path.write(main_path.read.gsub(CONTENT_VAR, include_chapters_content))
33
- end
34
-
35
- def include_chapters_content
36
- r = chapters_content
37
- r = "\\maketitle\n\n#{r}" if chapter.blank?
38
- r
39
- end
40
-
41
- def chapters_content
42
- project.chapters.map { |c| "\\include{#{chapter_filename(c)}}" }.join("\n")
43
- end
44
- end
45
- end
46
- end
47
- end
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_writings_base0/commons'
4
- require 'avm/eac_writings_base0/file_build'
5
-
6
- module Avm
7
- module EacWritingsBase0
8
- class ProjectBuild
9
- module CopyFiles
10
- def copy_project_files
11
- copy_project_dir('.')
12
- end
13
-
14
- def copy_project_obj(subpath)
15
- return if File.basename(subpath).start_with?('.')
16
-
17
- if File.directory?(File.join(project.root, subpath))
18
- copy_project_dir(subpath)
19
- else
20
- copy_project_file(subpath)
21
- end
22
- end
23
-
24
- def copy_project_file(subpath)
25
- ::Avm::EacWritingsBase0::FileBuild.new(project, subpath).build_to_dir(source_temp_dir)
26
- end
27
-
28
- def copy_project_dir(subpath)
29
- Dir.entries(File.join(project.root, subpath)).each do |f|
30
- copy_project_obj(File.join(subpath, f))
31
- end
32
- end
33
-
34
- def copy_commons_files
35
- target_dir = source_temp_dir.join('commons')
36
- target_dir.mkpath
37
- ::Avm::EacWritingsBase0::Commons.instance.template.apply(self, target_dir)
38
- end
39
- end
40
- end
41
- end
42
- end