Sha256: 5f4815d401abf7029cd2448da54f1248090fe9674a6a1f6c24436a469d2699f2

Contents?: true

Size: 406 Bytes

Versions: 11

Compression:

Stored size: 406 Bytes

Contents

def run(*args)
  system "ruby -rubygems -Ilib:test #{args.join(' ')}"
end

def run_tests
  system "rake test"
end

def underscore(file)
  file.gsub('/', '_')
end

watch('test/test_.*\.rb')  {|md| run md[0] }
watch('lib/(.*)\.rb')      {|md| run "test/test_#{underscore(md[1])}.rb" }
watch('test/helper.rb')    { run_tests }

run_tests

Signal.trap("QUIT") { abort("\n") }
Signal.trap("INT") { run_tests }

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
libnotify-0.0.5 .watchr
libnotify-0.0.4 .watchr
riot_notifier-0.0.7 .watchr
libnotify-0.0.3 .watchr
libnotify-0.0.2 .watchr
riot_notifier-0.0.6 .watchr
riot_notifier-0.0.5 .watchr
shoutcast_api-0.1.5 .watchr
riot_notifier-0.0.3 .watchr
riot_notifier-0.0.2 .watchr
riot_notifier-0.0.1 .watchr