From 96a6d3533c36a69638918207c30a625db9f51e1e Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sun, 6 Sep 2015 10:26:41 +0200 Subject: [PATCH] Replace the inotify library by rb-inotify --- rubberin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rubberin b/rubberin index 1d5ef2d..4b3c91b 100755 --- a/rubberin +++ b/rubberin @@ -29,7 +29,7 @@ # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA require 'getoptlong' -require 'inotify' +require 'rb-inotify' require 'pathname' # Small necessary Pathname class extension. @@ -186,7 +186,7 @@ end ## Main event loop # Add input file with dependancies to the watch list and start event loop. -i = Inotify.new +i = INotify::Notifier.new dirs = files.map { |file| File.dirname(file) } dirmap = {} dirs.each do |dir|