diff --git a/rubberin b/rubberin index 3fb521d..9bcfea6 100755 --- a/rubberin +++ b/rubberin @@ -190,7 +190,7 @@ notifier = INotify::Notifier.new dirs = files.map { |file| File.dirname(file) } dirs.each do |dir| # Set up a watch per directory - notifier.watch(dir, :close_write) do + notifier.watch(dir, :close_write) do |ev| puts "I: file #{ev.name} modified, compiling #{infile}..." compile(infile, mode) reload(infile, mode)