avm-tools 0.107.0 → 0.108.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +2 -2
  3. data/lib/avm/ruby/rubocop/_configured.rb +2 -2
  4. data/lib/avm/tools/app_src.rb +5 -5
  5. data/lib/avm/tools/runner/app_src/ruby/bundler/incompatible.rb +2 -2
  6. data/lib/avm/tools/runner/config/load_path.rb +8 -3
  7. data/lib/avm/tools/runner.rb +0 -4
  8. data/lib/avm/tools/version.rb +1 -1
  9. data/{lib → vendor/avm/lib}/avm/data/instance/files_unit.rb +0 -0
  10. data/{lib → vendor/avm/lib}/avm/data/instance/package.rb +0 -0
  11. data/{lib → vendor/avm/lib}/avm/data/instance/unit.rb +0 -0
  12. data/{lib → vendor/avm/lib}/avm/data/instance.rb +0 -0
  13. data/{lib → vendor/avm/lib}/avm/data/package/dump.rb +0 -0
  14. data/{lib → vendor/avm/lib}/avm/data/package/load.rb +0 -0
  15. data/{lib → vendor/avm/lib}/avm/data/package.rb +0 -0
  16. data/{lib → vendor/avm/lib}/avm/data/unit.rb +0 -0
  17. data/vendor/avm/lib/avm/git/issue/complete/test.rb +2 -2
  18. data/{lib → vendor/avm/lib}/avm/path_string.rb +0 -0
  19. data/vendor/avm/lib/avm/{app_src → sources}/base.rb +3 -3
  20. data/vendor/avm/lib/avm/{app_src → sources}/configuration/_locale.rb +1 -1
  21. data/vendor/avm/lib/avm/{app_src → sources}/configuration/_rubocop.rb +1 -1
  22. data/vendor/avm/lib/avm/{app_src → sources}/configuration/_tests.rb +1 -1
  23. data/vendor/avm/lib/avm/{app_src → sources}/configuration.rb +1 -1
  24. data/vendor/avm/lib/avm/{app_src.rb → sources.rb} +1 -1
  25. data/{lib → vendor/avm/lib}/avm/sync.rb +0 -0
  26. data/vendor/avm/lib/avm/version.rb +1 -1
  27. data/vendor/eac_cli/lib/eac_cli/config.rb +6 -3
  28. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  29. data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +6 -1
  30. data/vendor/eac_fs/lib/eac_fs/version.rb +1 -1
  31. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +2 -2
  32. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +1 -1
  33. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  34. metadata +18 -25
  35. data/lib/avm/patches/object/fs_cache.rb +0 -16
  36. data/vendor/avm-apps/Gemfile +0 -5
  37. data/vendor/avm-apps/avm-apps.gemspec +0 -18
  38. data/vendor/avm-apps/lib/avm/apps/version.rb +0 -7
  39. data/vendor/avm-apps/lib/avm/apps.rb +0 -9
  40. data/vendor/avm-apps/spec/rubocop_spec.rb +0 -3
  41. data/vendor/avm-apps/spec/spec_helper.rb +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 982669127ef20f0cf64fa12fbe0d087c0479b0e8575d7bb2c6047abac2ec81d3
4
- data.tar.gz: d4d659206696045d925dbba86c5d4fa69e184dbbdc58001e3453344ef68ef9ef
3
+ metadata.gz: f2aa6c6cff787569f6631e98dc1bb02e19e37358bffabdd12c770af457e4bf50
4
+ data.tar.gz: e324057b567e115c8449e3db04e82cf51955020539779e2d4928ede0338592c2
5
5
  SHA512:
