JRuby-Notify is an thin wrapper around the JNotify library
MIT License
jruby-notify is a thin wrapper around the JNotify library, a java library that allow java application to listen to file system events, such as:
The gem is written for JRuby and uses the JNotify library that supports the following platforms:
Please have a look at the platform specific notes on the JNotify page.
gem install jruby-notify
require 'jruby-notify'
notify = JRubyNotify::Notify.new
notify.watch Dir.pwd do |path, file|
puts "Detected change in: #{ File.join(path, file) }"
end
notify.run
There are other gems that provides almost the same functionality for MRI:
Developed by Michael Kessler, mksoft.ch.
If you like JRuby Notify, you can watch the repository at GitHub and follow @netzpirat on Twitter for project updates.
Pull requests are very welcome! Please try to follow these simple rules if applicable:
See the CHANGELOG and the GitHub list of contributors.
Omry Yadan for writting the JNotify library and Matthew Donoughe for providing the Mac OS X support.
This Ruby gem is released under the MIT license. The JNotify library is released under the LPGL license.