lib/guard/rake.rb in guard-rake-0.0.5 vs lib/guard/rake.rb in guard-rake-0.0.6

- old
+ new

@@ -33,12 +33,19 @@ def run_all run_rake_task if @options[:run_on_all] end - def run_on_change(paths) - run_rake_task + if ::Guard::VERSION < "1.1" + def run_on_change(paths) + run_rake_task + end + else + def run_on_changes(paths) + run_rake_task + end end + def run_rake_task UI.info "running #{@task}" ::Rake::Task.tasks.each { |t| t.reenable } ::Rake::Task[@task].invoke