avm-tools 0.120.0 → 0.120.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb +3 -3
  3. data/lib/avm/tools/runner/app_src/ruby.rb +0 -1
  4. data/lib/avm/tools/version.rb +1 -1
  5. metadata +6 -233
  6. data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +0 -29
  7. data/lib/avm/patches/eac_ruby_gems_utils.rb +0 -4
  8. data/sub/avm/Gemfile +0 -5
  9. data/sub/avm/avm.gemspec +0 -26
  10. data/sub/avm/lib/avm/data/instance/files_unit.rb +0 -40
  11. data/sub/avm/lib/avm/data/instance/package.rb +0 -18
  12. data/sub/avm/lib/avm/data/instance/unit.rb +0 -17
  13. data/sub/avm/lib/avm/data/instance.rb +0 -11
  14. data/sub/avm/lib/avm/data/package/dump.rb +0 -119
  15. data/sub/avm/lib/avm/data/package/load.rb +0 -48
  16. data/sub/avm/lib/avm/data/package.rb +0 -42
  17. data/sub/avm/lib/avm/data/rotate.rb +0 -107
  18. data/sub/avm/lib/avm/data/unit.rb +0 -94
  19. data/sub/avm/lib/avm/docker/container.rb +0 -50
  20. data/sub/avm/lib/avm/docker/image.rb +0 -71
  21. data/sub/avm/lib/avm/docker/runner.rb +0 -125
  22. data/sub/avm/lib/avm/docker.rb +0 -9
  23. data/sub/avm/lib/avm/executables.rb +0 -24
  24. data/sub/avm/lib/avm/instances/application.rb +0 -29
  25. data/sub/avm/lib/avm/instances/base/auto_values/access.rb +0 -40
  26. data/sub/avm/lib/avm/instances/base/auto_values/admin.rb +0 -19
  27. data/sub/avm/lib/avm/instances/base/auto_values/data.rb +0 -26
  28. data/sub/avm/lib/avm/instances/base/auto_values/database.rb +0 -76
  29. data/sub/avm/lib/avm/instances/base/auto_values/filesystem.rb +0 -43
  30. data/sub/avm/lib/avm/instances/base/auto_values/mailer.rb +0 -34
  31. data/sub/avm/lib/avm/instances/base/auto_values/ruby.rb +0 -15
  32. data/sub/avm/lib/avm/instances/base/auto_values/source.rb +0 -15
  33. data/sub/avm/lib/avm/instances/base/auto_values/system.rb +0 -23
  34. data/sub/avm/lib/avm/instances/base/auto_values/web.rb +0 -46
  35. data/sub/avm/lib/avm/instances/base/auto_values.rb +0 -21
  36. data/sub/avm/lib/avm/instances/base/dockerizable.rb +0 -45
  37. data/sub/avm/lib/avm/instances/base/entry_keys.rb +0 -22
  38. data/sub/avm/lib/avm/instances/base.rb +0 -64
  39. data/sub/avm/lib/avm/instances/docker_image.rb +0 -15
  40. data/sub/avm/lib/avm/instances/entries.rb +0 -43
  41. data/sub/avm/lib/avm/instances/entry.rb +0 -60
  42. data/sub/avm/lib/avm/instances/entry_keys.rb +0 -60
  43. data/sub/avm/lib/avm/instances/runner.rb +0 -39
  44. data/sub/avm/lib/avm/instances.rb +0 -8
  45. data/sub/avm/lib/avm/jobs/base.rb +0 -63
  46. data/sub/avm/lib/avm/jobs/variables_source.rb +0 -22
  47. data/sub/avm/lib/avm/jobs.rb +0 -9
  48. data/sub/avm/lib/avm/launcher/errors/base.rb +0 -10
  49. data/sub/avm/lib/avm/launcher/errors/non_project.rb +0 -15
  50. data/sub/avm/lib/avm/launcher/paths/real.rb +0 -44
  51. data/sub/avm/lib/avm/launcher/publish/check_result.rb +0 -67
  52. data/sub/avm/lib/avm/path_string.rb +0 -27
  53. data/sub/avm/lib/avm/registry/base.rb +0 -71
  54. data/sub/avm/lib/avm/registry/with_path.rb +0 -23
  55. data/sub/avm/lib/avm/registry.rb +0 -39
  56. data/sub/avm/lib/avm/result.rb +0 -86
  57. data/sub/avm/lib/avm/rspec/setup.rb +0 -22
  58. data/sub/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb +0 -11
  59. data/sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +0 -14
  60. data/sub/avm/lib/avm/rspec.rb +0 -9
  61. data/sub/avm/lib/avm/runners/base.rb +0 -27
  62. data/sub/avm/lib/avm/scms/base.rb +0 -41
  63. data/sub/avm/lib/avm/scms/commit.rb +0 -43
  64. data/sub/avm/lib/avm/scms/inflector.rb +0 -22
  65. data/sub/avm/lib/avm/scms/null.rb +0 -14
  66. data/sub/avm/lib/avm/self/docker_image.rb +0 -14
  67. data/sub/avm/lib/avm/self/instance/entry_keys.rb +0 -12
  68. data/sub/avm/lib/avm/self/instance.rb +0 -31
  69. data/sub/avm/lib/avm/sources/base/configuration.rb +0 -55
  70. data/sub/avm/lib/avm/sources/base/instance.rb +0 -28
  71. data/sub/avm/lib/avm/sources/base/locale.rb +0 -26
  72. data/sub/avm/lib/avm/sources/base/parent.rb +0 -31
  73. data/sub/avm/lib/avm/sources/base/subs.rb +0 -55
  74. data/sub/avm/lib/avm/sources/base/subs_paths.rb +0 -32
  75. data/sub/avm/lib/avm/sources/base/testing.rb +0 -27
  76. data/sub/avm/lib/avm/sources/base.rb +0 -53
  77. data/sub/avm/lib/avm/sources/configuration/rubocop.rb +0 -26
  78. data/sub/avm/lib/avm/sources/configuration.rb +0 -59
  79. data/sub/avm/lib/avm/sources/tester.rb +0 -24
  80. data/sub/avm/lib/avm/sources/tests/builder.rb +0 -83
  81. data/sub/avm/lib/avm/sources/tests/performer.rb +0 -35
  82. data/sub/avm/lib/avm/sources/tests/result.rb +0 -15
  83. data/sub/avm/lib/avm/sources/tests/single.rb +0 -56
  84. data/sub/avm/lib/avm/sources/tests.rb +0 -11
  85. data/sub/avm/lib/avm/sources.rb +0 -9
  86. data/sub/avm/lib/avm/sync.rb +0 -94
  87. data/sub/avm/lib/avm/version.rb +0 -5
  88. data/sub/avm/lib/avm/version_number.rb +0 -45
  89. data/sub/avm/lib/avm.rb +0 -7
  90. data/sub/avm/spec/lib/avm/scms/base_spec.rb +0 -7
  91. data/sub/avm/spec/lib/avm/sources/base_spec.rb +0 -7
  92. data/sub/avm/spec/rubocop_spec.rb +0 -3
  93. data/sub/avm/spec/spec_helper.rb +0 -4
  94. data/sub/avm-eac_rails_base1/Gemfile +0 -5
  95. data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +0 -21
  96. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/apache_host.rb +0 -17
  97. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb +0 -24
  98. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/bundle.rb +0 -26
  99. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/code_runner.rb +0 -26
  100. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/log.rb +0 -43
  101. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs/clear.rb +0 -26
  102. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs.rb +0 -18
  103. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb +0 -32
  104. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler/systemd_unit.rb +0 -46
  105. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler.rb +0 -17
  106. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner.rb +0 -12
  107. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb +0 -27
  108. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +0 -47
  109. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb +0 -27
  110. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/systemd_unit/service.rb +0 -70
  111. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/systemd_unit/tasks_scheduler_command.rb +0 -29
  112. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/systemd_unit.rb +0 -57
  113. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +0 -7
  114. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1.rb +0 -9
  115. data/sub/avm-eac_rails_base1/spec/rubocop_spec.rb +0 -3
  116. data/sub/avm-eac_rails_base1/spec/spec_helper.rb +0 -4
  117. data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/systemd_unit/tasks_scheduler.service +0 -12
  118. data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/systemd_unit/tasks_scheduler_command.sh +0 -6
  119. data/sub/avm-eac_ruby_base1/Gemfile +0 -5
  120. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +0 -22
  121. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb +0 -56
  122. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb +0 -19
  123. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb +0 -34
  124. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/depends_on.rb +0 -25
  125. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb +0 -44
  126. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/in_gemfile.rb +0 -17
  127. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb +0 -73
  128. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb +0 -31
  129. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb +0 -19
  130. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb +0 -26
  131. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser.rb +0 -25
  132. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb +0 -11
  133. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb +0 -31
  134. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb +0 -17
  135. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb +0 -41
  136. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb +0 -55
  137. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb +0 -39
  138. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +0 -39
  139. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +0 -23
  140. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +0 -55
  141. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb +0 -76
  142. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb +0 -19
  143. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb +0 -13
  144. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tester.rb +0 -38
  145. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb +0 -56
  146. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update.rb +0 -52
  147. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb +0 -11
  148. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +0 -7
  149. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb +0 -9
  150. data/sub/avm-eac_ruby_base1/locale/en.yml +0 -8
  151. data/sub/avm-eac_ruby_base1/locale/pt-BR.yml +0 -8
  152. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb +0 -7
  153. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out +0 -192
  154. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml +0 -300
  155. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out +0 -245
  156. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml +0 -355
  157. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +0 -7
  158. data/sub/avm-eac_ruby_base1/spec/rubocop_spec.rb +0 -3
  159. data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +0 -4
  160. data/sub/eac_ruby_base0/Gemfile +0 -5
  161. data/sub/eac_ruby_base0/eac_ruby_base0.gemspec +0 -21
  162. data/sub/eac_ruby_base0/lib/eac_ruby_base0/application.rb +0 -87
  163. data/sub/eac_ruby_base0/lib/eac_ruby_base0/application_xdg.rb +0 -34
  164. data/sub/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +0 -5
  165. data/sub/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb +0 -31
  166. data/sub/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb +0 -10
  167. data/sub/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb +0 -4
  168. data/sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb +0 -5
  169. data/sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb +0 -5
  170. data/sub/eac_ruby_base0/lib/eac_ruby_base0/patches.rb +0 -4
  171. data/sub/eac_ruby_base0/lib/eac_ruby_base0/rspec/setup.rb +0 -14
  172. data/sub/eac_ruby_base0/lib/eac_ruby_base0/rspec.rb +0 -9
  173. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +0 -92
  174. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb +0 -42
  175. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb +0 -52
  176. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/input.rb +0 -36
  177. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/output.rb +0 -58
  178. data/sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb +0 -9
  179. data/sub/eac_ruby_base0/lib/eac_ruby_base0/version.rb +0 -5
  180. data/sub/eac_ruby_base0/lib/eac_ruby_base0.rb +0 -7
  181. data/sub/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/confirmation_spec.rb +0 -42
  182. data/sub/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/output_spec.rb +0 -81
  183. data/sub/eac_ruby_base0/spec/rubocop_spec.rb +0 -3
  184. data/sub/eac_ruby_base0/spec/spec_helper.rb +0 -4
  185. data/sub/eac_ruby_gems_utils/Gemfile +0 -5
  186. data/sub/eac_ruby_gems_utils/LICENCE +0 -16
  187. data/sub/eac_ruby_gems_utils/README.rdoc +0 -3
  188. data/sub/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +0 -31
  189. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/command.rb +0 -33
  190. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb +0 -41
  191. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +0 -97
  192. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb +0 -57
  193. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/minitest.rb +0 -25
  194. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb +0 -48
  195. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb +0 -25
  196. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb +0 -84
  197. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/rspec.rb +0 -21
  198. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests.rb +0 -9
  199. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +0 -5
  200. data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils.rb +0 -7
  201. data/sub/eac_ruby_gems_utils/spec/code/rubocop_check_spec.rb +0 -3
  202. data/sub/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb +0 -14
  203. data/sub/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb +0 -7
  204. data/sub/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem_spec.rb +0 -20
  205. data/sub/eac_ruby_gems_utils/spec/spec_helper.rb +0 -4
  206. data/sub/eac_ruby_gems_utils/spec/support/mygem/Gemfile +0 -5
  207. data/sub/eac_ruby_gems_utils/spec/support/mygem/Gemfile.lock +0 -19
  208. data/sub/eac_ruby_gems_utils/spec/support/mygem/Rakefile +0 -14
  209. data/sub/eac_ruby_gems_utils/spec/support/mygem/exe/myrunner +0 -5
  210. data/sub/eac_ruby_gems_utils/spec/support/mygem/lib/mygem/version.rb +0 -5
  211. data/sub/eac_ruby_gems_utils/spec/support/mygem/lib/mygem.rb +0 -5
  212. data/sub/eac_ruby_gems_utils/spec/support/mygem/mygem.gemspec +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03fc9a92381ea8132ea31e0f26c18ffca15f64f50ad147e171f8c107449cc6ab
