diff --git a/html-proofer.gemspec b/html-proofer.gemspec index 598719f4..cde63ec1 100644 --- a/html-proofer.gemspec +++ b/html-proofer.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |gem| gem.add_dependency 'mercenary', '~> 0.3.2' gem.add_dependency 'nokogiri', '~> 1.9' - gem.add_dependency 'colorize', '~> 0.8' + gem.add_dependency 'rainbow', '~> 3.0' gem.add_dependency 'typhoeus', '~> 1.3' gem.add_dependency 'yell', '~> 2.0' gem.add_dependency 'parallel', '~> 1.3' diff --git a/lib/html-proofer/log.rb b/lib/html-proofer/log.rb index 8efba826..1a402b38 100644 --- a/lib/html-proofer/log.rb +++ b/lib/html-proofer/log.rb @@ -1,5 +1,5 @@ require 'yell' -require 'colorized_string' +require 'rainbow' module HTMLProofer class Log @@ -17,7 +17,7 @@ def initialize(log_level) def log(level, message) color = case level when :debug - :light_blue + :cyan when :info :blue when :warn @@ -35,7 +35,7 @@ def log_with_color(level, color, message) def colorize(color, message) if $stdout.isatty && $stderr.isatty - ColorizedString.new(message).colorize(color) + Rainbow(message).send(color) else message end