Againt, the directory is a Pathname object now
This commit is contained in:
parent
3a5609a5a3
commit
11cd5be441
2
rubberin
2
rubberin
|
@ -191,7 +191,7 @@ notifier = INotify::Notifier.new
|
|||
dirs = files.map { |file| Pathname.new(file).dirname.realpath }.uniq
|
||||
dirs.each do |dir|
|
||||
# Set up a watch per directory
|
||||
notifier.watch(dir, :close_write) do |ev|
|
||||
notifier.watch(dir.to_s, :close_write) do |ev|
|
||||
# Only compile if a dependency of the input file has been modified
|
||||
file_path = (dir + ev.name).to_s
|
||||
next unless files.include? file_path
|
||||
|
|
Loading…
Reference in New Issue