Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

FSEvents API with signals handled (without RubyCocoa)

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 ext
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Guardfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 rb-fsevent.gemspec
README.rdoc

rb-fsevent

Very simple & usable Mac OSX FSEvents API

  • RubyCocoa not required!

  • Signals are working

  • Tested on Ruby 1.8.6, 1.8.7 & 1.9.2

Install

gem install rb-fsevent

Usage

require 'rb-fsevent'

fsevent = FSEvent.new
fsevent.watch Dir.pwd do |directories|
  puts "Detected change inside: #{directories.inspect}"
end
fsevent.run

Note about FFI

rb-fsevent doesn't use ruby-ffi anymore because it sadly doesn't allow to catch Signals, you can see the code in ffi branch.

Development

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Authors

Thibaud Guillaume-Gentil

Something went wrong with that request. Please try again.