vendor/sass/vendor/fssm/lib/fssm/backends/inotify.rb in haml-3.2.0.alpha.8 vs vendor/sass/vendor/fssm/lib/fssm/backends/inotify.rb in haml-3.2.0.alpha.10
- old
+ new
@@ -3,11 +3,11 @@
def initialize
@notifier = INotify::Notifier.new
end
def add_handler(handler, preload=true)
- @notifier.watch(handler.path.to_s, :recursive, :attrib, :modify, :create,
- :delete, :delete_self, :moved_from, :moved_to, :move_self) do |event|
+ @notifier.watch(handler.path.to_s, :recursive, :attrib, :close_write, :create,
+ :delete, :delete_self, :moved_from, :moved_to, :move_self) do |event|
path = FSSM::Pathname.for(event.absolute_name)
path = path.dirname unless event.name == "" # Event on root directory
handler.refresh(path)
end