avm-tools 0.106.0 → 0.107.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/instances/entry.rb +3 -3
  3. data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +2 -2
  4. data/lib/avm/ruby/rubocop/_configured.rb +2 -2
  5. data/lib/avm/tools/app_src.rb +68 -0
  6. data/lib/avm/tools/runner/app_src/info.rb +16 -2
  7. data/lib/avm/tools/runner/app_src/ruby/bundler/incompatible.rb +2 -4
  8. data/lib/avm/tools/runner/app_src.rb +2 -2
  9. data/lib/avm/tools/runner/config/load_path.rb +2 -2
  10. data/lib/avm/tools/runner/git/deploy.rb +2 -2
  11. data/lib/avm/tools/runner.rb +1 -1
  12. data/lib/avm/tools/version.rb +1 -1
  13. data/vendor/avm/avm.gemspec +3 -0
  14. data/vendor/avm/lib/avm/app_src/base.rb +45 -0
  15. data/vendor/avm/lib/avm/app_src/configuration/_locale.rb +16 -0
  16. data/vendor/avm/lib/avm/app_src/configuration/_rubocop.rb +24 -0
  17. data/vendor/avm/lib/avm/app_src/configuration/_tests.rb +27 -0
  18. data/vendor/avm/lib/avm/app_src/configuration.rb +55 -0
  19. data/vendor/avm/lib/avm/app_src.rb +9 -0
  20. data/vendor/avm/lib/avm/files/formatter/formats/base.rb +2 -2
  21. data/vendor/avm/lib/avm/files/formatter/formats/javascript.rb +1 -0
  22. data/vendor/avm/lib/avm/files/formatter/formats/php.rb +1 -0
  23. data/vendor/avm/lib/avm/files/formatter/formats/python.rb +1 -0
  24. data/vendor/avm/lib/avm/files/formatter/formats/xml.rb +1 -0
  25. data/vendor/avm/lib/avm/files/formatter/utf8_assert.rb +2 -2
  26. data/vendor/avm/lib/avm/git/issue/complete/test.rb +2 -2
  27. data/vendor/avm/lib/avm/git/revision_test.rb +2 -3
  28. data/vendor/avm/lib/avm/jobs/base.rb +62 -0
  29. data/vendor/avm/lib/avm/jobs/variables_source.rb +22 -0
  30. data/vendor/{avm-apps/lib/avm/apps → avm/lib/avm}/jobs.rb +2 -4
  31. data/vendor/avm/lib/avm/version.rb +1 -1
  32. data/vendor/avm-apps/avm-apps.gemspec +1 -1
  33. data/vendor/avm-apps/lib/avm/apps/version.rb +1 -1
  34. data/vendor/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +2 -0
  35. data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb +3 -2
  36. data/vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  37. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_host.rb +2 -2
  38. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/apache_path.rb +2 -2
  39. data/vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/deploy.rb +2 -2
  40. data/vendor/eac_fs/Gemfile +5 -0
  41. data/vendor/eac_fs/eac_fs.gemspec +20 -0
  42. data/vendor/{eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb → eac_fs/lib/eac_fs/cache.rb} +7 -2
  43. data/{lib/avm → vendor/eac_fs/lib/eac_fs}/cached_download.rb +4 -4
  44. data/vendor/eac_fs/lib/eac_fs/file_info.rb +29 -0
  45. data/vendor/eac_fs/lib/eac_fs/patches/module/fs_cache.rb +10 -0
  46. data/vendor/eac_fs/lib/eac_fs/patches/module.rb +4 -0
  47. data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +10 -0
  48. data/vendor/eac_fs/lib/eac_fs/patches/object.rb +4 -0
  49. data/vendor/eac_fs/lib/eac_fs/patches/pathname/info.rb +12 -0
  50. data/vendor/eac_fs/lib/eac_fs/patches/pathname.rb +4 -0
  51. data/vendor/eac_fs/lib/eac_fs/patches.rb +4 -0
  52. data/vendor/eac_fs/lib/eac_fs/version.rb +5 -0
  53. data/vendor/eac_fs/lib/eac_fs.rb +7 -0
  54. data/vendor/{eac_ruby_utils/spec/lib/eac_ruby_utils/filesystem_cache_spec.rb → eac_fs/spec/lib/eac_fs/cache_spec.rb} +2 -2
  55. data/vendor/eac_fs/spec/rubocop_spec.rb +3 -0
  56. data/vendor/eac_fs/spec/spec_helper.rb +4 -0
  57. data/vendor/eac_git/lib/eac_git/local/commit/archive.rb +1 -1
  58. data/vendor/eac_git/lib/eac_git/local/commit.rb +3 -3
  59. data/vendor/eac_git/lib/eac_git/local.rb +13 -0
  60. data/vendor/eac_git/lib/eac_git/version.rb +1 -1
  61. data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +2 -1
  62. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +3 -3
  63. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +1 -0
  64. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +16 -7
  65. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  66. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb +0 -5
  67. data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
  68. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  69. data/vendor/eac_templates/lib/eac_templates/patches/module/erb_template.rb +9 -0
  70. data/vendor/eac_templates/lib/eac_templates/patches/module.rb +4 -0
  71. data/vendor/eac_templates/lib/eac_templates/patches/object/erb_template.rb +9 -0
  72. data/vendor/eac_templates/lib/eac_templates/patches/object.rb +4 -0
  73. data/vendor/eac_templates/lib/eac_templates/patches.rb +4 -0
  74. data/vendor/eac_templates/lib/eac_templates/version.rb +1 -1
  75. metadata +43 -178
  76. data/lib/avm/app_src.rb +0 -61
  77. data/lib/avm/fs_cache.rb +0 -11
  78. data/vendor/avm/lib/avm/files/info.rb +0 -24
  79. data/vendor/avm-apps/lib/avm/apps/config.rb +0 -19
  80. data/vendor/avm-apps/lib/avm/apps/jobs/base.rb +0 -64
  81. data/vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb +0 -24
  82. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_locale.rb +0 -18
  83. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_rubocop.rb +0 -26
  84. data/vendor/avm-apps/lib/avm/apps/sources/configuration/_tests.rb +0 -29
  85. data/vendor/avm-apps/lib/avm/apps/sources/configuration.rb +0 -57
  86. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb +0 -12
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.106.0
4
+ version: 0.107.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-22 00:00:00.000000000 Z
11
+ date: 2021-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -24,26 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.4'
27
- - !ruby/object:Gem::Dependency
28
- name: asciidoctor
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 2.0.12
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '2.0'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 2.0.12
47
27
  - !ruby/object:Gem::Dependency
