autowow 0.7.0 → 0.8.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
  SHA1:
3
- metadata.gz: 289ce64a634f3297f81da70a511249754e54f685
4
- data.tar.gz: 38c90399124d04ec9edbb2df02dafcd2256f3fb9
3
+ metadata.gz: 4b3309f619ca4baf499219fd8e1e04d8e8247004
4
+ data.tar.gz: 438a31345e2e097e5d761873d8a6c59b73b259b7
5
5
  SHA512:
6
- metadata.gz: f58cc3df543c4526912bd6d6b85beef61b83c373b479798ca5066199121d097a6c4f6552b85e0710784b53f11627f0df324c487ae83f21446c7d6f2c9c559d39
7
- data.tar.gz: 588ce7f67c9e6b3c3d2448bb2c2a847d78c8df845b828d4989afcbf489ea14b460175bcb95e0ad487f9a55f06616d6997ed3574b19f30a03e4652ad76f292e7d
6
+ metadata.gz: 50ac03ebad0a1874e197830b08450edddbd8ffec1019a8de7394531b57dfa938e7d3f129bc3173ddf09b8dde629387f63c30b2b258218c2ccfa44a2b0d61d0d0
7
+ data.tar.gz: 474a4fd4be7b9acf1dd33b938c40a627cda7a3ac846e7af17ceefa5f85569314e9e14fdc61e0cc7791e68e185a5da6a8b3eb9bf12768be0bc1153d78d70407b8
data/README.md CHANGED
@@ -97,7 +97,6 @@ Prerequisites: on master
97
97
  #### Rubocop parallel autocorrect
98
98
 
99
99
  * Runs `rubocop` in parallel mode, autocorrects offenses on single thread
100
- * *Experimental feature, in practice it is not faster than running `rubocop -a`!*
101
100
 
102
101
  ### Ruby
103
102
 
@@ -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
 
@@ -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]*):}) }.map{ |line| line.split(':')[0] }.uniq
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
@@ -1,3 +1,3 @@
1
1
  module Autowow
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
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.7.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-26 00:00:00.000000000 Z
11
+ date: 2017-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: easy_logging