Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Guard.locate_guard to return path to gem folder

  • Loading branch information...
commit 097ce1f17e6f5fd94dbf1d9b45a48931ad4feffb 1 parent e13bde0
@brainopia brainopia authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/guard.rb
View
2  lib/guard.rb
@@ -91,7 +91,7 @@ def get_guard_class(name)
end
def locate_guard(name)
- `gem which guard/#{name}`.chomp
+ Gem.source_index.find_name("guard-#{name}").last.full_gem_path
rescue
UI.error "Could not find 'guard-#{name}' gem path."
end

1 comment on commit 097ce1f

@avdi

Thanks, I was just about to fix this!

Please sign in to comment.
Something went wrong with that request. Please try again.