48
28
  name: avm
49
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,20 +38,6 @@ dependencies:
58
38
  - - "~>"
59
39
  - !ruby/object:Gem::Version
60
40
  version: '0.1'
61
- - !ruby/object:Gem::Dependency
62
- name: avm-apps
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '0.2'
68
- type: :runtime
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '0.2'
75
41
  - !ruby/object:Gem::Dependency
76
42
  name: avm-eac_asciidoctor_base0
77
43
  requirement: !ruby/object:Gem::Requirement
@@ -106,20 +72,6 @@ dependencies:
106
72
  - - ">="
107
73
  - !ruby/object:Gem::Version
108
74
  version: 1.3.3
109
- - !ruby/object:Gem::Dependency
110
- name: content-type
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: 0.0.1
116
- type: :runtime
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: 0.0.1
123
75
  - !ruby/object:Gem::Dependency
124
76
  name: curb
125
77
  requirement: !ruby/object:Gem::Requirement
@@ -134,48 +86,6 @@ dependencies:
134
86
  - - "~>"
135
87
  - !ruby/object:Gem::Version
136
88
  version: 0.9.10
137
- - !ruby/object:Gem::Dependency
138
- name: eac_ruby_gem_support
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - "~>"
142
- - !ruby/object:Gem::Version
143
- version: '0.2'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - "~>"
149
- - !ruby/object:Gem::Version
150
- version: '0.2'
151
- - !ruby/object:Gem::Dependency
152
- name: eac_docker
153
- requirement: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - "~>"
156
- - !ruby/object:Gem::Version
157
- version: '0.2'
158
- type: :runtime
159
- prerelease: false
160
- version_requirements: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - "~>"
163
- - !ruby/object:Gem::Version
164
- version: '0.2'
165
- - !ruby/object:Gem::Dependency
166
- name: eac_git
167
- requirement: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - "~>"
170
- - !ruby/object:Gem::Version
171
- version: '0.2'
172
- type: :runtime
173
- prerelease: false
174
- version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - "~>"
177
- - !ruby/object:Gem::Version
178
- version: '0.2'
179
89
  - !ruby/object:Gem::Dependency
