Sha256: c9d456b5cfbc227a18e5b3bfcd08ec8284e5233ffe907a8451d1dfb6aa7c5f60

Contents?: true

Size: 489 Bytes

Versions: 9

Compression:

Stored size: 489 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("bundle exec rspec %s" % m[0]) }
watch("lib/happy/(.*)\.rb") { |m| run("bundle exec rspec spec/%s_spec.rb" % m[1]) }
watch('^spec/(spec_helper|factories)\.rb') { |f| run "bundle exec rake spec", "%s.rb has been modified" % f }

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
happy-0.1.0.pre11 .watchr
happy-0.1.0.pre10 .watchr
happy-0.1.0.pre9 .watchr
happy-0.1.0.pre8 .watchr
happy-0.1.0.pre7 .watchr
happy-0.1.0.pre.6 .watchr
happy-0.1.0.pre.5 .watchr
happy-0.1.0.pre.4 .watchr
happy-0.1.0.pre.3 .watchr