haml-edge 2.3.150 → 2.3.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.150
1
+ 2.3.151
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.150
1
+ 2.3.151
@@ -5,8 +5,11 @@ module FSSM::Backends
5
5
  end
6
6
 
7
7
  def add_handler(handler, preload=true)
8
- @notifier.watch(handler.path.to_s, :all_events) do |event|
9
- handler.refresh(FSSM::Pathname.for(event.name))
8
+ @notifier.watch(handler.path.to_s, :recursive, :attrib, :modify, :create,
9
+ :delete, :delete_self, :moved_from, :moved_to, :move_self) do |event|
10
+ path = FSSM::Pathname.for(event.absolute_name)
11
+ path = path.dirname unless event.name == "" # Event on root directory
12
+ handler.refresh(path)
10
13
  end
11
14
 
12
15
  handler.refresh(nil, true) if preload
@@ -39,11 +39,14 @@ module FSSM::Support
39
39
  def rb_inotify?
40
40
  found = begin
41
41
  require 'rb-inotify'
42
- !INotify::Notifier.ancestors.include?(IO)
42
+ if defined?(INotify::VERSION)
43
+ version = INotify::VERSION
44
+ version[0] > 0 || version[1] >= 6
45
+ end
43
46
  rescue LoadError
44
47
  false
45
48
  end
46
- STDERR.puts("Warning: Unable to load rb-inotify >= 0.3.0. Inotify will be unavailable.") unless found
49
+ STDERR.puts("Warning: Unable to load rb-inotify >= 0.5.1. Inotify will be unavailable.") unless found
47
50
  found
48
51
  end
49
52
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.150
4
+ version: 2.3.151
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum