Sha256: b9ec5c7ff21d5554dad85a834199be4e09bbb0d89da8e1f6288bd2b90dafcc0c

Contents?: true

Size: 441 Bytes

Versions: 15

Compression:

Stored size: 441 Bytes

Contents

def run(cmd, msg = nil)
  puts "=== %s" % msg if msg
  puts "=== %s" % cmd
  system cmd
  puts "\n"
end

watch("spec/.*_spec\.rb") { |m| run("rspec %s" % m[0]) }
watch("lib/happy/(.*)\.rb") { |m| run("rspec spec/%s_spec.rb" % m[1]) }
watch('^spec/(spec_helper|factories)\.rb') { |f| run "rake spec", "%s.rb has been modified" % f }

# Ctrl-\
Signal.trap('QUIT')   { run("rake spec") }
# Ctrl-C
Signal.trap('INT')    { abort("\nQuitting.") }

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
happy-0.1.0 .watchr
happy-0.1.0.pre28 .watchr
happy-0.1.0.pre27 .watchr
happy-0.1.0.pre25 .watchr
happy-0.1.0.pre24 .watchr
happy-0.1.0.pre23 .watchr
happy-0.1.0.pre22 .watchr
happy-0.1.0.pre21 .watchr
happy-0.1.0.pre20 .watchr
happy-0.1.0.pre19 .watchr
happy-0.1.0.pre16 .watchr
happy-0.1.0.pre15 .watchr
happy-0.1.0.pre14 .watchr
happy-0.1.0.pre13 .watchr
happy-0.1.0.pre12 .watchr