Skip to content

Commit

Permalink
Switch to term-ansicolor since colored seems to be abandoned :(
Browse files Browse the repository at this point in the history
  • Loading branch information
infertux committed Jan 3, 2014
1 parent 205ab08 commit b2ffeb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion imap_guard.gemspec
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_dependency 'mail', '~> 2.5.3'
spec.add_dependency 'colored', '~> 1.2'
spec.add_dependency 'term-ansicolor', '~> 1.2.2'

spec.add_development_dependency 'bundler', '~> 1.3'
spec.add_development_dependency 'rake'
Expand Down
5 changes: 3 additions & 2 deletions lib/imap_guard/guard.rb
@@ -1,7 +1,8 @@
require 'net/imap'
require 'ostruct'
require 'mail'
require 'colored'
require 'term/ansicolor'
String.send(:include, Term::ANSIColor)

module ImapGuard
# Guard allows you to process your mailboxes.
Expand Down Expand Up @@ -174,7 +175,7 @@ def settings= settings
raise ArgumentError, "Unknown settings: #{unknown}" unless unknown.empty?

@settings = OpenStruct.new(settings).freeze
puts "DRY-RUN MODE ENABLED".yellow.bold.reversed if @settings.read_only
puts "DRY-RUN MODE ENABLED".yellow.bold.negative if @settings.read_only
end
end
end
Expand Down

0 comments on commit b2ffeb5

Please sign in to comment.