Fix Guard.locate_guard to return path to gem folder

This commit is contained in:
brainopia 2011-04-16 23:43:50 +04:00
parent e13bde0411
commit 097ce1f17e

View File

@ -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