4
- data.tar.gz: 0b03b5e4b7ab4d014207080d4e07cb4ce8a61945f7c0773147b7226d567bb644
3
+ metadata.gz: bfb8ef0054ce8246d1e5b5e4385cd4d5f8665ca84abd59ed193d9a78c7e8dc62
4
+ data.tar.gz: 96ab09bac1646ed985418fa451343686c10b8d599e9a492a35e65e7daa1f8f48
5
5
  SHA512:
6
- metadata.gz: d02d876cb32ffeba8c56d3ef3d44ee66f55a49fa30a3958555bbfe90539df15ccef6a70ddd039a4c68b72384bed37dfa3e9a102fc4b9d9a74fafc42b4d8d36e3
7
- data.tar.gz: b7860a33604d1751eb3451dd8a3646e591a93c4d4380994c175242925c1f8a64b6dd860132c3ff9f8ea9876331a88ad397ac0fbc64c37facd0cdff76cbfa4aab
6
+ metadata.gz: 4906cc5cd77c4f9e3fb910c8774417396064779315506589a70ec3d07a1b6a3d5c0f397af5d97113abea0f4b14b2a5d6b6b35080d39616c0376159a3bc1c7576
7
+ data.tar.gz: e1246e388f5f5a8ff88871ab93c8e12283d279530c92e6d647cbb077f55ff9be5d80c8baad5c1f36c84a584bb65230d7c84b26f4106cbb95ef013ac1d8ba8ccf
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches/eac_ruby_gems_utils/gem'
3
+ require 'avm/eac_ruby_base1/sources/base'
4
4
  require 'avm/version_number'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
