diff --git a/lib/guard/listeners/linux.rb b/lib/guard/listeners/linux.rb index 9123d5649..7cf2bdd65 100644 --- a/lib/guard/listeners/linux.rb +++ b/lib/guard/listeners/linux.rb @@ -32,8 +32,8 @@ def stop # # @return [Boolean] whether usable or not # - def self.usable?(use_vendor = true) - $LOAD_PATH << File.expand_path('../../../vendor/linux/lib', __FILE__) if use_vendor + def self.usable?(no_vendor = false) + $LOAD_PATH << File.expand_path('../../../vendor/linux/lib', __FILE__) unless no_vendor require 'rb-inotify' true rescue LoadError diff --git a/lib/guard/listeners/windows.rb b/lib/guard/listeners/windows.rb index 53fe48d8c..c4cb1c12b 100644 --- a/lib/guard/listeners/windows.rb +++ b/lib/guard/listeners/windows.rb @@ -29,8 +29,8 @@ def stop # # @return [Boolean] whether usable or not # - def self.usable?(use_vendor = true) - $LOAD_PATH << File.expand_path('../../../vendor/windows/lib', __FILE__) if use_vendor + def self.usable?(no_vendor = false) + $LOAD_PATH << File.expand_path('../../../vendor/windows/lib', __FILE__) unless no_vendor require 'rb-fchange' true rescue LoadError