0.0
No commit activity in last 3 years
No release in over 3 years
JRuby-Notify is an thin wrapper around the JNotify library.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
>= 0
 Project Readme

JNotify for JRuby Build Status

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:

  • File created
  • File modified
  • File renamed
  • File deleted

Supported platforms

The gem is written for JRuby and uses the JNotify library that supports the following platforms:

  • Windows (2000 or newer)
  • Linux with INofity support (2.6.14 or newer)
  • Mac OS X (10.5 or newer)

Please have a look at the platform specific notes on the JNotify page.

Installation

gem install jruby-notify

Example

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

Other solutions

There are other gems that provides almost the same functionality for MRI:

Author

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.

Development

Pull requests are very welcome! Please try to follow these simple rules if applicable:

  • Please create a topic branch for every separate change you make.
  • Make sure your patches are well tested. All specs must pass.
  • Update the Yard documentation.
  • Update the README.
  • Update the CHANGELOG for noteworthy changes.
  • Please do not change the version number.

Contributors

See the CHANGELOG and the GitHub list of contributors.

Acknowledgement

Omry Yadan for writting the JNotify library and Matthew Donoughe for providing the Mac OS X support.

License

This Ruby gem is released under the MIT license. The JNotify library is released under the LPGL license.