diff --git a/lib/guard.rb b/lib/guard.rb index 38d90cc..65dd42a 100644 --- a/lib/guard.rb +++ b/lib/guard.rb @@ -91,7 +91,7 @@ module Guard 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