lib/autowow/features/gem.rb in autowow-0.7.0 vs lib/autowow/features/gem.rb in autowow-0.8.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'pastel' + require_relative '../commands/gem' require_relative 'vcs' module Autowow module Features @@ -27,12 +29,16 @@ def gem_clean pretty_with_output.run(clean) end def rubocop_parallel_autocorrect + pastel = Pastel.new result = pretty_with_output.run!(rubocop_parallel) if result.failed? - filtered = result.out.each_line.select { |line| line.match(%r{(.*):([0-9]*):([0-9]*):}) }.map{ |line| line.split(':')[0] }.uniq + filtered = result.out.each_line.select { |line| line.match(%r{(.*):([0-9]*):([0-9]*):}) } + .map{ |line| line.split(':')[0] } + .uniq + .map{ |line| pastel.strip(line) } pretty_with_output.run(rubocop_autocorrect(filtered)) if filtered.any? end end include ReflectionUtils::CreateModuleFunctions