Skip to content

Instantly share code, notes, and snippets.

@net1957
net1957 / code.rb
Created May 24, 2014 10:07
Window, ruby 1.9.3 listen and wdm
require 'rubygems'
require 'bundler'
Bundler.setup(:default) # set the load path
Bundler.require(:default) # require the gems
require 'logger'
module Lis
extend self
def listener
@net1957
net1957 / console.log
Created May 19, 2014 21:17
listen debug
You must use ANSICON 1.31 or later (http://adoxa.3eeweb.com/ansicon/) to use colour on Windows
I, [2014-05-19T23:14:53.707234 #9996] INFO -- : Celluloid loglevel set to: 0
W, [2014-05-19T23:14:53.709235 #9996] WARN -- : Dangerously suspending task: type=:call, meta={:method_name=>:initialize}, status=:callwait
D:/program/dvlt/ruby/ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in `value'
D:/program/dvlt/ruby/ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
D:/program/dvlt/ruby/ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/proxies/actor_proxy.rb:20:in `_send_'
D:/program/dvlt/ruby/ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid.rb:200:in `new_link'
D:/program/dvlt/ruby/ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/pool_manager.rb:19:in `block in initialize'
D:/program/dvlt/ruby/ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/pool_manager.rb:19:in `
GIT
remote: git://github.com/guard/listen.git
revision: d149494ceb15dd0d7475d8c42a6ecd88a5b0a299
branch: wmd_debugging
specs:
listen (2.7.5)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
@net1957
net1957 / code.rb
Last active August 29, 2015 14:00
Listen - tests for Issue #149
require 'rubygems'
require 'bundler'
Bundler.setup(:default) # set the load path
Bundler.require(:default) # require the gems
module Lis
extend self
def listener
Listen.to('D:/Dvlt/ruby/projects/_tmp/listen/list', debug: true, ignore!: /foobar/) do |modified, added, removed|