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.
- checksums.yaml +4 -4
- data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +2 -2
- data/lib/avm/ruby/rubocop/_configured.rb +2 -2
- data/lib/avm/tools/app_src.rb +5 -5
- data/lib/avm/tools/runner/app_src/ruby/bundler/incompatible.rb +2 -2
- data/lib/avm/tools/runner/config/load_path.rb +8 -3
- data/lib/avm/tools/runner.rb +0 -4
- data/lib/avm/tools/version.rb +1 -1
- data/{lib → vendor/avm/lib}/avm/data/instance/files_unit.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/instance/package.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/instance/unit.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/instance.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/package/dump.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/package/load.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/package.rb +0 -0
- data/{lib → vendor/avm/lib}/avm/data/unit.rb +0 -0
- data/vendor/avm/lib/avm/git/issue/complete/test.rb +2 -2
- data/{lib → vendor/avm/lib}/avm/path_string.rb +0 -0
- data/vendor/avm/lib/avm/{app_src → sources}/base.rb +3 -3
- data/vendor/avm/lib/avm/{app_src → sources}/configuration/_locale.rb +1 -1
- data/vendor/avm/lib/avm/{app_src → sources}/configuration/_rubocop.rb +1 -1
- data/vendor/avm/lib/avm/{app_src → sources}/configuration/_tests.rb +1 -1
- data/vendor/avm/lib/avm/{app_src → sources}/configuration.rb +1 -1
- data/vendor/avm/lib/avm/{app_src.rb → sources.rb} +1 -1
- data/{lib → vendor/avm/lib}/avm/sync.rb +0 -0
- data/vendor/avm/lib/avm/version.rb +1 -1
- data/vendor/eac_cli/lib/eac_cli/config.rb +6 -3
- data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
- data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +6 -1
- data/vendor/eac_fs/lib/eac_fs/version.rb +1 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +2 -2
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +1 -1
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- metadata +18 -25
- data/lib/avm/patches/object/fs_cache.rb +0 -16
- data/vendor/avm-apps/Gemfile +0 -5
- data/vendor/avm-apps/avm-apps.gemspec +0 -18
- data/vendor/avm-apps/lib/avm/apps/version.rb +0 -7
- data/vendor/avm-apps/lib/avm/apps.rb +0 -9
- data/vendor/avm-apps/spec/rubocop_spec.rb +0 -3
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2aa6c6cff787569f6631e98dc1bb02e19e37358bffabdd12c770af457e4bf50
|
4
|
+
data.tar.gz: e324057b567e115c8449e3db04e82cf51955020539779e2d4928ede0338592c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8b1b1fd688eef382e3d483ffa6fa5af94bc6d334c944d2772774b55eacd87c63f56306121fe58e8e4254c4e09e3cf3d055b1c941991ce30cd418096418dba0e
|
7
|
+
data.tar.gz: 81e7f566f5cc5e0a202440343b3318b934d15258cb02662ab39fe708b458cac5365e07d01b05834da0263840e1e49b86283534139ebbb4f582f4ff11499b729f
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/
|
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::
|
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/
|
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::
|
25
|
+
::Avm::Sources::Configuration.find_by_path(base_path)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/avm/tools/app_src.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/
|
4
|
-
require 'avm/
|
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::
|
39
|
+
::Avm::Sources::Base.new(path)
|
40
40
|
end
|
41
41
|
|
42
|
-
# @return [Avm::
|
42
|
+
# @return [Avm::Sources::Configuration]
|
43
43
|
def configuration_uncached
|
44
|
-
::Avm::
|
44
|
+
::Avm::Sources::Configuration.find_in_path(path)
|
45
45
|
end
|
46
46
|
|
47
47
|
def stereotypes_jobs(job, job_args)
|
@@ -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
|
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|
|
data/lib/avm/tools/runner.rb
CHANGED
data/lib/avm/tools/version.rb
CHANGED
File without changes
|
File without changes
|
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/
|
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::
|
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
|
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::
|
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::
|
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) }
|
File without changes
|
@@ -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
|
-
|
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
|
@@ -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
|
@@ -43,8 +43,8 @@ module EacRubyBase0
|
|
43
43
|
delegate "#{item}_xdg_env", "#{item}_dir", to: :app_xdg
|
44
44
|
end
|
45
45
|
|
46
|
-
def
|
47
|
-
@
|
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.
|
43
|
+
::EacFs::Cache.context.on(application.self_fs_cache) do
|
44
44
|
yield
|
45
45
|
end
|
46
46
|
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.
|
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-
|
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/
|
520
|
-
- vendor/avm/lib/avm/
|
521
|
-
- vendor/avm/lib/avm/
|
522
|
-
- vendor/avm/lib/avm/
|
523
|
-
- vendor/avm/lib/avm/
|
524
|
-
- vendor/avm/lib/avm/
|
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
|
data/vendor/avm-apps/Gemfile
DELETED
@@ -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
|