Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Gem which uses native windows methods for watching changes of file system

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec specs work on 3 ruby versions (1.8.7, 1.9.2, jruby 1.6.1) May 15, 2011
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE.md Adding an MIT License file September 13, 2012
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile v0.0.5 May 15, 2011
Octocat-spinner-32 rb-fchange.gemspec
README.md

rb-fchange

Code is working. But there is still a lot of work. This is a simple wrapper over the Windows Kernel functions for monitoring the specified directory or subtree. Tested on:

  • jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6)
  • ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-ingw32]
  • ruby 1.9.2p180 (2011-02-18) [i386-mingw32]

Example

  require 'rb-fchange'

  notifier = FChange::Notifier.new
  notifier.watch("test", :all_events, :recursive) do |event|
    p Time.now.utc
  end

  Signal.trap('INT') do
    p "Bye bye...",
    notifier.stop
    abort("\n")
  end

  notifier.run

TODO

  • add latency setting with 0.5 default
  • rework interface (should more look like rb-fsevent)
  • add none-ANSI path support
Something went wrong with that request. Please try again.