@@ -9,9 +9,9 @@ module Avm
9
9
  module Stereotypes
10
10
  class RubyGem
11
11
  module LocalProjectMixin
12
- # @return [EacRubyGemsUtils::Gem]
12
+ # @return [Avm::EacRubyBase1::Sources::Base]
13
13
  def ruby_gem
14
- @ruby_gem ||= ::EacRubyGemsUtils::Gem.new(path)
14
+ @ruby_gem ||= ::Avm::EacRubyBase1::Sources::Base.new(path)
15
15
  end
16
16
 
17
17
  def version
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches/eac_ruby_gems_utils/gem'
4
3
  require 'eac_cli/core_ext'
5
4
 
6
5
  module Avm
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.120.0'
5
+ VERSION = '0.120.1'
6
6
  end
7
7
  end
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.120.0
4
+ version: 0.120.1
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: 2022-07-02 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.21'
33
+ version: '0.22'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.21'
40
+ version: '0.22'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_asciidoctor_base0
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '0.7'
115
+ version: '0.8'
116
116
  type: :runtime
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '0.7'
122
+ version: '0.8'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: avm-eac_ubuntu_base0
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -222,26 +222,6 @@ dependencies:
222
222
  - - ">="
223
223
  - !ruby/object:Gem::Version
224
224
  version: 0.16.4
