avm-eac_ruby_base1 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcda8279f908485e97b4e7a02b8b61fa518188e05876c173561792163c53f375
|
4
|
+
data.tar.gz: 77825a5d085b3c33ff403bbc23e06ed66ef228ec2e9301030692e5ad947fd724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec7c1e7173c9c3cf664448aab39f7651980170398481b0a3ab3419da34545775926b9503bd9d5fc8ae143ec13256a228de2bc23162c32c37b4f53716b57762df
|
7
|
+
data.tar.gz: 73c3e04f5522c3c9be09ead664456879b2891e40ae841d71dcd4fe40422bd3041b554378d2687284430b61ec93f1b41075714b7be16b5a847712664ab35ddf9c
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_ruby_base1/rubocop'
|
4
|
+
require 'eac_cli/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRubyBase1
|
8
|
+
module Runners
|
9
|
+
class Base
|
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
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/runners/base'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacRubyBase1
|
7
|
+
module Runners
|
8
|
+
class Base < ::Avm::Runners::Base
|
9
|
+
require_sub __FILE__
|
10
|
+
|
11
|
+
runner_with :help, :subcommands do
|
12
|
+
desc 'Ruby utilities for AVM.'
|
13
|
+
subcommands
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_ruby_base1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -121,6 +121,9 @@ files:
|
|
121
121
|
- lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb
|
122
122
|
- lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb
|
123
123
|
- lib/avm/eac_ruby_base1/rubygems/version_file.rb
|
124
|
+
- lib/avm/eac_ruby_base1/runners.rb
|
125
|
+
- lib/avm/eac_ruby_base1/runners/base.rb
|
126
|
+
- lib/avm/eac_ruby_base1/runners/base/rubocop.rb
|
124
127
|
- lib/avm/eac_ruby_base1/source_generators.rb
|
125
128
|
- lib/avm/eac_ruby_base1/source_generators/base.rb
|
126
129
|
- lib/avm/eac_ruby_base1/sources.rb
|