reevoocop 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reevoocop/rake_task.rb +15 -0
- data/lib/reevoocop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5ca4cd33814f9816ee3df2ac47653bf60ee0755
|
4
|
+
data.tar.gz: 29cc517dfaedc79d0afa0fd3d3c473c3fc9716b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e50b1b2667ca9b3b72e4d044158e8bfe3dff3df7e2907e256770f1df4520fe203f038907e1d90f56fbdc4223b31f29b56d3c92187adbd8bd8bf73ea323b6308
|
7
|
+
data.tar.gz: 04c35e3d8853464192bb76606f8c4d56af98620abad37a69965bffdb5eb2876136cb878f520e48a6bb256491cbf17bf2f60aed3a4d01f607fd1399882188f0e6
|
data/lib/reevoocop/rake_task.rb
CHANGED
@@ -4,6 +4,21 @@ require "rubocop/rake_task"
|
|
4
4
|
|
5
5
|
module ReevooCop
|
6
6
|
class RakeTask < RuboCop::RakeTask
|
7
|
+
def initialize(*args, &task_block) # rubocop:disable Metrics/AbcSize
|
8
|
+
setup_ivars(args)
|
9
|
+
|
10
|
+
desc "Run RuboCop" unless ::Rake.application.last_description
|
11
|
+
|
12
|
+
task(name, *args) do |_, task_args|
|
13
|
+
RakeFileUtils.send(:verbose, verbose) do
|
14
|
+
yield(*[self, task_args].slice(0, task_block.arity)) if block_given?
|
15
|
+
run_main_task(verbose)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
setup_subtasks(name, *args, &task_block)
|
20
|
+
end
|
21
|
+
|
7
22
|
def run_cli(verbose, options)
|
8
23
|
require "reevoocop"
|
9
24
|
super(verbose, options)
|
data/lib/reevoocop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reevoocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|