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
|
end
|
||||||
|
|
||||||
def locate_guard(name)
|
def locate_guard(name)
|
||||||
`gem which guard/#{name}`.chomp
|
Gem.source_index.find_name("guard-#{name}").last.full_gem_path
|
||||||
rescue
|
rescue
|
||||||
UI.error "Could not find 'guard-#{name}' gem path."
|
UI.error "Could not find 'guard-#{name}' gem path."
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user