avm-tools 0.151.0 → 0.152.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c60d219cf0cd61916b844199ecf17b1e097a24831776d6b4269affecfc3a482d
4
- data.tar.gz: c92fc021d025e424f14c0a39cde75e8441bead7ec59a9eb89fe1165b557cc8d7
3
+ metadata.gz: 6c3e4f132b4dc06b40e68473f774ccac26e4465e7ec786341cec7343217df546
4
+ data.tar.gz: bb960d0332e0403c2e256e59e0ec75093181be97ece5d1eb5217030ca03af9a9
5
5
  SHA512:
6
- metadata.gz: 382924d03ba66a9b11f54caed5fc5ec47944b279b6b87a95efa97e77aeb89586fd8c737b34185920e18c6c5019bfd3b82d7203f275add9a5e92240e9daab1504
7
- data.tar.gz: f237e441c5abd9ac5e5a41e77074391d7df475c2f85029725f34d433dac02a35968bdeab5846426bb537eb499a49c449768e7dba846a71b4fcfaf172d2cd3737
6
+ metadata.gz: 9c2d30fe14255eeeaeb42cc4137acdc63bc4adba1ffac7a16f6c6c214efe2984e5c449ad040ea9ee2ede8ad3bb96777901e2fa05684b151efb0f688be52a5da2
7
+ data.tar.gz: 812f9b4e0a76f14c7d977d932148c2871f84b46c3e5c12661a0cbf35248eae81f633965ba0350b7a8aa7f55ad1c46a1242ed6a72a896d12f9a410573fd5ba24b
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/tools/core_ext'
4
+
5
+ module Avm
6
+ module Tools
7
+ class Runner
8
+ class Applications
9
+ class List
10
+ runner_with :help, :output
11
+
12
+ def run
13
+ infov 'Found', applications.count
14
+ run_output
15
+ end
16
+
17
+ def output_content
18
+ applications.map { |s| "#{s}\n" }.join
19
+ end
20
+
21
+ private
22
+
23
+ def applications_uncached
24
+ ::Avm::Registry.applications.available
25
+ .sort_by { |s| [s.id] }
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_cli/core_ext'
4
+
5
+ module Avm
6
+ module Tools
7
+ class Runner
8
+ class Applications
9
+ require_sub __FILE__
10
+ runner_with :help, :subcommands do
11
+ subcommands
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -12,6 +12,11 @@ module Avm
12
12
  runner_with :help, :include_exclude, :instance_data_load do
13
13
  desc 'Load utility for instance.'
14
14
  end
15
+
16
+ # @return [Avm::Instances::Data::Package]
17
+ def source_instance_data_owner
18
+ source_instance.data_package
19
+ end
15
20
  end
16
21
  end
17
22
  end
@@ -11,6 +11,11 @@ module Avm
11
11
  class Unit
12
12
  class Load
13
13
  runner_with :help, :instance_data_load
14
+
15
+ # @return [Avm::Instances::Data::Unit]
16
+ def source_instance_data_owner
17
+ source_instance.data_package.unit(data_owner.identifier)
18
+ end
14
19
  end
15
20
  end
16
21
  end
@@ -28,14 +28,10 @@ module Avm
28
28
  end
29
29
 
30
30
  def entry_keys_banner
31
- ::Avm::Instances::EntryKeys.all.each do |key|
31
+ instance.entry_keys.each do |key|
32
32
  infov key, instance.read_entry_optional(key)
33
33
  end
34
34
  end
35
-
36
- def instance
37
- runner_context.call(:instance)
38
- end
39
35
  end
40
36
  end
41
37
  end
@@ -53,7 +53,7 @@ module Avm
53
53
  # @return [Avm::Data::Dumper]
54
54
  def source_instance_dumper
55
55
  data_performer_set_includes_excludes(
56
- ::Avm::Data::Dumper.new(source_instance.data_package).overwrite(parsed.rewrite?)
56
+ ::Avm::Data::Dumper.new(source_instance_data_owner).overwrite(parsed.rewrite?)
57
57
  )
58
58
  end
59
59
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.151.0'
5
+ VERSION = '0.152.0'
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.151.0
4
+ version: 0.152.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: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2023-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.19'
19
+ version: '0.21'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.19'
26
+ version: '0.21'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.75'
33
+ version: '0.78'
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.75'
40
+ version: '0.78'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_ruby_base1
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -64,20 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.4'
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: 0.4.3
67
+ version: '0.5'
71
68
  type: :runtime
72
69
  prerelease: false
73
70
  version_requirements: !ruby/object:Gem::Requirement
74
71
  requirements:
75
72
  - - "~>"
76
73
  - !ruby/object:Gem::Version
77
- version: '0.4'
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: 0.4.3
74
+ version: '0.5'
81
75
  - !ruby/object:Gem::Dependency
82
76
  name: avm-files
83
77
  requirement: !ruby/object:Gem::Requirement
@@ -263,6 +257,8 @@ files:
263
257
  - lib/avm/tools/runner.rb
264
258
  - lib/avm/tools/runner/application_stereotypes.rb
265
259
  - lib/avm/tools/runner/application_stereotypes/list.rb
260
+ - lib/avm/tools/runner/applications.rb
261
+ - lib/avm/tools/runner/applications/list.rb
266
262
  - lib/avm/tools/runner/config.rb
267
263
  - lib/avm/tools/runner/config/load_path.rb
268
264
  - lib/avm/tools/runner/files.rb