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

Update to support Rake 11 #2931

Merged
merged 1 commit into from
Mar 9, 2016
Merged

Update to support Rake 11 #2931

merged 1 commit into from
Mar 9, 2016

Conversation

tbrisker
Copy link
Contributor

@tbrisker tbrisker commented Mar 9, 2016

Before submitting a PR make sure the following are checked:

  • Wrote good commit messages.
  • Used the same coding conventions as the rest of the project.
  • Feature branch is up-to-date with master (if not - rebase it)
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • All tests are passing.
  • The new code doesn't generate RuboCop offenses.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.

See https://github.com/ruby/rake/blob/master/History.rdoc#1100--2016-03-09

@bbatsov
Copy link
Collaborator

bbatsov commented Mar 9, 2016

Will this work on older rakes?

@hsbt
Copy link

hsbt commented Mar 9, 2016

@bbatsov Yes. last_comment is deprecated for a long time. last_decription is also works Rake 10.x series. see. https://github.com/ruby/rake/blob/ed197e56cc626725f02431d909e02e048244488e/lib/rake/task_manager.rb#L8

@@ -14,6 +14,7 @@

### Bug fixes

* Replace Rake::TaskManager#last_comment with Rake::TaskManager#last_description for Rake 1.11 compatibility. ([@tbrisker][])
Copy link

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/ ?

Copy link
Contributor Author

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.

@tbrisker tbrisker changed the title Rake 1.11 removed last_comment in favor of last_description Rake 11 removed last_comment in favor of last_description Mar 9, 2016
@tbrisker tbrisker force-pushed the patch-1 branch 2 times, most recently from 7a00e28 to cdb80b4 Compare March 9, 2016 09:29
@alexdowad
Copy link
Contributor

Why not bump Rake to the latest version in the same commit?

@tbrisker
Copy link
Contributor Author

tbrisker commented Mar 9, 2016

@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.
@tbrisker tbrisker changed the title Rake 11 removed last_comment in favor of last_description Update to support Rake 11 Mar 9, 2016
roidelapluie added a commit to roidelapluie/modulesync_config that referenced this pull request Mar 9, 2016
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
@stephenrjohnson
Copy link

👍

Hopefully this is released soon.

@bkarstaedt
Copy link

+1

updating/deploying many apps because of a bundler-audit warning is currently failing because of this bug :/

bbatsov added a commit that referenced this pull request Mar 9, 2016
@bbatsov bbatsov merged commit 4fc1d71 into rubocop:master Mar 9, 2016
@bbatsov
Copy link
Collaborator

bbatsov commented Mar 9, 2016

I'll try to cut a new release later today.

peterberkenbosch added a commit to glossier/solidus_social that referenced this pull request Mar 9, 2016
…ample rubocop (rubocop/rubocop#2931) that will give you this error:

```

MethodError: undefined method `last_comment' for #<Rake::Application
```
cbrunsdon pushed a commit to cbrunsdon/solidus_social that referenced this pull request Mar 9, 2016
Temporary workaround for a rubocop issue in rubocop/rubocop#2931

Same patch peter berkenbosch applied to dynamo's spree_social fork

Thanks peter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants