Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix "guard init" command #43

Merged
merged 1 commit into from Apr 16, 2011
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
@@ -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