bin/inotify_watch in rspactor-0.7.0.beta.3 vs bin/inotify_watch in rspactor-0.7.0.beta.4
- old
+ new
@@ -1,7 +1,6 @@
#!/usr/bin/env ruby
-
require 'rubygems'
require 'rb-inotify'
folders = Array.new
notifier = INotify::Notifier.new
@@ -13,15 +12,14 @@
end
end
while true do
notifier.process
-
+
if !folders.empty?
$stdout.puts folders.join(' ')
$stdout.flush
folders.clear
end
-
+
sleep(0.5)
-end
-
+end
\ No newline at end of file