Sha256: a9331b6a1c494b493636401e7bcb5eea608f88c002ef632c338059b54059b4a7
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
#!/usr/bin/env ruby #/ Usage: watch #/ #/ Run the tests whenever any relevant files change. #/ require "pathname" require "rubygems" require "bundler/setup" # Put us where we belong, in the root dir of the project. Dir.chdir Pathname.new(__FILE__).realpath + "../.." # Run the tests to start. system "clear; script/test" require "rb-fsevent" IgnoreRegex = /\/fixtures/ fs = FSEvent.new fs.watch ["app", "lib", "test"], latency: 1 do |args| unless args.first =~ IgnoreRegex system "clear" puts "#{args.first} changed..." system "script/test" end end fs.run
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twirl-0.2.0 | script/watch |
twirl-0.1.0 | script/watch |