Skip to content

Commit

Permalink
just testing some new ignores, new bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
meeech committed Oct 27, 2013
1 parent 1e892ed commit 9006b90
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/watch-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@

require 'socket'
require 'rubygems'

# To use bundled gems
root = File.dirname(__FILE__)
gem_path = File.join(root, '../', 'Resources', 'vendor', 'bundle','ruby','1.8')
Gem.use_paths(gem_path)


require 'json'
gem 'listen', '= 0.5.2'

require 'rb-fsevent'

gem 'listen', '= 0.5.3'
require 'listen'


path = '/Users/mitch/Sites/klocko'

Listen.to(path, :force_polling => false, :ignore => %r[.hg]) do |modified, added, removed|
Listen.to(path, :force_polling => false, :ignore => %r[.hg|.sass|.less]) do |modified, added, removed|
puts 'Modified:'
puts modified.inspect
end

0 comments on commit 9006b90

Please sign in to comment.