225
- - !ruby/object:Gem::Dependency
226
- name: eac_ruby_gems_utils
227
- requirement: !ruby/object:Gem::Requirement
228
- requirements:
229
- - - "~>"
230
- - !ruby/object:Gem::Version
231
- version: '0.6'
232
- - - ">="
233
- - !ruby/object:Gem::Version
234
- version: 0.6.1
235
- type: :runtime
236
- prerelease: false
237
- version_requirements: !ruby/object:Gem::Requirement
238
- requirements:
239
- - - "~>"
240
- - !ruby/object:Gem::Version
241
- version: '0.6'
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- version: 0.6.1
245
225
  - !ruby/object:Gem::Dependency
246
226
  name: git
247
227
  requirement: !ruby/object:Gem::Requirement
@@ -355,8 +335,6 @@ files:
355
335
  - lib/avm/launcher/vendor.rb
356
336
  - lib/avm/launcher/vendor/github.rb
357
337
  - lib/avm/patches.rb
358
- - lib/avm/patches/eac_ruby_gems_utils.rb
359
- - lib/avm/patches/eac_ruby_gems_utils/gem.rb
360
338
  - lib/avm/patches/i18n.rb
361
339
  - lib/avm/projects.rb
362
340
  - lib/avm/projects/stereotype.rb
@@ -507,31 +485,6 @@ files:
507
485
  - sub/avm-eac_rails_base0/template/avm/eac_rails_base0/apache_path/extra_content.conf
508
486
  - sub/avm-eac_rails_base0/template/avm/eac_rails_base0/deploy/config/database.yml.template
509
487
  - sub/avm-eac_rails_base0/template/avm/eac_rails_base0/deploy/config/envvars.d/email.yml.template
510
- - sub/avm-eac_rails_base1/Gemfile
511
- - sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec
512
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1.rb
513
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/apache_host.rb
514
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
515
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner.rb
516
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/bundle.rb
517
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/code_runner.rb
518
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/log.rb
519
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs.rb
520
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/logs/clear.rb
521
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
522
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler.rb
523
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/tasks_scheduler/systemd_unit.rb
524
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb
525
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb
526
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb
527
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/systemd_unit.rb
528
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/systemd_unit/service.rb
529
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/systemd_unit/tasks_scheduler_command.rb
530
- - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb
531
- - sub/avm-eac_rails_base1/spec/rubocop_spec.rb
532
- - sub/avm-eac_rails_base1/spec/spec_helper.rb
533
- - sub/avm-eac_rails_base1/template/avm/eac_rails_base1/systemd_unit/tasks_scheduler.service
534
- - sub/avm-eac_rails_base1/template/avm/eac_rails_base1/systemd_unit/tasks_scheduler_command.sh
535
488
  - sub/avm-eac_redmine_base0/Gemfile
