avm-tools 0.131.0 → 0.133.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/tools/runner/app_src/info.rb +10 -8
- data/lib/avm/tools/runner/instance.rb +3 -1
- data/lib/avm/tools/version.rb +1 -1
- metadata +48 -39
- data/lib/avm/tools/runner/ruby/rubocop.rb +0 -30
- data/lib/avm/tools/runner/ruby.rb +0 -17
- data/template/avm/eac_writings_base0/deploy/index.html.template +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46de4f5a41abb4eb674f4326a0757800170ad415ee9a93403fb15079a78070d6
|
4
|
+
data.tar.gz: e6af85c9d1951e75df3e2ebbf5f5b33dfa4ed6a0ac29e313104b3d3412ed0777
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98357969b089398fdc785ba44920cb79abf232049a72037cfc049ae8f1b6941184ecec0ccf477b8a112245ea54d67bb42bd1ac8c4c1dc79e64e53e56e8a960bc
|
7
|
+
data.tar.gz: c5776ff8b13933d20e16d46f4033ec7f49446710e30360f1444935f51d8bbe66bb18b7ee822bd7934b42d45d5c79ec071a9cabb5c7dde23b1e9feb0429bbfc35
|
@@ -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
|
-
|
38
|
-
|
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
|
data/lib/avm/tools/version.rb
CHANGED
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.133.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
|
+
date: 2022-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -16,42 +16,54 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.14'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.14.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
29
|
+
version: '0.14'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.14.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: avm
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
39
|
+
version: '0.37'
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
46
|
+
version: '0.37'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: avm-eac_ruby_base1
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
53
|
+
version: '0.19'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.19.1
|
48
57
|
type: :runtime
|
49
58
|
prerelease: false
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
51
60
|
requirements:
|
52
61
|
- - "~>"
|
53
62
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
63
|
+
version: '0.19'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 0.19.1
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: avm-eac_ubuntu_base0
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,34 +84,34 @@ dependencies:
|
|
72
84
|
requirements:
|
73
85
|
- - "~>"
|
74
86
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
87
|
+
version: '0.3'
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 0.3.2
|
76
91
|
type: :runtime
|
77
92
|
prerelease: false
|
78
93
|
version_requirements: !ruby/object:Gem::Requirement
|
79
94
|
requirements:
|
80
95
|
- - "~>"
|
81
96
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
97
|
+
version: '0.3'
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.3.2
|
83
101
|
- !ruby/object:Gem::Dependency
|
84
102
|
name: avm-git
|
85
103
|
requirement: !ruby/object:Gem::Requirement
|
86
104
|
requirements:
|
87
105
|
- - "~>"
|
88
106
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 0.3.1
|
107
|
+
version: '0.4'
|
93
108
|
type: :runtime
|
94
109
|
prerelease: false
|
95
110
|
version_requirements: !ruby/object:Gem::Requirement
|
96
111
|
requirements:
|
97
112
|
- - "~>"
|
98
113
|
- !ruby/object:Gem::Version
|
99
|
-
version: '0.
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 0.3.1
|
114
|
+
version: '0.4'
|
103
115
|
- !ruby/object:Gem::Dependency
|
104
116
|
name: clipboard
|
105
117
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +121,7 @@ dependencies:
|
|
109
121
|
version: '1.3'
|
110
122
|
- - ">="
|
111
123
|
- !ruby/object:Gem::Version
|
112
|
-
version: 1.3.
|
124
|
+
version: 1.3.6
|
113
125
|
type: :runtime
|
114
126
|
prerelease: false
|
115
127
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -119,21 +131,27 @@ dependencies:
|
|
119
131
|
version: '1.3'
|
120
132
|
- - ">="
|
121
133
|
- !ruby/object:Gem::Version
|
122
|
-
version: 1.3.
|
134
|
+
version: 1.3.6
|
123
135
|
- !ruby/object:Gem::Dependency
|
124
136
|
name: curb
|
125
137
|
requirement: !ruby/object:Gem::Requirement
|
126
138
|
requirements:
|
127
139
|
- - "~>"
|
128
140
|
- !ruby/object:Gem::Version
|
129
|
-
version: 0.9
|
141
|
+
version: '0.9'
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 0.9.11
|
130
145
|
type: :runtime
|
131
146
|
prerelease: false
|
132
147
|
version_requirements: !ruby/object:Gem::Requirement
|
133
148
|
requirements:
|
134
149
|
- - "~>"
|
135
150
|
- !ruby/object:Gem::Version
|
136
|
-
version: 0.9
|
151
|
+
version: '0.9'
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 0.9.11
|
137
155
|
- !ruby/object:Gem::Dependency
|
138
156
|
name: eac_git
|
139
157
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +161,7 @@ dependencies:
|
|
143
161
|
version: '0.12'
|
144
162
|
- - ">="
|
145
163
|
- !ruby/object:Gem::Version
|
146
|
-
version: 0.12.
|
164
|
+
version: 0.12.2
|
147
165
|
type: :runtime
|
148
166
|
prerelease: false
|
149
167
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -153,7 +171,7 @@ dependencies:
|
|
153
171
|
version: '0.12'
|
154
172
|
- - ">="
|
155
173
|
- !ruby/object:Gem::Version
|
156
|
-
version: 0.12.
|
174
|
+
version: 0.12.2
|
157
175
|
- !ruby/object:Gem::Dependency
|
158
176
|
name: eac_ruby_base0
|
159
177
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,7 +181,7 @@ dependencies:
|
|
163
181
|
version: '0.16'
|
164
182
|
- - ">="
|
165
183
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.16.
|
184
|
+
version: 0.16.6
|
167
185
|
type: :runtime
|
168
186
|
prerelease: false
|
169
187
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -173,7 +191,7 @@ dependencies:
|
|
173
191
|
version: '0.16'
|
174
192
|
- - ">="
|
175
193
|
- !ruby/object:Gem::Version
|
176
|
-
version: 0.16.
|
194
|
+
version: 0.16.6
|
177
195
|
- !ruby/object:Gem::Dependency
|
178
196
|
name: eac_templates
|
179
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,34 +218,28 @@ dependencies:
|
|
200
218
|
requirements:
|
201
219
|
- - "~>"
|
202
220
|
- !ruby/object:Gem::Version
|
203
|
-
version: '1.
|
221
|
+
version: '1.11'
|
204
222
|
type: :runtime
|
205
223
|
prerelease: false
|
206
224
|
version_requirements: !ruby/object:Gem::Requirement
|
207
225
|
requirements:
|
208
226
|
- - "~>"
|
209
227
|
- !ruby/object:Gem::Version
|
210
|
-
version: '1.
|
228
|
+
version: '1.11'
|
211
229
|
- !ruby/object:Gem::Dependency
|
212
230
|
name: ruby-progressbar
|
213
231
|
requirement: !ruby/object:Gem::Requirement
|
214
232
|
requirements:
|
215
233
|
- - "~>"
|
216
234
|
- !ruby/object:Gem::Version
|
217
|
-
version: '1.
|
218
|
-
- - ">="
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
version: 1.10.1
|
235
|
+
version: '1.11'
|
221
236
|
type: :runtime
|
222
237
|
prerelease: false
|
223
238
|
version_requirements: !ruby/object:Gem::Requirement
|
224
239
|
requirements:
|
225
240
|
- - "~>"
|
226
241
|
- !ruby/object:Gem::Version
|
227
|
-
version: '1.
|
228
|
-
- - ">="
|
229
|
-
- !ruby/object:Gem::Version
|
230
|
-
version: 1.10.1
|
242
|
+
version: '1.11'
|
231
243
|
- !ruby/object:Gem::Dependency
|
232
244
|
name: eac_ruby_gem_support
|
233
245
|
requirement: !ruby/object:Gem::Requirement
|
@@ -354,8 +366,6 @@ files:
|
|
354
366
|
- lib/avm/tools/runner/launcher/instances.rb
|
355
367
|
- lib/avm/tools/runner/launcher/projects.rb
|
356
368
|
- lib/avm/tools/runner/launcher/publish.rb
|
357
|
-
- lib/avm/tools/runner/ruby.rb
|
358
|
-
- lib/avm/tools/runner/ruby/rubocop.rb
|
359
369
|
- lib/avm/tools/runner/self.rb
|
360
370
|
- lib/avm/tools/runner/self/docker.rb
|
361
371
|
- lib/avm/tools/runner/self/registry.rb
|
@@ -364,7 +374,6 @@ files:
|
|
364
374
|
- lib/avm/tools/version.rb
|
365
375
|
- locale/en.yml
|
366
376
|
- locale/pt-BR.yml
|
367
|
-
- template/avm/eac_writings_base0/deploy/index.html.template
|
368
377
|
- template/avm/self/docker_image/Dockerfile
|
369
378
|
- template/avm/self/docker_image/entrypoint.sh
|
370
379
|
homepage:
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/tools/core_ext'
|
4
|
-
require 'avm/eac_ruby_base1/rubocop'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module Tools
|
8
|
-
class Runner
|
9
|
-
class Ruby
|
10
|
-
class Rubocop
|
11
|
-
runner_with :help do
|
12
|
-
desc 'Runs Rubocop (https://rubygems.org/gems/rubocop).'
|
13
|
-
arg_opt '-C', 'Caminho para executar o Rubocop [default: .].'
|
14
|
-
pos_arg :rubocop_args, repeat: true, optional: true
|
15
|
-
end
|
16
|
-
|
17
|
-
def run
|
18
|
-
::Avm::EacRubyBase1::Rubocop.new(path, parsed.rubocop_args).run
|
19
|
-
end
|
20
|
-
|
21
|
-
private
|
22
|
-
|
23
|
-
def path
|
24
|
-
::Pathname.new(parsed.c || '.').expand_path
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_cli/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module Tools
|
7
|
-
class Runner
|
8
|
-
class Ruby
|
9
|
-
require_sub __FILE__
|
10
|
-
runner_with :help, :subcommands do
|
11
|
-
desc 'Ruby utilities for AVM.'
|
12
|
-
subcommands
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|