Sha256: ac81bfe691ee41b20283f907342516482fd2e0ceee4204ab8fc661edd3ca419c
Contents?: true
Size: 584 Bytes
Versions: 6
Compression:
Stored size: 584 Bytes
Contents
#!/usr/bin/env ruby #/ Usage: watch #/ #/ Run the tests whenever any relevant files change. #/ require "pathname" require "rubygems" require "bundler" Bundler.setup :watch # 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 = /\/log|db/ fs = FSEvent.new fs.watch ["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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
nunes-0.5.0 | script/watch |
nunes-0.4.0 | script/watch |
nunes-0.3.1 | script/watch |
nunes-0.3.0 | script/watch |
nunes-0.2.0 | script/watch |
nunes-0.1.0 | script/watch |