536
489
  - sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec
537
490
  - sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0.rb
@@ -561,47 +514,6 @@ files:
561
514
  - sub/avm-eac_redmine_plugin_base0/lib/avm/eac_redmine_plugin_base0/version.rb
562
515
  - sub/avm-eac_redmine_plugin_base0/spec/rubocop_spec.rb
563
516
  - sub/avm-eac_redmine_plugin_base0/spec/spec_helper.rb
564
- - sub/avm-eac_ruby_base1/Gemfile
565
- - sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec
566
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb
567
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb
568
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb
569
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb
570
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb
571
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser.rb
572
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/depends_on.rb
573
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb
574
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/in_gemfile.rb
575
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb
576
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb
577
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb
578
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb
579
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb
580
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
581
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb
582
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb
583
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb
584
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb
585
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
586
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb
587
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
588
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb
589
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb
590
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb
591
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tester.rb
592
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update.rb
593
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb
594
- - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb
595
- - sub/avm-eac_ruby_base1/locale/en.yml
596
- - sub/avm-eac_ruby_base1/locale/pt-BR.yml
597
- - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb
598
- - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out
599
- - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml
600
- - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out
601
- - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml
602
- - sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb
603
- - sub/avm-eac_ruby_base1/spec/rubocop_spec.rb
604
- - sub/avm-eac_ruby_base1/spec/spec_helper.rb
605
517
  - sub/avm-eac_ubuntu_base0/Gemfile
606
518
  - sub/avm-eac_ubuntu_base0/avm-eac_ubuntu_base0.gemspec
607
519
  - sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0.rb
@@ -742,92 +654,6 @@ files:
742
654
  - sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb
743
655
  - sub/avm-git/spec/rubocop_spec.rb
744
656
  - sub/avm-git/spec/spec_helper.rb
