forked from paul/rubberin
Replace the inotify library by rb-inotify
This commit is contained in:
parent
93a3eaf51e
commit
96a6d3533c
4
rubberin
4
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|
|
||||
|
|
Loading…
Reference in New Issue