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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Apps
5
- VERSION = '0.4.1'
5
+ VERSION = '0.5.0'
6
6
  end
7
7
  end
@@ -13,6 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
15
  s.add_dependency 'avm-eac_rails_base1', '~> 0.1'
16
+ s.add_dependency 'curb', '~> 0.9.10'
17
+ s.add_dependency 'eac_fs', '~> 0.4'
16
18
  s.add_dependency 'eac_ruby_utils', '~> 0.68'
17
19
 
18
20
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/eac_redmine_base0/core_update'
4
- require 'avm/cached_download'
5
4
  require 'avm/sync'
5
+ require 'eac_fs/cached_download'
6
6
  require 'eac_ruby_utils/core_ext'
7
7
 
8
8
  module Avm
@@ -79,8 +79,9 @@ module Avm
79
79
  .add_exclude('/*').add_includes(*target_files_to_remove).move_mode(true).run
80
80
  end
81
81
 
82
+ # @return [EacFs::CachedDownload]
82
83
  def source_package_uncached
83
- ::Avm::CachedDownload.new(url, ::Avm.fs_cache.child('eac_redmine_base0', 'core_update'))
84
+ ::EacFs::CachedDownload.new(url, fs_cache)
84
85
  end
85
86
 
86
87
  def validate_empty_dir
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRedmineBase0
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'avm/apps/jobs/base'
4
+ require 'avm/jobs/base'
5
5
  require 'avm/patches/object/template'
6
6
  require 'avm/eac_ubuntu_base0/apache'
7
7
  require 'avm/patches/object/template'
@@ -11,7 +11,7 @@ module Avm
11
11
  class ApacheHost
12
12
  JOBS = %w[write_available_no_ssl_site enable_no_ssl_site remove_ssl_site reload_apache
13
13
  run_certbot enable_ssl_site reload_apache].freeze
14
- include ::Avm::Apps::Jobs::Base
14
+ include ::Avm::Jobs::Base
15
15
 
16
16
  def no_ssl_site_content
17
17
  ::Avm::EacWebappBase0::ApacheHost
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/apps/jobs/base'
3
+ require 'avm/jobs/base'
4
4
  require 'avm/eac_ubuntu_base0/apache'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
@@ -8,7 +8,7 @@ module Avm
8
8
  module EacWebappBase0
9
9
  class ApachePath
10
10
  JOBS = %w[write_available_conf enable_conf reload_apache].freeze
11
- include ::Avm::Apps::Jobs::Base
11
+ include ::Avm::Jobs::Base
12
12
 
13
13
  def content
14
14
  ::Avm::EacWebappBase0::ApachePath.template.child('default.conf').apply(variables_source)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/callbacks'
4
- require 'avm/apps/jobs/base'
4
+ require 'avm/jobs/base'
5
5
  require 'avm/git'
6
6
  require 'avm/patches/object/template'
7
7
  require 'eac_ruby_utils/core_ext'
@@ -19,7 +19,7 @@ module Avm
19
19
  JOBS = (%w[create_build_dir build_content append_instance_content write_on_target
20
20
  setup_files_units assert_instance_branch] + [REQUEST_TEST_JOB]).freeze
21
21
 
22
- include ::Avm::Apps::Jobs::Base
22
+ include ::Avm::Jobs::Base
23
23
 
24
24
  lists.add_symbol :option, :appended_directories, :no_request_test, :reference
25
25
 
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+
5
+ require 'eac_fs/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'eac_fs'
9
+ s.version = EacFs::VERSION
10
+ s.authors = ['Put here the authors']
11
+ s.summary = 'Put here de description.'
12
+
13
+ s.files = Dir['{lib}/**/*']
14
+
15
+ s.add_dependency 'content-type'
16
+ s.add_dependency 'eac_ruby_utils', '~> 0.70'
17
+ s.add_dependency 'ruby-filemagic'
18
+
19
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
20
+ end
@@ -1,7 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module EacRubyUtils
4
- class FilesystemCache
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'fileutils'
5
+
6
+ module EacFs
7
+ class Cache
8
+ enable_context
9
+
5
10
  CONTENT_FILE_NAME = '__content__'
6
11
 
7
12
  attr_reader :path
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/fs_cache'
4
- require 'eac_ruby_utils/core_ext'
3
+ require 'eac_fs/patches'
4
+ require 'eac_ruby_utils/fs/temp'
5
5
 
6
6
  module Avm
7
7
  class CachedDownload
@@ -9,7 +9,7 @@ module Avm
9
9
 
10
10
  def initialize(url, parent_fs_cache = nil)
11
11
  @url = url
12
- @fs_cache = (parent_fs_cache || ::Avm.fs_cache).child(url.parameterize)
12
+ @fs_cache = (parent_fs_cache || fs_cache).child(url.parameterize)
13
13
  end
14
14
 
15
15
  def assert
@@ -25,7 +25,7 @@ module Avm
25
25
  end
26
26
 
27
27
  def path
