rb-inotify 0.9.1 → 0.9.2
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/event.rb +8 -1
- data/rb-inotify.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.2
|
data/lib/rb-inotify.rb
CHANGED
data/lib/rb-inotify/event.rb
CHANGED
@@ -113,7 +113,7 @@ module INotify
|
|
113
113
|
@native = Native::Event.new(ptr)
|
114
114
|
@related = []
|
115
115
|
@cookie = @native[:cookie]
|
116
|
-
@name = data[@native.size, @native[:len]].gsub(/\0+$/, '')
|
116
|
+
@name = fix_encoding(data[@native.size, @native[:len]].gsub(/\0+$/, ''))
|
117
117
|
@notifier = notifier
|
118
118
|
@watcher_id = @native[:wd]
|
119
119
|
|
@@ -135,5 +135,12 @@ module INotify
|
|
135
135
|
def size
|
136
136
|
@native.size + @native[:len]
|
137
137
|
end
|
138
|
+
|
139
|
+
private
|
140
|
+
|
141
|
+
def fix_encoding(name)
|
142
|
+
name.force_encoding('filesystem') if name.respond_to?(:force_encoding)
|
143
|
+
name
|
144
|
+
end
|
138
145
|
end
|
139
146
|
end
|
data/rb-inotify.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "rb-inotify"
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.2"
|
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"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-09-12"
|
13
13
|
s.description = "A Ruby wrapper for Linux's inotify, using FFI"
|
14
14
|
s.email = "nex342@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb-inotify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|