From 11cd5be441b15fe945a4ce5a20f1c1d30680255e Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 22 Jun 2018 23:13:37 +0200 Subject: [PATCH] Againt, the directory is a Pathname object now --- rubberin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rubberin b/rubberin index 80eb576..09a0651 100755 --- a/rubberin +++ b/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