lib/rerun.rb in rerun-0.5 vs lib/rerun.rb in rerun-0.5.1

- old
+ new

@@ -3,10 +3,13 @@ require "osxwatcher" require "fswatcher" # todo: make sure this works in non-Mac environments (also Macs without growlnotify) module Rerun + + DEFAULT_PATTERN = "**/*.{rb,js,css}" + class Runner include System def initialize(run_command, options = {}) @@ -23,10 +26,10 @@ def dir @options[:dir] || "." end def pattern - @options[:pattern] || "**/*.rb" + @options[:pattern] || DEFAULT_PATTERN end def start if windows? raise "Sorry, Rerun does not work on Windows."