28
- @path ||= fs_cache.content_path.to_pathname
28
+ fs_cache.content_path.to_pathname
29
29
  end
30
30
 
31
31
  private
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+ require 'content-type'
5
+ require 'filemagic'
6
+
7
+ module EacFs
8
+ class FileInfo
9
+ UNKNOWN_CONTENT_TYPE_STRING = 'application/octet-stream'
10
+ UNKNOWN_CONTENT_TYPE = ::ContentType.parse(UNKNOWN_CONTENT_TYPE_STRING)
11
+
12
+ enable_simple_cache
13
+ attr_reader :magic_string
14
+
15
+ def initialize(path)
16
+ @magic_string = ::FileMagic.new(FileMagic::MAGIC_MIME).file(path.to_pathname.to_path)
17
+ end
18
+
19
+ delegate :charset, :mime_type, :subtype, :type, to: :content_type
20
+
21
+ private
22
+
23
+ def content_type_uncached
24
+ ::ContentType.parse(magic_string)
25
+ rescue ::Parslet::ParseFailed
26
+ UNKNOWN_CONTENT_TYPE
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_fs/cache'
4
+
5
+ class Module
6
+ # @return [EacFs::Cache]
7
+ def fs_cache
8
+ ::EacFs::Cache.context.current.child('fs_cache', *name.split('::'))
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub(__FILE__)
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_fs/patches/module/fs_cache'
4
+
5
+ class Object
6
+ # @return [EacFs::Cache]
7
+ def fs_cache
8
+ self.class.fs_cache
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub(__FILE__)
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_fs/file_info'
4
+ require 'pathname'
5
+
6
+ class Pathname
7
+ # Shortcut for `EacFs::FileInfo.new(self)`.
8
+ # @return [EacFs::FileInfo]
9
+ def info
10
+ ::EacFs::FileInfo.new(self)
11
+ end
12
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub(__FILE__)
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub(__FILE__)
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EacFs
4
+ VERSION = '0.4.0'
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EacFs
6
+ require_sub __FILE__
7
+ end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/core_ext/object/blank'
4
- require 'eac_ruby_utils/filesystem_cache'
4
+ require 'eac_fs/cache'
5
5
 
6
- RSpec.describe ::EacRubyUtils::FilesystemCache do
6
+ RSpec.describe ::EacFs::Cache do
7
7
  let(:tmpdir) { ::Dir.mktmpdir }
8
8
  let(:instance) { described_class.new(tmpdir, 'instance') }
9
9
 
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -9,7 +9,7 @@ module EacGit
9
9
  # @return [EacRubyUtils::Envs::Command]
10
10
  def archive_to_dir(path)
11
11
  path = path.to_pathname
12
- repo.command('archive', '--format=tar', hash).pipe(
12
+ repo.command('archive', '--format=tar', id).pipe(
13
13
  ::EacGit::Executables.tar.command('-xC', path)
14
14
  )
15
15
  end
@@ -16,10 +16,10 @@ module EacGit
16
16
  commiter_all: '%cn <%ce>, %ci'
17
17
  }.freeze
18
18
 
19
- common_constructor :repo, :hash
19
+ common_constructor :repo, :id
20
20
 
21
21
  def format(format)
22
- repo.command('--no-pager', 'log', '-1', "--pretty=format:#{format}", hash).execute!.strip
22
+ repo.command('--no-pager', 'log', '-1', "--pretty=format:#{format}", id).execute!.strip
23
23
  end
24
24
 
25
25
  FIELDS.each do |field, format|
@@ -45,7 +45,7 @@ module EacGit
45
45
  def diff_tree_execute
46
46
  args = []
47
47
  args << '--root' if root_child?
48
- args << hash
48
+ args << id
49
49
  repo.command(*::EacGit::Local::Commit::DiffTreeLine::GIT_COMMAND_ARGS, *args).execute!
50
50
  end
51
51
  end
@@ -8,6 +8,8 @@ module EacGit
8
8
  class Local
9
9
  require_sub __FILE__, include_modules: true
10
10
 
11
+ HEAD_REFERENCE = 'HEAD'
12
+
11
13
  common_constructor :root_path do
12
14
  self.root_path = root_path.to_pathname
13
15
  end
@@ -24,6 +26,11 @@ module EacGit
24
26
  base == revparse
25
27
  end
26
28
 
29
+ # @return [EacGit::Local::Commit
30
+ def head(required = true)
31
+ commit(HEAD_REFERENCE, required)
32
+ end
33
+
27
34
  def merge_base(*commits)
28
35
  refs = commits.dup
29
36
  while refs.count > 1
@@ -56,6 +63,12 @@ module EacGit
56
63
  ::EacGit::Local::Subrepo.new(self, subpath)
57
64
  end
58
65
 
66
+ # @return [Array<EacGit::Local::Subrepo>]
67
+ def subrepos
68
+ command('subrepo', '-q', 'status').execute!.split("\n").map(&:strip).select(&:present?)
69
+ .map { |subpath| subrepo(subpath) }
70
+ end
71
+
59
72
  def to_s