180
90
  name: eac_ruby_base0
181
91
  requirement: !ruby/object:Gem::Requirement
@@ -216,34 +126,6 @@ dependencies:
216
126
  - - ">="
217
127
  - !ruby/object:Gem::Version
218
128
  version: 0.6.1
219
- - !ruby/object:Gem::Dependency
220
- name: eac_templates
221
- requirement: !ruby/object:Gem::Requirement
222
- requirements:
223
- - - "~>"
224
- - !ruby/object:Gem::Version
225
- version: '0.1'
226
- type: :runtime
227
- prerelease: false
228
- version_requirements: !ruby/object:Gem::Requirement
229
- requirements:
230
- - - "~>"
231
- - !ruby/object:Gem::Version
232
- version: '0.1'
233
- - !ruby/object:Gem::Dependency
234
- name: filesize
235
- requirement: !ruby/object:Gem::Requirement
236
- requirements:
237
- - - ">="
238
- - !ruby/object:Gem::Version
239
- version: '0'
240
- type: :runtime
241
- prerelease: false
242
- version_requirements: !ruby/object:Gem::Requirement
243
- requirements:
244
- - - ">="
245
- - !ruby/object:Gem::Version
246
- version: '0'
247
129
  - !ruby/object:Gem::Dependency
248
130
  name: git
249
131
  requirement: !ruby/object:Gem::Requirement
@@ -259,73 +141,39 @@ dependencies:
259
141
  - !ruby/object:Gem::Version
260
142
  version: '1.7'
261
143
  - !ruby/object:Gem::Dependency
262
- name: htmlbeautifier
144
+ name: ruby-progressbar
263
145
  requirement: !ruby/object:Gem::Requirement
264
146
  requirements:
265
147
  - - "~>"
266
148
  - !ruby/object:Gem::Version
267
- version: '1.3'
149
+ version: '1.10'
268
150
  - - ">="
269
151
  - !ruby/object:Gem::Version
270
- version: 1.3.1
152
+ version: 1.10.1
271
153
  type: :runtime
272
154
  prerelease: false
273
155
  version_requirements: !ruby/object:Gem::Requirement
274
156
  requirements:
275
157
  - - "~>"
276
158
  - !ruby/object:Gem::Version
277
- version: '1.3'
278
- - - ">="
279
- - !ruby/object:Gem::Version
280
- version: 1.3.1
281
- - !ruby/object:Gem::Dependency
282
- name: minitar
283
- requirement: !ruby/object:Gem::Requirement
284
- requirements:
285
- - - ">="
286
- - !ruby/object:Gem::Version
287
- version: '0'
288
- type: :runtime
289
- prerelease: false
290
- version_requirements: !ruby/object:Gem::Requirement
291
- requirements:
292
- - - ">="
293
- - !ruby/object:Gem::Version
294
- version: '0'
295
- - !ruby/object:Gem::Dependency
296
- name: os
297
- requirement: !ruby/object:Gem::Requirement
298
- requirements:
299
- - - ">="
300
- - !ruby/object:Gem::Version
301
- version: '0'
302
- type: :runtime
303
- prerelease: false
304
- version_requirements: !ruby/object:Gem::Requirement
305
- requirements:
159
+ version: '1.10'
306
160
  - - ">="
307
161
  - !ruby/object:Gem::Version
308
- version: '0'
162
+ version: 1.10.1
309
163
  - !ruby/object:Gem::Dependency
