Sha256: f3dc47b65bbbd9df21b2039791de901c66e95c88a4c3576b5e987d0c117f382e

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 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/bumpy.rb") { |m| run("rspec spec/bumpy_spec.rb") }
watch("lib/bumpy/(.*)\.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("bundle exec rake spec") }
# Ctrl-C
Signal.trap('INT')    { abort("\nQuitting.") }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bumpy-1.0.0 .watchr
bumpy-0.1.5 .watchr