Fix Guard.locate_guard to return path to gem folder
This commit is contained in:
parent
e13bde0411
commit
097ce1f17e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user