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 CHANGED
@@ -1 +1 @@
1
- 0.8.7
1
+ 0.8.8
@@ -13,5 +13,5 @@ module INotify
13
13
  # An array containing the version number of rb-inotify.
14
14
  # The numbers in the array are the major, minor, and patch versions,
15
15
  # respectively.
16
- VERSION = [0, 8, 7]
16
+ VERSION = [0, 8, 8]
17
17
  end
@@ -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
- next if d.dup.force_encoding('BINARY') =~ /\/\.\.?$/ # Current or parent directory
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
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rb-inotify}
8
- s.version = "0.8.7"
8
+ s.version = "0.8.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Weizenbaum"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 7
9
- version: 0.8.7
8
+ - 8
9
+ version: 0.8.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nathan Weizenbaum