rb-inotify 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -60,6 +60,10 @@ module INotify
60
60
  # this IO object can be used in any way a Ruby-created IO object can.
61
61
  # This includes passing it to functions like `#select`.
62
62
  #
63
+ # Note that this always returns the same IO object.
64
+ # Creating lots of IO objects for the same file descriptor
65
+ # can cause some odd problems.
66
+ #
63
67
  # **This is not supported under JRuby**.
64
68
  # JRuby currently doesn't use native file descriptors for the IO object,
65
69
  # so we can't use this file descriptor as a stand-in.
@@ -68,7 +72,7 @@ module INotify
68
72
  # @raise [NotImplementedError] if this is being called in JRuby
69
73
  def to_io
70
74
  raise NotImplementedError.new("INotify::Notifier#to_io is not supported under JRuby") if RUBY_PLATFORM =~ /java/
71
- IO.new(@fd)
75
+ @io ||= IO.new(@fd)
72
76
  end
73
77
 
74
78
  # Watches a file or directory for changes,
data/rb-inotify.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rb-inotify}
8
- s.version = "0.3.0"
8
+ s.version = "0.4.0"
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 = %q{2009-12-26}
12
+ s.date = %q{2010-01-14}
13
13
  s.description = %q{A Ruby wrapper for Linux's inotify, using FFI}
14
14
  s.email = %q{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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-26 00:00:00 -08:00
12
+ date: 2010-01-14 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency