rb-inotify 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rb-inotify.rb +1 -1
- data/lib/rb-inotify/notifier.rb +2 -1
- data/rb-inotify.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.8
|
data/lib/rb-inotify.rb
CHANGED
data/lib/rb-inotify/notifier.rb
CHANGED
@@ -190,7 +190,8 @@ module INotify
|
|
190
190
|
return Watcher.new(self, path, *flags, &callback) unless flags.include?(:recursive)
|
191
191
|
|
192
192
|
Dir.glob(File.join(path, '*'), File::FNM_DOTMATCH).each do |d|
|
193
|
-
|
193
|
+
binary_d = d.respond_to?(:force_encoding) ? d.dup.force_encoding('BINARY') : d
|
194
|
+
next if binary_d =~ /\/\.\.?$/ # Current or parent directory
|
194
195
|
watch(d, *flags, &callback) if !RECURSIVE_BLACKLIST.include?(d) && File.directory?(d)
|
195
196
|
end
|
196
197
|
|
data/rb-inotify.gemspec
CHANGED