lib/komplement/base.rb in komplement-0.1.1 vs lib/komplement/base.rb in komplement-0.1.2

- old
+ new

@@ -24,12 +24,11 @@ self end # returns 0 on no offenses, else 2 def run - unknown = find_offenses - exit process_output(unknown) + process_output(find_offenses) end def find_offenses [@ignored_elements, @filetypes, @dirs].map { |e| e.uniq! } @@ -77,10 +76,10 @@ end # @param unknown_h are the unknown elements that may have been detected def process_output(unknown_h) if unknown_h.empty? - $stderr.puts 'No problematic html found'.green.bold + $stdout.puts 'No problematic html found'.green.bold return EXIT_SUCCESS end $stderr.puts 'ERROR: Detected possible unknown components:'.red.bold