commit
975444bda3
@ -2,8 +2,9 @@ module Guard
|
|||||||
class Windows < Listener
|
class Windows < Listener
|
||||||
attr_reader :fchange
|
attr_reader :fchange
|
||||||
|
|
||||||
def initialize
|
def initialize(*)
|
||||||
super
|
super
|
||||||
|
|
||||||
@fchange = FChange::Notifier.new
|
@fchange = FChange::Notifier.new
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ module Guard
|
|||||||
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
||||||
require 'Win32/Console/ANSI'
|
require 'Win32/Console/ANSI'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
@color_enabled = false
|
||||||
info "You must 'gem install win32console' to use color on Windows"
|
info "You must 'gem install win32console' to use color on Windows"
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user