Permalink
Browse files

Fix --no-vendor flag.

The reason for this change is that Thor::CoreExt::HashWithIndifferentAccess
does not implement `key?`.
  • Loading branch information...
netzpirat committed Dec 19, 2011
1 parent 9cb0fdd commit 28f3e8d144744be6e3940252989cf83aeff337ae
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/guard/listener.rb
View
@@ -33,10 +33,10 @@ def paused?
# @return [Guard::Listener] the chosen listener
#
def self.select_and_init(options = nil)
- watchdir = options && options.key?(:watchdir) && File.expand_path(options[:watchdir])
+ watchdir = options && options[:watchdir] && File.expand_path(options[:watchdir])
watchdir = Dir.pwd unless watchdir
- no_vendor = options && options.key?(:no_vendor) ? options[:no_vendor] : false
+ no_vendor = options && options[:no_vendor] ? options[:no_vendor] : false
if mac? && Darwin.usable?(no_vendor)
Darwin.new(watchdir, options)

0 comments on commit 28f3e8d

Please sign in to comment.