Convert latency
option to a Fixnum (#1928)
As @vill pointed out in https://github.com/middleman/middleman/issues/1866#issuecomment-222869287 passing `--watcher-latency=2` fails because the gem `listen` expects `latency` to be an `Fixnum`. This commit fixes this issue.
This commit is contained in:
parent
e8f10fe3c2
commit
1581bfc27e
|
@ -163,7 +163,7 @@ module Middleman
|
||||||
wait_for_delay: 0.5
|
wait_for_delay: 0.5
|
||||||
}
|
}
|
||||||
|
|
||||||
config[:latency] = @latency if @latency
|
config[:latency] = @latency.to_i if @latency
|
||||||
|
|
||||||
@listener = ::Listen.to(@directory.to_s, config, &method(:on_listener_change))
|
@listener = ::Listen.to(@directory.to_s, config, &method(:on_listener_change))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue