Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid deprecation messages with Guard 1.1.x #13

Merged
merged 3 commits into from Jun 14, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.rvmrc
pkg
Gemfile.lock
21 changes: 0 additions & 21 deletions Gemfile.lock

This file was deleted.

11 changes: 9 additions & 2 deletions lib/guard/rake.rb
Expand Up @@ -35,10 +35,17 @@ 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 }
Expand Down
2 changes: 1 addition & 1 deletion lib/guard/rake/version.rb
@@ -1,7 +1,7 @@
module Guard
module Rake
module RakeVersion
VERSION = "0.0.5"
VERSION = "0.0.6"
end
end
end