Skip to content

Instantly share code, notes, and snippets.

@meeech
Created September 5, 2012 01:26
Show Gist options
  • Save meeech/3628881 to your computer and use it in GitHub Desktop.
Save meeech/3628881 to your computer and use it in GitHub Desktop.
Snippet for listen gem bug report
#!/usr/bin/ruby
require 'socket'
require 'rubygems'
require 'json'
require 'listen'
path = '/Users/mitch/Sites/klocko'
Listen.to(path) do |modified, added, removed|
puts 'Modified:'
puts modified.inspect
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment