lib/CLIntegracon/formatter.rb in clintegracon-0.8.1 vs lib/CLIntegracon/formatter.rb in clintegracon-0.9.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'colored' +require 'colored2' module CLIntegracon # A LazyString is constructed by a block, but only evaluated when needed class LazyString @@ -149,10 +149,10 @@ description += diff.map do |line| case line when /^\+/ then line.green when /^-/ then line.red else line - end.gsub("\n",'') + end.gsub("\n",'').gsub("\r", '\r') end description << "--- END ".ljust(max_width, '-') description << '' description * "\n" end