6
- metadata.gz: 436eb2a8f5957c9ffcb130851bb2dee4ab070cfd610a25356e8030766b6190a2a096b7a25250ab33801036f01e79e5c50bfc8024c2b6172f721f1868811251ea
7
- data.tar.gz: 57711beda558d8e28ba2f98fd9ccbe4be8372e32093e1e45591ad7b5bb89cc9014946720b5430eaf66ef5ce4e583d96e3b3e556be39ce2670df577ee11d681cb
6
+ metadata.gz: b8b1b1fd688eef382e3d483ffa6fa5af94bc6d334c944d2772774b55eacd87c63f56306121fe58e8e4254c4e09e3cf3d055b1c941991ce30cd418096418dba0e
7
+ data.tar.gz: 81e7f566f5cc5e0a202440343b3318b934d15258cb02662ab39fe708b458cac5365e07d01b05834da0263840e1e49b86283534139ebbb4f582f4ff11499b729f
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/app_src/configuration'
3
+ require 'avm/sources/configuration'
4
4
  require 'eac_ruby_gems_utils/gem'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
@@ -13,7 +13,7 @@ module Avm
13
13
  private
14
14
 
15
15
  def configuration_uncached
16
- ::Avm::AppSrc::Configuration.find_in_path(root)
16
+ ::Avm::Sources::Configuration.find_in_path(root)
17
17
  end
18
18
 
19
19
  def gemfile_path_uncached
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/app_src/configuration'
3
+ require 'avm/sources/configuration'
4
4
 
5
5
  module Avm
6
6
  module Ruby
@@ -22,7 +22,7 @@ module Avm
22
22
  private
23
23
 
24
24
  def configuration_uncached
25
- ::Avm::AppSrc::Configuration.find_by_path(base_path)
25
+ ::Avm::Sources::Configuration.find_by_path(base_path)
26
26
  end
27
27
  end
28
28
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/app_src/base'
4
- require 'avm/app_src/configuration'
3
+ require 'avm/sources/base'
4
+ require 'avm/sources/configuration'
5
5
  require 'avm/launcher/paths/real'
6
6
  require 'avm/projects/stereotype/job_comparator'
7
7
  require 'eac_ruby_utils/core_ext'
@@ -36,12 +36,12 @@ module Avm
36
36
  private
37
37
 
38
38
  def avm_instance_uncached
39
- ::Avm::AppSrc::Base.new(path)
39
+ ::Avm::Sources::Base.new(path)
40
40
  end
41
41
 
42
- # @return [Avm::Apps::Sources::Configuration]
42
+ # @return [Avm::Sources::Configuration]
43
43
  def configuration_uncached
44
- ::Avm::AppSrc::Configuration.find_in_path(path)
44
+ ::Avm::Sources::Configuration.find_in_path(path)
45
45
  end
46
46
 
47
47
  def stereotypes_jobs(job, job_args)
@@ -35,8 +35,8 @@ module Avm
35
35
  fs_cache.content_path
36
36
  end
37
37
 
38
- def fs_cache
39
- super.child(instance.path.to_s.variableize)
38
+ def fs_cache_object_id
39
+ instance.path.to_s.variableize
40
40
  end
41
41
 
42
42
  def gem_title(gem_in_conflict)
@@ -3,6 +3,7 @@
3
3
  require 'avm/self'
4
4
  require 'avm/tools/core_ext'
5
5
  require 'eac_config/node'
6
+ require 'eac_ruby_utils/recursive_builder'
6
7
 
7
8
  module Avm
8
9
  module Tools
@@ -15,17 +16,21 @@ module Avm
15
16
  end
16
17
 
17
18
  def run
18
- run_show
19
+ config_nodes.each { |config_node| run_show(config_node) }
19
20
  run_add
20
21
  end
21
22
 
22
23
  private
23
24
 
24
25
  # @return [[EacCli::Config]]
25
- def config_node
26
+ def root_config_node
26
27
  ::EacConfig::Node.context.current
27
28
  end
28
29
 
30
+ def config_nodes
31
+ ::EacRubyUtils::RecursiveBuilder.new(root_config_node, &:self_loaded_nodes).result
32
+ end
33
+
29
34
  def run_add
30
35
  parsed.push.if_present do |v|
31
36
  infov 'Path to add', v
