Skip to content

Commit

Permalink
correct vendor semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Dec 10, 2011
1 parent 4b40086 commit 8516620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/guard/listeners/linux.rb
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/guard/listeners/windows.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8516620

Please sign in to comment.