haml-edge 2.3.150 → 2.3.151
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/vendor/fssm/lib/fssm/backends/inotify.rb +5 -2
- data/vendor/fssm/lib/fssm/support.rb +5 -2
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.151
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
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, :
|
9
|
-
|
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
|
-
|
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.
|
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
|
|