autowow 0.7.0 → 0.8.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 +4 -4
- data/README.md +0 -1
- data/lib/autowow/cli.rb +0 -3
- data/lib/autowow/features/gem.rb +7 -1
- data/lib/autowow/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: 4b3309f619ca4baf499219fd8e1e04d8e8247004
|
4
|
+
data.tar.gz: 438a31345e2e097e5d761873d8a6c59b73b259b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50ac03ebad0a1874e197830b08450edddbd8ffec1019a8de7394531b57dfa938e7d3f129bc3173ddf09b8dde629387f63c30b2b258218c2ccfa44a2b0d61d0d0
|
7
|
+
data.tar.gz: 474a4fd4be7b9acf1dd33b938c40a627cda7a3ac846e7af17ceefa5f85569314e9e14fdc61e0cc7791e68e185a5da6a8b3eb9bf12768be0bc1153d78d70407b8
|
data/README.md
CHANGED
data/lib/autowow/cli.rb
CHANGED
@@ -13,8 +13,6 @@ require_relative 'commands/gem'
|
|
13
13
|
|
14
14
|
module Autowow
|
15
15
|
class CLI < Thor
|
16
|
-
include EasyLogging
|
17
|
-
|
18
16
|
map %w[bm] => :branch_merged
|
19
17
|
map %w[grls] => :gem_release
|
20
18
|
map %w[up] => :update_projects
|
@@ -82,7 +80,6 @@ module Autowow
|
|
82
80
|
|
83
81
|
desc "rubocop_parallel_autocorrect", "runs rubocop in parallel mode, autocorrects offenses on single thread"
|
84
82
|
def rubocop_parallel_autocorrect
|
85
|
-
logger.warn('Experimental feature, in practice it is not faster than running `rubocop -a`!')
|
86
83
|
Autowow::Features::Gem.rubocop_parallel_autocorrect
|
87
84
|
end
|
88
85
|
|
data/lib/autowow/features/gem.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'pastel'
|
2
|
+
|
1
3
|
require_relative '../commands/gem'
|
2
4
|
require_relative 'vcs'
|
3
5
|
|
@@ -29,9 +31,13 @@ module Autowow
|
|
29
31
|
end
|
30
32
|
|
31
33
|
def rubocop_parallel_autocorrect
|
34
|
+
pastel = Pastel.new
|
32
35
|
result = pretty_with_output.run!(rubocop_parallel)
|
33
36
|
if result.failed?
|
34
|
-
filtered = result.out.each_line.select { |line| line.match(%r{(.*):([0-9]*):([0-9]*):}) }
|
37
|
+
filtered = result.out.each_line.select { |line| line.match(%r{(.*):([0-9]*):([0-9]*):}) }
|
38
|
+
.map{ |line| line.split(':')[0] }
|
39
|
+
.uniq
|
40
|
+
.map{ |line| pastel.strip(line) }
|
35
41
|
pretty_with_output.run(rubocop_autocorrect(filtered)) if filtered.any?
|
36
42
|
end
|
37
43
|
end
|
data/lib/autowow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autowow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thisismydesign
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: easy_logging
|