Sha256: f1b4af45d76ba2fec821287b5649f3ec0995b3bf90a4ba2640e78578110bad48

Contents?: true

Size: 497 Bytes

Versions: 11

Compression:

Stored size: 497 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-helpers/(.*)\.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

11 entries across 11 versions & 1 rubygems

Version Path
happy-helpers-0.1.0.pre15 .watchr
happy-helpers-0.1.0.pre14 .watchr
happy-helpers-0.1.0.pre13 .watchr
happy-helpers-0.1.0.pre12 .watchr
happy-helpers-0.1.0.pre11 .watchr
happy-helpers-0.1.0.pre10 .watchr
happy-helpers-0.1.0.pre9 .watchr
happy-helpers-0.1.0.pre8 .watchr
happy-helpers-0.1.0.pre7 .watchr
happy-helpers-0.1.0.pre6 .watchr
happy-helpers-0.1.0.pre.6 .watchr