-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Update to support Rake 11 #2931
Conversation
Will this work on older rakes? |
@bbatsov Yes. |
@@ -14,6 +14,7 @@ | |||
|
|||
### Bug fixes | |||
|
|||
* Replace Rake::TaskManager#last_comment with Rake::TaskManager#last_description for Rake 1.11 compatibility. ([@tbrisker][]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Rake 1.11/Rake 11/ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, my mistake. will fix.
7a00e28
to
cdb80b4
Compare
Why not bump Rake to the latest version in the same commit? |
@alexdowad will do. Pushing new version with rake ~> 11.0. |
Updated gemfile to newer version of Rake. Rake 11 removed deprecated `last_comment` in favor of `last_description`. See https://github.com/ruby/rake/blob/master/History.rdoc#1100--2016-03-09 for more details.
All tests are failing with: https://travis-ci.org/voxpupuli/puppet-corosync/jobs/114738369 ``` $ bundle exec rake $CHECK rake aborted! NoMethodError: undefined method `last_comment' for #<Rake::Application:0x000000021df220> /home/travis/build/voxpupuli/puppet-corosync/vendor/bundle/ruby/2.2.0/gems/rubocop-0.37.2/lib/rubocop/rake_task.rb:24:in `initialize' /home/travis/build/voxpupuli/puppet-corosync/Rakefile:9:in `new' /home/travis/build/voxpupuli/puppet-corosync/Rakefile:9:in `<top (required)>' (See full trace by running task with --trace) ``` Once rubocop/rubocop#2931 is released then rubocop can be updated and the pinning removed. Thanks to theforeman/foreman#3298 for the pointer
👍 Hopefully this is released soon. |
+1 updating/deploying many apps because of a bundler-audit warning is currently failing because of this bug :/ |
I'll try to cut a new release later today. |
…ample rubocop (rubocop/rubocop#2931) that will give you this error: ``` MethodError: undefined method `last_comment' for #<Rake::Application ```
Temporary workaround for a rubocop issue in rubocop/rubocop#2931 Same patch peter berkenbosch applied to dynamo's spree_social fork Thanks peter.
Before submitting a PR make sure the following are checked:
master
(if not - rebase it)and description in grammatically correct, complete sentences.
See https://github.com/ruby/rake/blob/master/History.rdoc#1100--2016-03-09