@@ -34,7 +39,7 @@ module Avm
34
39
  end
35
40
  end
36
41
 
37
- def run_show
42
+ def run_show(config_node)
38
43
  infov 'Configuration path', config_node.url
39
44
  infov 'Paths included', config_node.self_loaded_nodes.count
40
45
  config_node.self_loaded_nodes.each do |loaded_node|
@@ -17,10 +17,6 @@ module Avm
17
17
  def application
18
18
  ::Avm::Self.application
19
19
  end
20
-
21
- def run
22
- ::EacConfig::Node.context.on(::Avm::Self.build_config) { super }
23
- end
24
20
  end
25
21
  end
26
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.107.0'
5
+ VERSION = '0.108.0'
6
6
  end
7
7
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/app_src/configuration'
3
+ require 'avm/sources/configuration'
4
4
  require 'avm/result'
5
5
  require 'eac_ruby_utils/fs/temp'
6
6
 
@@ -36,7 +36,7 @@ module Avm
36
36
  end
37
37
 
38
38
  def configuration_uncached
39
- ::Avm::AppSrc::Configuration.find_by_path(@git)
39
+ ::Avm::Sources::Configuration.find_by_path(@git)
40
40
  end
41
41
  end
42
42
  end
File without changes
@@ -4,7 +4,7 @@ require 'eac_git'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module Avm
7
- module AppSrc
7
+ module Sources
8
8
  class Base
9
9
  enable_simple_cache
10
10
  enable_listable
@@ -16,7 +16,7 @@ module Avm
16
16
 
17
17
  delegate :to_s, to: :path
18
18
 
19
- # @return [Avm::AppSrc::Base]
19
+ # @return [Avm::Sources::Base]
20
20
  def parent
21
21
  options[OPTION_PARENT]
22
22
  end
@@ -28,7 +28,7 @@ module Avm
28
28
  path.relative_path_from(parent.path)
29
29
  end
30
30
 
31
- # @return [Enumerable<Avm::AppSrc::Base>]
31
+ # @return [Enumerable<Avm::Sources::Base>]
32
32
  def subs
33
33
  git_repo.subrepos
34
34
  .map { |subrepo| self.class.new(subrepo.subpath.expand_path(path), parent: self) }
@@ -4,7 +4,7 @@ require 'avm/patches/eac_ruby_gems_utils/gem'
4
4
  require 'i18n'
5
5
 
6
6
  module Avm
7
- module AppSrc
7
+ module Sources
8
8
  class Configuration < ::EacConfig::OldConfigs
9
9
  LOCALE_KEY = :locale
10
10
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- module AppSrc
4
+ module Sources
5
5
  class Configuration < ::EacConfig::OldConfigs
6
6
  RUBOCOP_COMMAND_KEY = 'ruby.rubocop.command'
7
7
  RUBOCOP_GEMFILE_KEY = 'ruby.rubocop.gemfile'
@@ -3,7 +3,7 @@
3
3
  require 'avm/patches/eac_ruby_gems_utils/gem'
4
4
 
5
5
  module Avm
6
- module AppSrc
6
+ module Sources
7
7
  class Configuration < ::EacConfig::OldConfigs
8
8
  BUNDLE_TEST_COMMAND_KEY = 'test.bundle_command'
9
9
  TEST_COMMAND_KEY = 'test.command'
@@ -5,7 +5,7 @@ require 'eac_ruby_utils/core_ext'
5
5
  require 'yaml'
6
6
 
7
7
  module Avm
8
- module AppSrc
8
+ module Sources
9
9
  class Configuration < ::EacConfig::OldConfigs
10
10
  require_sub __FILE__
11
11
 
@@ -3,7 +3,7 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
5
  module Avm
6
- module AppSrc
6
+ module Sources
7
7
  require_sub __FILE__
8
8
  end
9
9
  end
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
@@ -3,16 +3,19 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
5
  module EacCli
6
- class Config
6
+ class Config < ::SimpleDelegator
7
7
  require_sub __FILE__