745
- - sub/avm/Gemfile
746
- - sub/avm/avm.gemspec
747
- - sub/avm/lib/avm.rb
748
- - sub/avm/lib/avm/data/instance.rb
749
- - sub/avm/lib/avm/data/instance/files_unit.rb
750
- - sub/avm/lib/avm/data/instance/package.rb
751
- - sub/avm/lib/avm/data/instance/unit.rb
752
- - sub/avm/lib/avm/data/package.rb
753
- - sub/avm/lib/avm/data/package/dump.rb
754
- - sub/avm/lib/avm/data/package/load.rb
755
- - sub/avm/lib/avm/data/rotate.rb
756
- - sub/avm/lib/avm/data/unit.rb
757
- - sub/avm/lib/avm/docker.rb
758
- - sub/avm/lib/avm/docker/container.rb
759
- - sub/avm/lib/avm/docker/image.rb
760
- - sub/avm/lib/avm/docker/runner.rb
761
- - sub/avm/lib/avm/executables.rb
762
- - sub/avm/lib/avm/instances.rb
763
- - sub/avm/lib/avm/instances/application.rb
764
- - sub/avm/lib/avm/instances/base.rb
765
- - sub/avm/lib/avm/instances/base/auto_values.rb
766
- - sub/avm/lib/avm/instances/base/auto_values/access.rb
767
- - sub/avm/lib/avm/instances/base/auto_values/admin.rb
768
- - sub/avm/lib/avm/instances/base/auto_values/data.rb
769
- - sub/avm/lib/avm/instances/base/auto_values/database.rb
770
- - sub/avm/lib/avm/instances/base/auto_values/filesystem.rb
771
- - sub/avm/lib/avm/instances/base/auto_values/mailer.rb
772
- - sub/avm/lib/avm/instances/base/auto_values/ruby.rb
773
- - sub/avm/lib/avm/instances/base/auto_values/source.rb
774
- - sub/avm/lib/avm/instances/base/auto_values/system.rb
775
- - sub/avm/lib/avm/instances/base/auto_values/web.rb
776
- - sub/avm/lib/avm/instances/base/dockerizable.rb
777
- - sub/avm/lib/avm/instances/base/entry_keys.rb
778
- - sub/avm/lib/avm/instances/docker_image.rb
779
- - sub/avm/lib/avm/instances/entries.rb
780
- - sub/avm/lib/avm/instances/entry.rb
781
- - sub/avm/lib/avm/instances/entry_keys.rb
782
- - sub/avm/lib/avm/instances/runner.rb
783
- - sub/avm/lib/avm/jobs.rb
784
- - sub/avm/lib/avm/jobs/base.rb
785
- - sub/avm/lib/avm/jobs/variables_source.rb
786
- - sub/avm/lib/avm/launcher/errors/base.rb
787
- - sub/avm/lib/avm/launcher/errors/non_project.rb
788
- - sub/avm/lib/avm/launcher/paths/real.rb
789
- - sub/avm/lib/avm/launcher/publish/check_result.rb
790
- - sub/avm/lib/avm/path_string.rb
791
- - sub/avm/lib/avm/registry.rb
792
- - sub/avm/lib/avm/registry/base.rb
793
- - sub/avm/lib/avm/registry/with_path.rb
794
- - sub/avm/lib/avm/result.rb
795
- - sub/avm/lib/avm/rspec.rb
796
- - sub/avm/lib/avm/rspec/setup.rb
797
- - sub/avm/lib/avm/rspec/shared_examples/in_avm_registry.rb
798
- - sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
799
- - sub/avm/lib/avm/runners/base.rb
800
- - sub/avm/lib/avm/scms/base.rb
801
- - sub/avm/lib/avm/scms/commit.rb
802
- - sub/avm/lib/avm/scms/inflector.rb
803
- - sub/avm/lib/avm/scms/null.rb
804
- - sub/avm/lib/avm/self/docker_image.rb
805
- - sub/avm/lib/avm/self/instance.rb
806
- - sub/avm/lib/avm/self/instance/entry_keys.rb
807
- - sub/avm/lib/avm/sources.rb
808
- - sub/avm/lib/avm/sources/base.rb
809
- - sub/avm/lib/avm/sources/base/configuration.rb
810
- - sub/avm/lib/avm/sources/base/instance.rb
811
- - sub/avm/lib/avm/sources/base/locale.rb
812
- - sub/avm/lib/avm/sources/base/parent.rb
813
- - sub/avm/lib/avm/sources/base/subs.rb
814
- - sub/avm/lib/avm/sources/base/subs_paths.rb
815
- - sub/avm/lib/avm/sources/base/testing.rb
816
- - sub/avm/lib/avm/sources/configuration.rb
817
- - sub/avm/lib/avm/sources/configuration/rubocop.rb
818
- - sub/avm/lib/avm/sources/tester.rb
819
- - sub/avm/lib/avm/sources/tests.rb
820
- - sub/avm/lib/avm/sources/tests/builder.rb
821
- - sub/avm/lib/avm/sources/tests/performer.rb
822
- - sub/avm/lib/avm/sources/tests/result.rb
823
- - sub/avm/lib/avm/sources/tests/single.rb
824
- - sub/avm/lib/avm/sync.rb
825
- - sub/avm/lib/avm/version.rb
826
- - sub/avm/lib/avm/version_number.rb
827
- - sub/avm/spec/lib/avm/scms/base_spec.rb
828
- - sub/avm/spec/lib/avm/sources/base_spec.rb
829
- - sub/avm/spec/rubocop_spec.rb
830
- - sub/avm/spec/spec_helper.rb
831
657
  - sub/eac_cli/Gemfile
832
658
  - sub/eac_cli/eac_cli.gemspec
833
659
  - sub/eac_cli/lib/eac_cli.rb
@@ -1205,59 +1031,6 @@ files:
1205
1031
  - sub/eac_rest/lib/eac_rest/version.rb
1206
1032
  - sub/eac_rest/spec/rubocop_spec.rb
1207
1033
  - sub/eac_rest/spec/spec_helper.rb