60
73
  "#{self.class}[#{root_path}]"
61
74
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacGit
4
- VERSION = '0.7.3'
4
+ VERSION = '0.8.0'
5
5
  end
@@ -13,7 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
15
  s.add_dependency 'eac_cli', '~> 0.22', '>= 0.22.2'
16
- s.add_dependency 'eac_ruby_gems_utils', '~> 0.9', '~> 0.9.5'
16
+ s.add_dependency 'eac_fs', '~> 0.3'
17
+ s.add_dependency 'eac_ruby_gems_utils', '~> 0.9', '~> 0.9.6'
17
18
  s.add_dependency 'eac_ruby_utils', '~> 0.70'
18
19
 
19
20
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
@@ -3,10 +3,10 @@
3
3
  require 'eac_cli/config'
4
4
  require 'eac_config/envvars_node'
5
5
  require 'eac_config/yaml_file_node'
6
+ require 'eac_fs/cache'
6
7
  require 'eac_ruby_base0/application_xdg'
7
8
  require 'eac_ruby_gems_utils/gem'
8
9
  require 'eac_ruby_utils/core_ext'
9
- require 'eac_ruby_utils/filesystem_cache'
10
10
 
11
11
  module EacRubyBase0
12
12
  class Application
@@ -44,8 +44,8 @@ module EacRubyBase0
44
44
  end
45
45
 
46
46
  def fs_cache
47
- @fs_cache ||= ::EacRubyUtils::FilesystemCache.new(
48
- cache_dir.join(::EacRubyUtils::FilesystemCache.name.parameterize)
47
+ @fs_cache ||= ::EacFs::Cache.new(
48
+ cache_dir.join(::EacFs::Cache.name.parameterize)
49
49
  )
50
50
  end
51
51
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_cli/core_ext'
4
+ require 'eac_fs/patches'
4
5
  require 'eac_ruby_base0/patches'
@@ -3,6 +3,7 @@
3
3
  require 'eac_cli/core_ext'
4
4
  require 'eac_cli/speaker'
5
5
  require 'eac_config/node'
6
+ require 'eac_fs/cache'
6
7
  require 'eac_ruby_utils/speaker'
7
8
 
8
9
  module EacRubyBase0
@@ -23,13 +24,11 @@ module EacRubyBase0
23
24
  end
24
25
 
25
26
  def run
26
- ::EacRubyUtils::Speaker.context.on(build_speaker) do
27
- ::EacConfig::Node.context.on(runner_context.call(:application).build_config) do
28
- if parsed.version?
29
- show_version
30
- else
31
- run_with_subcommand
32
- end
27
+ on_context do
28
+ if parsed.version?
29
+ show_version
30
+ else
31
+ run_with_subcommand
33
32
  end
34
33
  end
35
34
  end
@@ -38,6 +37,16 @@ module EacRubyBase0
38
37
  runner_context.call(:application).version.to_s
39
38
  end
40
39
 
40
+ def on_context
41
+ ::EacRubyUtils::Speaker.context.on(build_speaker) do
42
+ ::EacConfig::Node.context.on(runner_context.call(:application).build_config) do
43
+ ::EacFs::Cache.context.on(application.fs_cache) do
44
+ yield
45
+ end
46
+ end
47
+ end
48
+ end
49
+
41
50
  def show_version
42
51
  out("#{application_version}\n")
43
52
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.10.1'
4
+ VERSION = '0.11.0'
5
5
  end
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
4
  require 'eac_ruby_utils/fs/logs'
5
- require 'eac_ruby_utils/fs_cache'
6
5
  require 'eac_ruby_utils/listable'
7
6
  require 'eac_ruby_utils/on_clean_ruby_environment'
8
7
 
@@ -54,10 +53,6 @@ module EacRubyGemsUtils
54
53
  logs[:stderr].write(r[:stderr])
55
54
  r[:exit_code].zero?
56
55
  end
57
-
58
- def root_cache
59
- ::EacRubyUtils.fs_cache.child(gem.root.to_s.parameterize, self.class.name.parameterize)
60
- end
61
56
  end
62
57
  end
63
58
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyGemsUtils
4
- VERSION = '0.9.5'
4
+ VERSION = '0.9.6'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.75.0'
4
+ VERSION = '0.76.0'
5
5
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'erb'
4
+
5
+ class Module
6
+ def erb_template(subpath, binding_obj)
7
+ ::ERB.new(template.child(subpath).path.read).result(binding_obj)
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub __FILE__
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_templates/patches/module/erb_template'
4
+
5
+ class Object
6
+ def erb_template(subpath, binding_obj = nil)
7
+ self.class.erb_template(subpath, binding_obj || binding)
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub __FILE__
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub __FILE__
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTemplates
4
- VERSION = '0.1.2'
4
+ VERSION = '0.2.0'
5
5
  end