lib/fontcustom/watcher.rb in fontcustom-1.3.8 vs lib/fontcustom/watcher.rb in fontcustom-2.0.0

- old
+ new

@@ -37,10 +37,10 @@ listen_options[:only] = /(#{templates.join("|")}|.+\.svg)$/ @listener = Listen.to(listen_dirs, listen_options, &callback) else listen_options[:filter] = /(#{templates.join("|")}|.+\.svg)$/ listen_options[:relative_paths] = true - @listener = Listen::Listener.new(listen_dirs, listen_options, &callback) + @listener = Listen::Listener.new(*listen_dirs, listen_options, &callback) end end def start if @is_test # Non-blocking listener