[Ruby] Tonight's the night
John Whitley
whitley at bangpath.org
Tue May 30 16:00:14 PDT 2006
I'll be there. With a bit of code called FileWatcher that allows a
Ruby process to block awaiting change(s) to any of a specified list
of files. Easy as:
# watches for changes to files passed on command line
require 'filewatcher'
watcher = FileWatcher.new ARGV
watcher.wait do |file|
puts "#{file} changed"
end
Right now it's only got a kqueue() backend (i.e. OS X, BSDs, etc) via
RubyInline.
TODOs include:
* polling-based fallback implementation
* integration into autotest
* Win32 and Linux support (assuming Linux has a sane+stable file
change API)
* gemification
Good advice on organizing multi-platform extensions would be
appreciated... ;-)
-- John
On May 30, 2006, at 3:09 PM, Ryan Davis wrote:
> The projector is here and I'm bringing it to redline. Dunno if we'll
> have a good enough surface to actually SEE anything on... (sheet +
> masking tape maybe?)
>
> We also have some good news to share and maybe a real demo (but don't
> get your hopes up)
>
> Who's gonna be there?
>
> _______________________________________________
> Ruby at zenspider.com
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
More information about the Ruby
mailing list