310
- name: ruby-progressbar
164
+ name: eac_ruby_gem_support
311
165
  requirement: !ruby/object:Gem::Requirement
312
166
  requirements:
313
167
  - - "~>"
314
168
  - !ruby/object:Gem::Version
315
- version: '1.10'
316
- - - ">="
317
- - !ruby/object:Gem::Version
318
- version: 1.10.1
319
- type: :runtime
169
+ version: '0.2'
170
+ type: :development
320
171
  prerelease: false
321
172
  version_requirements: !ruby/object:Gem::Requirement
322
173
  requirements:
323
174
  - - "~>"
324
175
  - !ruby/object:Gem::Version
325
- version: '1.10'
326
- - - ">="
327
- - !ruby/object:Gem::Version
328
- version: 1.10.1
176
+ version: '0.2'
329
177
  description:
330
178
  email:
331
179
  executables:
@@ -336,8 +184,6 @@ files:
336
184
  - Gemfile
337
185
  - exe/avm
338
186
  - lib/avm.rb
339
- - lib/avm/app_src.rb
340
- - lib/avm/cached_download.rb
341
187
  - lib/avm/data.rb
342
188
  - lib/avm/data/instance.rb
343
189
  - lib/avm/data/instance/files_unit.rb
@@ -373,7 +219,6 @@ files:
373
219
  - lib/avm/eac_writings_base0/project_build.rb
374
220
  - lib/avm/eac_writings_base0/project_build/chapters_content.rb
375
221
  - lib/avm/eac_writings_base0/project_build/copy_files.rb
376
- - lib/avm/fs_cache.rb
377
222
  - lib/avm/instances.rb
378
223
  - lib/avm/instances/application.rb
379
224
  - lib/avm/instances/base.rb
@@ -500,6 +345,7 @@ files:
500
345
  - lib/avm/stereotypes.rb
501
346
  - lib/avm/sync.rb
502
347
  - lib/avm/tools.rb
348
+ - lib/avm/tools/app_src.rb
503
349
  - lib/avm/tools/core_ext.rb
504
350
  - lib/avm/tools/runner.rb
505
351
  - lib/avm/tools/runner/app_src.rb
@@ -587,14 +433,6 @@ files:
587
433
  - vendor/avm-apps/Gemfile
588
434
  - vendor/avm-apps/avm-apps.gemspec
589
435
  - vendor/avm-apps/lib/avm/apps.rb
590
- - vendor/avm-apps/lib/avm/apps/config.rb
591
- - vendor/avm-apps/lib/avm/apps/jobs.rb
592
- - vendor/avm-apps/lib/avm/apps/jobs/base.rb
593
- - vendor/avm-apps/lib/avm/apps/jobs/variables_source.rb
594
- - vendor/avm-apps/lib/avm/apps/sources/configuration.rb
595
- - vendor/avm-apps/lib/avm/apps/sources/configuration/_locale.rb
596
- - vendor/avm-apps/lib/avm/apps/sources/configuration/_rubocop.rb
597
- - vendor/avm-apps/lib/avm/apps/sources/configuration/_tests.rb
598
436
  - vendor/avm-apps/lib/avm/apps/version.rb
599
437
  - vendor/avm-apps/spec/rubocop_spec.rb
600
438
  - vendor/avm-apps/spec/spec_helper.rb
@@ -678,6 +516,12 @@ files:
678
516
  - vendor/avm/Gemfile
679
517
  - vendor/avm/avm.gemspec
680
518
  - vendor/avm/lib/avm.rb
519
+ - vendor/avm/lib/avm/app_src.rb
520
+ - vendor/avm/lib/avm/app_src/base.rb
521
+ - vendor/avm/lib/avm/app_src/configuration.rb
522
+ - vendor/avm/lib/avm/app_src/configuration/_locale.rb
523
+ - vendor/avm/lib/avm/app_src/configuration/_rubocop.rb
524
+ - vendor/avm/lib/avm/app_src/configuration/_tests.rb
681
525
  - vendor/avm/lib/avm/docker.rb
682
526
  - vendor/avm/lib/avm/docker/container.rb
683
527
  - vendor/avm/lib/avm/docker/image.rb