1208
- - sub/eac_ruby_base0/Gemfile
1209
- - sub/eac_ruby_base0/eac_ruby_base0.gemspec
1210
- - sub/eac_ruby_base0/lib/eac_ruby_base0.rb
1211
- - sub/eac_ruby_base0/lib/eac_ruby_base0/application.rb
1212
- - sub/eac_ruby_base0/lib/eac_ruby_base0/application_xdg.rb
1213
- - sub/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb
1214
- - sub/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb
1215
- - sub/eac_ruby_base0/lib/eac_ruby_base0/patches.rb
1216
- - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb
1217
- - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb
1218
- - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb
1219
- - sub/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb
1220
- - sub/eac_ruby_base0/lib/eac_ruby_base0/rspec.rb
1221
- - sub/eac_ruby_base0/lib/eac_ruby_base0/rspec/setup.rb
1222
- - sub/eac_ruby_base0/lib/eac_ruby_base0/runner.rb
1223
- - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb
1224
- - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb
1225
- - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb
1226
- - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/input.rb
1227
- - sub/eac_ruby_base0/lib/eac_ruby_base0/runner_with/output.rb
1228
- - sub/eac_ruby_base0/lib/eac_ruby_base0/version.rb
1229
- - sub/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/confirmation_spec.rb
1230
- - sub/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/output_spec.rb
1231
- - sub/eac_ruby_base0/spec/rubocop_spec.rb
1232
- - sub/eac_ruby_base0/spec/spec_helper.rb
1233
- - sub/eac_ruby_gems_utils/Gemfile
1234
- - sub/eac_ruby_gems_utils/LICENCE
1235
- - sub/eac_ruby_gems_utils/README.rdoc
1236
- - sub/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec
1237
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils.rb
1238
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb
1239
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/command.rb
1240
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb
1241
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests.rb
1242
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb
1243
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/minitest.rb
1244
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb
1245
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb
1246
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
1247
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/rspec.rb
1248
- - sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb
1249
- - sub/eac_ruby_gems_utils/spec/code/rubocop_check_spec.rb
1250
- - sub/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb
1251
- - sub/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb
1252
- - sub/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem_spec.rb
1253
- - sub/eac_ruby_gems_utils/spec/spec_helper.rb
1254
- - sub/eac_ruby_gems_utils/spec/support/mygem/Gemfile
1255
- - sub/eac_ruby_gems_utils/spec/support/mygem/Gemfile.lock
1256
- - sub/eac_ruby_gems_utils/spec/support/mygem/Rakefile
1257
- - sub/eac_ruby_gems_utils/spec/support/mygem/exe/myrunner
1258
- - sub/eac_ruby_gems_utils/spec/support/mygem/lib/mygem.rb
1259
- - sub/eac_ruby_gems_utils/spec/support/mygem/lib/mygem/version.rb
1260
- - sub/eac_ruby_gems_utils/spec/support/mygem/mygem.gemspec
1261
1034
  - sub/eac_ruby_utils/Gemfile
1262
1035
  - sub/eac_ruby_utils/MIT-LICENCE
