Permalink
Browse files

Fix Listen dir filter

  • Loading branch information...
1 parent eebc039 commit b987884af5a6b088da26b16a2e75fde04056cd73 @elia committed May 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/spectator.rb
View
@@ -28,7 +28,7 @@ def queue
def watch_paths!
listener = Listen.to(Dir.pwd, :relative_paths => true)
- listener.filter %r{/(app,spec,lib,script)/}
+ listener.filter %r{^(app|spec|lib|script)/}
listener.change do |modified, added, removed|
[modified, added].flatten.each { |relative| queue.push relative }
end

0 comments on commit b987884

Please sign in to comment.