@@ -704,7 +548,6 @@ files:
704
548
  - vendor/avm/lib/avm/files/formatter/formats/ruby.rb
705
549
  - vendor/avm/lib/avm/files/formatter/formats/xml.rb
706
550
  - vendor/avm/lib/avm/files/formatter/utf8_assert.rb
707
- - vendor/avm/lib/avm/files/info.rb
708
551
  - vendor/avm/lib/avm/files/rotate.rb
709
552
  - vendor/avm/lib/avm/git.rb
710
553
  - vendor/avm/lib/avm/git/auto_commit/commit_info.rb
@@ -748,6 +591,9 @@ files:
748
591
  - vendor/avm/lib/avm/git/subrepo_check/show_result.rb
749
592
  - vendor/avm/lib/avm/git/subrepo_checks.rb
750
593
  - vendor/avm/lib/avm/instances/docker_image.rb
594
+ - vendor/avm/lib/avm/jobs.rb
595
+ - vendor/avm/lib/avm/jobs/base.rb
596
+ - vendor/avm/lib/avm/jobs/variables_source.rb
751
597
  - vendor/avm/lib/avm/result.rb
752
598
  - vendor/avm/lib/avm/version.rb
753
599
  - vendor/avm/lib/avm/version_number.rb
@@ -886,6 +732,23 @@ files:
886
732
  - vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec_files/stub_docker_image/Dockerfile
887
733
  - vendor/eac_docker/spec/rubocop_spec.rb
888
734
  - vendor/eac_docker/spec/spec_helper.rb
735
+ - vendor/eac_fs/Gemfile
736
+ - vendor/eac_fs/eac_fs.gemspec
737
+ - vendor/eac_fs/lib/eac_fs.rb
738
+ - vendor/eac_fs/lib/eac_fs/cache.rb
739
+ - vendor/eac_fs/lib/eac_fs/cached_download.rb
740
+ - vendor/eac_fs/lib/eac_fs/file_info.rb
741
+ - vendor/eac_fs/lib/eac_fs/patches.rb
742
+ - vendor/eac_fs/lib/eac_fs/patches/module.rb
743
+ - vendor/eac_fs/lib/eac_fs/patches/module/fs_cache.rb
744
+ - vendor/eac_fs/lib/eac_fs/patches/object.rb
745
+ - vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb
746
+ - vendor/eac_fs/lib/eac_fs/patches/pathname.rb
747
+ - vendor/eac_fs/lib/eac_fs/patches/pathname/info.rb
748
+ - vendor/eac_fs/lib/eac_fs/version.rb
749
+ - vendor/eac_fs/spec/lib/eac_fs/cache_spec.rb
750
+ - vendor/eac_fs/spec/rubocop_spec.rb
751
+ - vendor/eac_fs/spec/spec_helper.rb
889
752
  - vendor/eac_git/Gemfile
890
753
  - vendor/eac_git/eac_git.gemspec
891
754
  - vendor/eac_git/lib/eac_git.rb
@@ -1194,7 +1057,6 @@ files:
1194
1057
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb
1195
1058
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
1196
1059
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb
1197
- - vendor/eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb
1198
1060
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs.rb
1199
1061
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb
1200
1062
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb
@@ -1204,7 +1066,6 @@ files:
1204
1066
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/file.rb
1205
1067
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traversable.rb
1206
1068
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traverser.rb
1207
- - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb
1208
1069
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb
1209
1070
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb
1210
1071
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable.rb
@@ -1302,7 +1163,6 @@ files:
1302
1163
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/custom_format_spec.rb
1303
1164
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/executable_spec.rb
1304
1165
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/ssh_env_spec.rb
1305
- - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/filesystem_cache_spec.rb
1306
1166
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
1307
1167
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/temp_spec.rb
1308
1168
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb
@@ -1341,7 +1201,12 @@ files:
1341
1201
  - vendor/eac_templates/lib/eac_templates.rb
1342
1202
  - vendor/eac_templates/lib/eac_templates/directory.rb
1343
1203
  - vendor/eac_templates/lib/eac_templates/file.rb