1263
1036
  - sub/eac_ruby_utils/README.rdoc
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/sources/configuration'
4
- require 'eac_ruby_gems_utils/gem'
5
- require 'eac_ruby_utils/core_ext'
6
-
7
- module Avm
8
- module Patches
9
- module EacRubyGemsUtils
10
- module Gem
11
- enable_simple_cache
12
-
13
- private
14
-
15
- def configuration_uncached
16
- ::Avm::Sources::Configuration.find_in_path(root)
17
- end
18
-
19
- def gemfile_path_uncached
20
- return super unless configuration.present? && configuration.rubocop_gemfile.present?
21
-
22
- configuration.rubocop_gemfile
23
- end
24
- end
25
- end
26
- end
27
- end
28
-
29
- ::EacRubyGemsUtils::Gem.prepend(::Avm::Patches::EacRubyGemsUtils::Gem)
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
data/sub/avm/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
data/sub/avm/avm.gemspec DELETED
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- $LOAD_PATH.push File.expand_path('lib', __dir__)
4
-
5
- require 'avm/version'
6
-
7
- Gem::Specification.new do |s|
8
- s.name = 'avm'
9
- s.version = Avm::VERSION
10
- s.authors = ['Eduardo H. Bogoni']
11
- s.summary = 'Ruby base library for Agora Vai! Methodology (https://avm.esquiloazul.tech).'
12
-
13
- s.files = Dir['{lib}/**/*']
14
-
15
- s.add_dependency 'eac_cli', '~> 0.23', '>= 0.23.1'
16
- s.add_dependency 'eac_docker', '~> 0.3'
17
- s.add_dependency 'eac_git', '~> 0.6'
18
- s.add_dependency 'eac_ruby_utils', '~> 0.95'
19
- s.add_dependency 'eac_templates', '~> 0.1', '>= 0.1.1'
20
- s.add_dependency 'filesize', '~> 0.2'
21
- s.add_dependency 'htmlbeautifier', '~> 1.3', '>= 1.3.1'
22
- s.add_dependency 'minitar', '~> 0.9'
23
-
24
- s.add_development_dependency 'aranha-parsers', '~> 0.14', '~> 0.14.1'
25
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
26
- end
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/data/instance/unit'
4
-
5
- module Avm
6
- module Data
7
- module Instance
8
- class FilesUnit < ::Avm::Data::Instance::Unit
9
- EXTENSION = '.tar.gz'
10
-
11
- attr_reader :fs_path_subpath
12
-
13
- def initialize(instance, fs_path_subpath)
14
- super(instance)
15
- @fs_path_subpath = fs_path_subpath
16
- end
17
-
18
- before_load :clear_files
19
-
20
- def files_path
21
- ::File.join(instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH), fs_path_subpath)
22
- end
23
-
24
- def dump_command
25
- instance.host_env.command('tar', '-czf', '-', '-C', files_path, '.')
26
- end
27
-
28
- def load_command
29
- instance.host_env.command('tar', '-xzf', '-', '-C', files_path)
30
- end
31
-
32
- def clear_files
33
- infom "Removing all files under #{files_path}..."
34
- instance.host_env.command('mkdir', '-p', files_path).execute!
35
- instance.host_env.command('find', files_path, '-mindepth', 1, '-delete').execute!
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/data/package'
4
-
5
- module Avm
6
- module Data
7
- module Instance
8
- class Package < ::Avm::Data::Package
9
- attr_reader :instance
10
-
11
- def initialize(instance, options = {})
12
- @instance = instance
13
- super options
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/data/unit'
4
-
5
- module Avm
6
- module Data
7
- module Instance
8
- class Unit < ::Avm::Data::Unit
9
- attr_reader :instance
10
-
11
- def initialize(instance)
12
- @instance = instance
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
5
-
6
- module Avm
7
- module Data
8
- module Instance
9
- end
10
- end
11
- end
@@ -1,119 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/data/rotate'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'minitar'
6
-
7
- module Avm
8
- module Data
9
- class Package
10
- class Dump
11
- enable_speaker
12
- enable_listable
13
-
14
- DEFAULT_EXPIRE_TIME = 1.day
15
- DEFAULT_FILE_EXTENSION = '.tar'
16
-
17
- attr_reader :package, :data_file_path, :existing
18
-
19
- lists.add_string :existing, :denied, :overwrite, :rotate, :rotate_expired
20
-
21
- def initialize(package, data_file_path, options = {})
22
- @package = package
23
- @data_file_path = data_file_path
24
- options = options.to_options_consumer
25
- @existing, @expire_time = options.consume(:existing, :expire_time)
26
- options.validate
27
- self.class.lists.existing.value_validate!(@existing)
28
- end
29
-
30
- def runnable?
31
- cannot_run_reason.blank?
32
- end
33
-
34
- def cannot_run_reason
35
- return nil if !data_file_exist? ||
36
- [EXISTING_OVERWRITE, EXISTING_ROTATE].include?(existing)
37
-
38
- if existing == EXISTING_DENIED
39
- 'Data exist and overwriting is denied'
40
- elsif existing == EXISTING_ROTATE_EXPIRED && !data_file_expired?
41
- 'Data exist and yet is not expired'
42
- end
43
- end
44
-
45
- def run
46
- raise "Cannot run: #{cannot_run_reason}" unless runnable?
47
-
48
- build_dir = dump_units_to_build_directory
49
- package_file = create_package_file(build_dir)
50
- rotate
51
- move_download_to_final_dest(package_file)
52
- end
53
-
54
- def data_file_exist?
55
- ::File.exist?(data_file_path)
56
- end
57
-
58
- def data_file_time
59
- data_file_exist? ? ::Time.now - ::File.mtime(data_file_path) : nil
60
- end
61
-
62
- def data_file_expired?
63
- data_file_time.if_present(false) { |v| v >= expire_time }
64
- end
65
-
66
- def expire_time
67
- @expire_time || DEFAULT_EXPIRE_TIME
68
- end
69
-
70
- private
71
-
72
- def download
73
- infom 'Downloading dump...'
74
- download_path = find_download_path
75
- dump_command.system!(output_file: download_path)
76
- fatal_error "File \"#{download_path}\" not saved" unless ::File.exist?(download_path)
77
- fatal_error "File \"#{download_path}\" is empty" if ::File.zero?(download_path)
78
- download_path
79
- end
80
-
81
- def move_download_to_final_dest(download_path)
82
- ::FileUtils.mkdir_p(::File.dirname(data_file_path))
83
- ::FileUtils.mv(download_path, data_file_path)
84
- end
85
-
86
- def rotate
87
- return unless data_file_exist?
88
- return unless existing == EXISTING_ROTATE
89
-
90
- infom "Rotating \"#{data_file_path}\"..."
91
- ::Avm::Data::Rotate.new(data_file_path).run
92
- end
93
-
94
- def new_build_path
95
- f = ::Tempfile.new(self.class.name.parameterize + '-download')
96
- path = f.path
97
- f.close
98
- f.unlink
99
- path
100
- end
101
-
102
- def dump_units_to_build_directory
103
- dir = ::Dir.mktmpdir
104
- package.dump_units_to_directory(dir)
105
- dir
106
- end
107
-
108
- def create_package_file(build_dir)
109
- package_path = new_build_path
110
- infom "Creating package \"#{package_path}\" from \"#{build_dir}\"..."
111
- Dir.chdir(build_dir) do
112
- ::Minitar.pack('.', File.open(::File.expand_path(package_path), 'wb'))
113
- end
114
- package_path
115
- end
116
- end
117
- end
118
- end
119
- end