Skip to content

Commit

Permalink
Merge pull request #17 from doxavore/fix-guard-11
Browse files Browse the repository at this point in the history
Guard 1.1 renamed run_on_change to run_on_changes
  • Loading branch information
jkutner committed Nov 11, 2012
2 parents 076dbbb + 39573be commit 4a33a90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/guard/jruby-rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def start
run_all if @options[:all_on_start]
end

def run_on_change(raw_paths)
def run_on_changes(raw_paths)
reload_paths(raw_paths)

unless @custom_watchers.nil? or @custom_watchers.empty?
Expand All @@ -65,6 +65,8 @@ def run_on_change(raw_paths)
super(paths)
end
end
# Guard 1.1 renamed run_on_change to run_on_changes
alias_method :run_on_change, :run_on_changes

def reload_paths(paths)
paths.each do |p|
Expand Down

0 comments on commit 4a33a90

Please sign in to comment.