8
- attr_reader :sub
9
8
 
10
9
  def initialize(sub_node)
11
- @sub = sub_node
10
+ super(sub_node)
12
11
  end
13
12
 
14
13
  def entry(path, options = {})
15
14
  ::EacCli::Config::Entry.new(self, path, options)
16
15
  end
16
+
17
+ def sub
18
+ __getobj__
19
+ end
17
20
  end
18
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacCli
4
- VERSION = '0.23.0'
4
+ VERSION = '0.23.1'
5
5
  end
@@ -5,6 +5,11 @@ require 'eac_fs/patches/module/fs_cache'
5
5
  class Object
6
6
  # @return [EacFs::Cache]
7
7
  def fs_cache
8
- self.class.fs_cache
8
+ self.class.fs_cache.child(fs_cache_object_id)
9
+ end
10
+
11
+ # @return [String]
12
+ def fs_cache_object_id
13
+ raise 'Abstract method hit'
9
14
  end
10
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacFs
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
@@ -43,8 +43,8 @@ module EacRubyBase0
43
43
  delegate "#{item}_xdg_env", "#{item}_dir", to: :app_xdg
44
44
  end
45
45
 
46
- def fs_cache
47
- @fs_cache ||= ::EacFs::Cache.new(
46
+ def self_fs_cache
47
+ @self_fs_cache ||= ::EacFs::Cache.new(
48
48
  cache_dir.join(::EacFs::Cache.name.parameterize)
49
49
  )
50
50
  end
@@ -40,7 +40,7 @@ module EacRubyBase0
40
40
  def on_context
41
41
  ::EacRubyUtils::Speaker.context.on(build_speaker) do
42
42
  ::EacConfig::Node.context.on(runner_context.call(:application).build_config) do
43
- ::EacFs::Cache.context.on(application.fs_cache) do
43
+ ::EacFs::Cache.context.on(application.self_fs_cache) do
44
44
  yield
45
45
  end
46
46
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyBase0
4
- VERSION = '0.11.0'
4
+ VERSION = '0.12.0'
5
5
  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.107.0
4
+ version: 0.108.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-25 00:00:00.000000000 Z
11
+ date: 2021-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -185,14 +185,6 @@ files:
185
185
  - exe/avm
186
186
  - lib/avm.rb
187
187
  - lib/avm/data.rb
188
- - lib/avm/data/instance.rb
189
- - lib/avm/data/instance/files_unit.rb
190
- - lib/avm/data/instance/package.rb
191
- - lib/avm/data/instance/unit.rb
192
- - lib/avm/data/package.rb
193
- - lib/avm/data/package/dump.rb
194
- - lib/avm/data/package/load.rb
195
- - lib/avm/data/unit.rb
196
188
  - lib/avm/eac_rails_base0.rb
197
189
  - lib/avm/eac_rails_base0/apache_host.rb
198
190
  - lib/avm/eac_rails_base0/apache_path.rb
@@ -287,10 +279,8 @@ files:
287
279
  - lib/avm/patches/eac_ruby_gems_utils/gem.rb
288
280
  - lib/avm/patches/i18n.rb
289
281
  - lib/avm/patches/object.rb
290
- - lib/avm/patches/object/fs_cache.rb
291
282
  - lib/avm/patches/object/i18n.rb
292
283
  - lib/avm/patches/object/template.rb
293
- - lib/avm/path_string.rb
294
284
  - lib/avm/postgresql.rb
295
285
  - lib/avm/postgresql/instance.rb
296
286
  - lib/avm/postgresql/instance/data_unit.rb
@@ -343,7 +333,6 @@ files:
343
333
  - lib/avm/self/instance/entry_keys.rb
344
334
  - lib/avm/self/root.rb
345
335
  - lib/avm/stereotypes.rb
346
- - lib/avm/sync.rb
347
336
  - lib/avm/tools.rb
348
337
  - lib/avm/tools/app_src.rb
349
338
  - lib/avm/tools/core_ext.rb
@@ -430,12 +419,6 @@ files:
430
419
  - template/avm/ruby/gems/generator/version.template
431
420
  - template/avm/self/docker_image/Dockerfile
432
421
  - template/avm/self/docker_image/entrypoint.sh
433
- - vendor/avm-apps/Gemfile
434
- - vendor/avm-apps/avm-apps.gemspec
435
- - vendor/avm-apps/lib/avm/apps.rb
436
- - vendor/avm-apps/lib/avm/apps/version.rb
437
- - vendor/avm-apps/spec/rubocop_spec.rb
438
- - vendor/avm-apps/spec/spec_helper.rb
439
422
  - vendor/avm-eac_asciidoctor_base0/Gemfile
440
423
  - vendor/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec
441
424
  - vendor/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb
@@ -516,12 +499,14 @@ files:
516
499
  - vendor/avm/Gemfile
517
500
  - vendor/avm/avm.gemspec
518
501
  - 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
502
+ - vendor/avm/lib/avm/data/instance.rb
503
+ - vendor/avm/lib/avm/data/instance/files_unit.rb
504
+ - vendor/avm/lib/avm/data/instance/package.rb
505
+ - vendor/avm/lib/avm/data/instance/unit.rb
506
+ - vendor/avm/lib/avm/data/package.rb
507
+ - vendor/avm/lib/avm/data/package/dump.rb
508
+ - vendor/avm/lib/avm/data/package/load.rb
509
+ - vendor/avm/lib/avm/data/unit.rb
525
510
  - vendor/avm/lib/avm/docker.rb
526
511
  - vendor/avm/lib/avm/docker/container.rb
527
512
  - vendor/avm/lib/avm/docker/image.rb
@@ -594,7 +579,15 @@ files:
594
579
  - vendor/avm/lib/avm/jobs.rb
595
580
  - vendor/avm/lib/avm/jobs/base.rb
596
581
  - vendor/avm/lib/avm/jobs/variables_source.rb
582
+ - vendor/avm/lib/avm/path_string.rb
597
583
  - vendor/avm/lib/avm/result.rb
584
+ - vendor/avm/lib/avm/sources.rb
585
+ - vendor/avm/lib/avm/sources/base.rb
586
+ - vendor/avm/lib/avm/sources/configuration.rb
587
+ - vendor/avm/lib/avm/sources/configuration/_locale.rb
588
+ - vendor/avm/lib/avm/sources/configuration/_rubocop.rb
589
+ - vendor/avm/lib/avm/sources/configuration/_tests.rb
590
+ - vendor/avm/lib/avm/sync.rb
598
591
  - vendor/avm/lib/avm/version.rb
599
592
  - vendor/avm/lib/avm/version_number.rb
600
593
  - vendor/avm/spec/lib/avm/git/auto_commit_path_spec.rb
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/self'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- class Object
7
- class << self
8
- def avm_fs_cache
9
- ::Avm::Self.application.fs_cache.child(name.variableize)
10
- end
11
- end
12
-
13
- def avm_fs_cache
14
- self.class.avm_fs_cache.child(avm_fs_cache_object_id)
15
- end
16
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- $LOAD_PATH.push File.expand_path('lib', __dir__)
4
-
5
- require 'avm/apps/version'
6
-
7
- Gem::Specification.new do |s|
8
- s.name = 'avm-apps'
9
- s.version = Avm::Apps::VERSION
10
- s.authors = ['Eduardo H. Bogoni']
11
- s.summary = 'DEPRECATED: use gem "avm" instead.'
12
-
13
- s.files = Dir['{lib}/**/*']
14
-
15
- s.add_dependency 'eac_ruby_utils', '~> 0.67'
16
-
17
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
18
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Apps
5
- VERSION = '0.5.0'
6
- end
7
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module Apps
7
- require_sub __FILE__
8
- end
9
- end
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/rspec/default_setup'
4
- ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))