Fixed watch block without params on 1.9.2
This commit is contained in:
parent
0e4d75eda2
commit
bc5cc10d42
@ -12,11 +12,10 @@ module Guard
|
|||||||
if matches = file.match(watcher.pattern)
|
if matches = file.match(watcher.pattern)
|
||||||
if watcher.action
|
if watcher.action
|
||||||
begin
|
begin
|
||||||
case watcher.action.arity
|
if watcher.action.arity == 1
|
||||||
when -1
|
|
||||||
result = watcher.action.call
|
|
||||||
when 1
|
|
||||||
result = watcher.action.call(matches)
|
result = watcher.action.call(matches)
|
||||||
|
else
|
||||||
|
result = watcher.action.call
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
UI.info "Problem with watch action"
|
UI.info "Problem with watch action"
|
||||||
|
Loading…
Reference in New Issue
Block a user