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
@@ -1,57 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_config/old_configs'
4
- require 'eac_ruby_utils/core_ext'
5
- require 'yaml'
6
-
7
- module Avm
8
- module Apps
9
- module Sources
10
- class Configuration < ::EacConfig::OldConfigs
11
- require_sub __FILE__
12
-
13
- FILENAMES = %w[.avm.yml .avm.yaml].freeze
14
-
15
- class << self
16
- def find_by_path(path)
17
- path = ::Pathname.new(path.to_s) unless path.is_a?(::Pathname)
18
- internal_find_path(path.expand_path)
19
- end
20
-
21
- def find_in_path(path)
22
- absolute_pathname = path.to_pathname.expand_path
23
- if absolute_pathname.directory?
24
- FILENAMES.each do |filename|
25
- file = absolute_pathname.join(filename)
26
- return new(file) if file.exist?
27
- end
28
- end
29
- nil
30
- end
31
-
32
- private
33
-
34
- def internal_find_path(absolute_pathname)
35
- r = find_in_path(absolute_pathname)
36
- return r if r.present?
37
-
38
- internal_find_path(absolute_pathname.dirname) unless absolute_pathname.root?
39
- end
40
- end
41
-
42
- def initialize(path)
43
- super(nil, storage_path: path)
44
- end
45
-
46
- # Utility to read a configuration as a [EacRubyUtils::Envs::Command].
47
- # @return [EacRubyUtils::Envs::Command]
48
- def read_command(key)
49
- read_entry(key).if_present do |v|
50
- args = v.is_a?(::Enumerable) ? v.map(&:to_s) : ::Shellwords.split(v)
51
- ::EacRubyUtils::Envs.local.command(args).chdir(::File.dirname(storage_path))
52
- end
53
- end
54
- end
55
- end
56
- end
57
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/filesystem_cache'
4
- require 'tmpdir'
5
-
6
- module EacRubyUtils
7
- class << self
8
- def fs_cache
9
- @fs_cache ||= ::EacRubyUtils::FilesystemCache.new(::Dir.tmpdir, 'eac_ruby_utils_fs_cache')
10
- end
11
- end
12
- end