1204
+ - vendor/eac_templates/lib/eac_templates/patches.rb
1205
+ - vendor/eac_templates/lib/eac_templates/patches/module.rb
1206
+ - vendor/eac_templates/lib/eac_templates/patches/module/erb_template.rb
1344
1207
  - vendor/eac_templates/lib/eac_templates/patches/module/template.rb
1208
+ - vendor/eac_templates/lib/eac_templates/patches/object.rb
1209
+ - vendor/eac_templates/lib/eac_templates/patches/object/erb_template.rb
1345
1210
  - vendor/eac_templates/lib/eac_templates/patches/object/template.rb
1346
1211
  - vendor/eac_templates/lib/eac_templates/searcher.rb
1347
1212
  - vendor/eac_templates/lib/eac_templates/variable_not_found_error.rb
data/lib/avm/app_src.rb DELETED
@@ -1,61 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/apps/sources/configuration'
4
- require 'avm/launcher/paths/real'
5
- require 'avm/projects/stereotype/job_comparator'
6
- require 'eac_ruby_utils/core_ext'
7
- require 'avm/projects/stereotypes'
8
- require 'i18n'
9
-
10
- module Avm
11
- class AppSrc
12
- enable_simple_cache
13
- common_constructor :path do
14
- self.path = path.to_pathname
15
- source_stereotypes_mixins
16
- end
17
-
18
- delegate :to_s, to: :path
19
-
20
- def locale
21
- configuration.if_present(&:locale) || ::I18n.default_locale
22
- end
23
-
24
- # Backward compatibility with [Avm::Launcher::Paths::Logical].
25
- # @return [Avm::Launcher::Paths::Real].
26
- def real
27
- ::Avm::Launcher::Paths::Real.new(path.to_path)
28
- end
29
-
30
- def run_job(job, job_args = [])
31
- stereotypes_jobs(job, job_args).each(&:run)
32
- end
33
-
34
- private
35
-
36
- # @return [Avm::Apps::Sources::Configuration]
37
- def configuration_uncached
38
- ::Avm::Apps::Sources::Configuration.find_in_path(path)
39
- end
40
-
41
- def stereotypes_jobs(job, job_args)
42
- job_class_method = "#{job}_class"
43
- r = []
44
- stereotypes.each do |stereotype|
45
- r << stereotype.send(job_class_method).new(self, *job_args) if
46
- stereotype.send(job_class_method).present?
47
- end
48
- r.sort { |a, b| ::Avm::Projects::Stereotype::JobComparator.new(a, b).result }
49
- end
50
-
51
- def stereotypes_uncached
52
- ::Avm::Projects::Stereotypes.list.select { |s| s.match?(self) }
53
- end
54
-
55
- def source_stereotypes_mixins
56
- stereotypes.each do |s|
57
- s.local_project_mixin_module.if_present { |v| singleton_class.include(v) }
58
- end
59
- end
60
- end
61
- end
data/lib/avm/fs_cache.rb DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/filesystem_cache'
4
-
5
- module Avm
6
- class << self
7
- def fs_cache
8
- @fs_cache ||= ::EacRubyUtils::FilesystemCache.new(ENV['HOME'], '.cache', 'avm')
9
- end
10
- end
11
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/executables'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'content-type'
6
-
7
- module Avm
8
- module Files
9
- class Info
10
- enable_simple_cache
11
- common_constructor :path
12
-
13
- private
14
-
15
- def content_type_uncached
16
- ::ContentType.parse(
17
- ::Avm::Executables.file.command.append(['-ib', path]).execute!.strip
18
- )
19
- rescue Parslet::ParseFailed
20
- ::ContentType.parse('application/unknown')
21
- end
22
- end
23
- end
24
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module Apps
7
- class Config
8
- class << self
9
- # @deprecated Use EacConfig::Node.context instead.
10
- # @return [EacRubyUtils::Context<EacConfig::Node>]
11
- def context
12
- ::EacConfig::Node.context
13
- end
14
-
15
- delegate :current, to: :context
16
- end
17
- end
18
- end
19
- end
@@ -1,64 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/apps/jobs/variables_source'
4
- require 'eac_cli/core_ext'
5
-
6
- module Avm
7
- module Apps
8
- module Jobs
9
- module Base
10
- common_concern do
11
- include ::ActiveSupport::Callbacks
12
-
13
- enable_speaker
14
- enable_simple_cache
15
- enable_listable
16
- common_constructor :instance, :options, default: [{}] do
17
- if option_list.present?
18
- self.options = option_list.hash_keys_validate!(options.symbolize_keys)
19
- end
20
- end
21
- define_callbacks(*jobs)
22
- end
23
-
24
- module ClassMethods
25
- def jobs
26
- const_get('JOBS').dup
27
- end
28
- end
29
-
30
- module InstanceMethods
31
- def option_list
32
- nil
33
- end
34
-
35
- def run
36
- start_banner if respond_to?(:start_banner)
37
- run_jobs
38
- ::Avm::Result.success('Done!')
39
- rescue ::Avm::Result::Error => e
40
- e.to_result
41
- end
42
-
43
- def variables_source
44
- ::Avm::Apps::Jobs::VariablesSource.new(self, instance)
45
- end
46
-
47
- protected
48
-
49
- def run_jobs
50
- jobs.each do |job|
51
- run_callbacks job do
52
- send(job)
53
- end
54
- end
55
- end
56
-
57
- def jobs
58
- self.class.jobs
59
- end
60
- end
61
- end
62
- end
63
- end
64
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module Apps
7
- module Jobs
8
- class VariablesSource
9
- common_constructor :job, :instance
10
-
11
- def read_entry(path, options = {})
12
- entry_from_job(path) || instance.read_entry(path, options)
13
- end
14
-
15
- private
16
-
17
- def entry_from_job(path)
18
- method = path.gsub('.', '_').underscore
19
- return job.send(method) if job.respond_to?(method, true)
20
- end
21
- end
22
- end
23
- end
24
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/patches/eac_ruby_gems_utils/gem'
4
- require 'i18n'
5
-
6
- module Avm
7
- module Apps
8
- module Sources
9
- class Configuration < ::EacConfig::OldConfigs
10
- LOCALE_KEY = :locale
11
-
12
- def locale
13
- read_entry(LOCALE_KEY) || ::I18n.default_locale
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Apps
5
- module Sources
6
- class Configuration < ::EacConfig::OldConfigs
7
- RUBOCOP_COMMAND_KEY = 'ruby.rubocop.command'
8
- RUBOCOP_GEMFILE_KEY = 'ruby.rubocop.gemfile'
9
-
10
- def rubocop_command
11
- read_command(RUBOCOP_COMMAND_KEY)
12
- end
13
-
14
- def rubocop_gemfile
15
- gemfile_path = read_entry(RUBOCOP_GEMFILE_KEY)
16
- return nil if gemfile_path.blank?
17
-
18
- gemfile_path = gemfile_path.to_pathname.expand_path(storage_path.parent)
19
- return gemfile_path if gemfile_path.file?
20
-
21
- raise "Gemfile path \"#{gemfile_path}\" does not exist or is not a file"
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/patches/eac_ruby_gems_utils/gem'
4
-
5
- module Avm
6
- module Apps
7
- module Sources
8
- class Configuration < ::EacConfig::OldConfigs
9
- BUNDLE_TEST_COMMAND_KEY = 'test.bundle_command'
10
- TEST_COMMAND_KEY = 'test.command'
11
-
12
- def any_test_command
13
- bundle_test_command || test_command
14
- end
15
-
16
- def test_command
17
- read_command(TEST_COMMAND_KEY)
18
- end
19
-
20
- def bundle_test_command
21
- read_entry(BUNDLE_TEST_COMMAND_KEY).if_present do |v|
22
- args = v.is_a?(::Enumerable) ? v.map(&:to_s) : ::Shellwords.split(v)
23
- ::EacRubyGemsUtils::Gem.new(::File.dirname(storage_path)).bundle(*args).chdir_root
24
- end
25
- end
26
- end
27
- end
28
- end
29
- end