Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to use colorize gem #451

Merged
merged 1 commit into from
Sep 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion html-proofer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |gem|

gem.add_dependency 'mercenary', '~> 0.3.2'
gem.add_dependency 'nokogiri', '~> 1.7'
gem.add_dependency 'colored', '~> 1.2'
gem.add_dependency 'colorize', '~> 0.8'
gem.add_dependency 'typhoeus', '~> 0.7'
gem.add_dependency 'yell', '~> 2.0'
gem.add_dependency 'parallel', '~> 1.3'
Expand Down
4 changes: 2 additions & 2 deletions lib/html-proofer/log.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'yell'
require 'colored'
require 'colorized_string'

module HTMLProofer
class Log
Expand Down Expand Up @@ -35,7 +35,7 @@ def log_with_color(level, color, message)

def colorize(color, message)
if $stdout.isatty && $stderr.isatty
Colored.colorize(message, foreground: color)
ColorizedString.new(message).colorize(color)
else
message
end
Expand Down