avm-tools 0.132.1 → 0.135.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: '08a81b50cd1bf5c55111bec548c8583f3e8a1ddfacab08cc983707f8f8380bb0'
4
- data.tar.gz: c4c7ddfe8a508964adeb2e5256cf085d16feb3da88b5a47945db4e6df17948ea
3
+ metadata.gz: 1716cf31b63e76f9f79f00d2bc981ba9f288710cd34c5e06662b2cfeac936450
4
+ data.tar.gz: 1de18f50ea2eea414ad1a52ae59d289004ecb875e8df0332400fe0524c9ba71c
5
5
  SHA512:
6
- metadata.gz: 62054f4e9e66b8306bf0bf24bc4682ac16e934b3f9da98745932fa8ee9ffa7b545cdb2813fd241370f37362b08e0882131eca8a55d7a537cc9b98dd7f95f2487
7
- data.tar.gz: f49941554972dfe9fa7b0de0a6e8b6c6a60d4b8a3cf6c85b548ad7f594885c7596d9928371904dfbe9391e705498d80b79b4b97148c0a6300c134c59ef4b1791
6
+ metadata.gz: 4cf88d5fd90e67a2551ed95ff8d45cbc301b47fe20ac0c3b365e6a5e63e1bd3b2bd81d18618934251a586c0393fd6676b60667fff1288352d145d3d4d64db869
7
+ data.tar.gz: 340cb672f4a8f4f6bab98adc06db57bd64ca854ee4b492ac30056ac975cddf2278e0f62aae4cef4f693c351499ac141c8238408773f99a83fea98a7b1b7ab797
@@ -7,6 +7,13 @@ module Avm
7
7
  class Runner
8
8
  class AppSrc
9
9
  class Info
10
+ SOURCE_PROPERTIES = {
11
+ path: 'Path',
12
+ application: 'Application',
13
+ class: 'Stereotype',
14
+ scm: 'SCM'
15
+ }.freeze
16
+
10
17
  runner_with :help do
11
18
  desc 'Show information about local project instance.'
12
19
  bool_opt '-p', '--parent', 'Show the parent source.'
@@ -14,7 +21,6 @@ module Avm
14
21
  end
15
22
 
16
23
  def run
17
- show_instance
18
24
  show_source
19
25
  show_parent
20
26
  show_test_commands
@@ -22,11 +28,6 @@ module Avm
22
28
 
23
29
  private
24
30
 
25
- def show_instance
26
- infov 'Path', instance.path
27
- infov 'Launcher stereotypes', instance.stereotypes.map(&:label).join(', ')
28
- end
29
-
30
31
  def show_parent
31
32
  return unless parsed.parent?
32
33
 
@@ -34,8 +35,9 @@ module Avm
34
35
  end
35
36
 
36
37
  def show_source
37
- infov 'Stereotype', runner_context.call(:subject).class
38
- infov 'SCM', runner_context.call(:subject).scm
38
+ SOURCE_PROPERTIES.each do |property, label|
39
+ infov label, runner_context.call(:subject).send(property)
40
+ end
39
41
  end
40
42
 
41
43
  def show_test_commands
@@ -71,7 +71,7 @@ module Avm
71
71
  def dev_instance_fs_path
72
72
  instance.if_present do |v|
73
73
  v.application.instance('dev').read_entry_optional(
74
- ::Avm::Instances::EntryKeys::FS_PATH
74
+ ::Avm::Instances::EntryKeys::INSTALL_PATH
75
75
  )
76
76
  end
77
77
  end
@@ -86,7 +86,7 @@ module Avm
86
86
 
87
87
  def target_url
88
88
  parsed.target_url.if_present { |v| return v }
89
- instance.if_present { |v| return v.read_entry(::Avm::Instances::EntryKeys::FS_URL) }
89
+ instance.if_present { |v| return v.install_url }
90
90
  nil
91
91
  end
92
92
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.132.1'
5
+ VERSION = '0.135.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.132.1
4
+ version: 0.135.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: 2022-08-11 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -36,34 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.35'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 0.35.1
39
+ version: '0.41'
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
44
  - - "~>"
48
45
  - !ruby/object:Gem::Version
49
- version: '0.35'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 0.35.1
46
+ version: '0.41'
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: avm-eac_ruby_base1
55
49
  requirement: !ruby/object:Gem::Requirement
56
50
  requirements:
57
51
  - - "~>"
58
52
  - !ruby/object:Gem::Version
59
- version: '0.19'
53
+ version: '0.20'
60
54
  type: :runtime
61
55
  prerelease: false
62
56
  version_requirements: !ruby/object:Gem::Requirement
63
57
  requirements:
64
58
  - - "~>"
65
59
  - !ruby/object:Gem::Version
66
- version: '0.19'
60
+ version: '0.20'
67
61
  - !ruby/object:Gem::Dependency
68
62
  name: avm-eac_ubuntu_base0
69
63
  requirement: !ruby/object:Gem::Requirement
@@ -161,7 +155,7 @@ dependencies:
161
155
  version: '0.12'
162
156
  - - ">="
163
157
  - !ruby/object:Gem::Version
164
- version: 0.12.1
158
+ version: 0.12.2
165
159
  type: :runtime
166
160
  prerelease: false
167
161
  version_requirements: !ruby/object:Gem::Requirement
@@ -171,7 +165,7 @@ dependencies:
171
165
  version: '0.12'
172
166
  - - ">="
173
167
  - !ruby/object:Gem::Version
174
- version: 0.12.1
168
+ version: 0.12.2
175
169
  - !ruby/object:Gem::Dependency
176
170
  name: eac_ruby_base0
177
171
  requirement: !ruby/object:Gem::Requirement
@@ -218,14 +212,14 @@ dependencies:
218
212
  requirements:
219
213
  - - "~>"
220
214
  - !ruby/object:Gem::Version
221
- version: '1.11'
215
+ version: '1.12'
222
216
  type: :runtime
223
217
  prerelease: false
224
218
  version_requirements: !ruby/object:Gem::Requirement
225
219
  requirements:
226
220
  - - "~>"
227
221
  - !ruby/object:Gem::Version
228
- version: '1.11'
222
+ version: '1.12'
229
223
  - !ruby/object:Gem::Dependency
230
224
  name: ruby-progressbar
231
225
  requirement: !ruby/object:Gem::Requirement