The directory is a Pathname object now; set the correct file path
This commit is contained in:
parent
49991c8924
commit
34bd63ca3d
3
rubberin
3
rubberin
|
@ -193,7 +193,8 @@ dirs.each do |dir|
|
|||
# Set up a watch per directory
|
||||
notifier.watch(dir, :close_write) do |ev|
|
||||
# Only compile if a dependency of the input file has been modified
|
||||
next unless files.include?(dir + "/" + ev.name)
|
||||
file_path = (dir + ev.name).to_s
|
||||
next unless files.include? file_path
|
||||
puts "I: file #{ev.name} modified, compiling #{infile}..."
|
||||
compile(infile, mode)
|
||||
reload(infile, mode)
|
||||
|
|
Loading…
Reference in New Issue