Repository navigation
Add category to rb_warn_deprecated - #3505
Conversation
jeremyevans
left a comment
There was a problem hiding this comment.
This looks good. I think it results in some duplication, but that can be refactored later.
|
I found the bug that causes the spec failures. You need to use: |
PR ruby#3418 added a category to `rb_warn_deprecated_to_remove` but not to `rb_warn_deprecated`. This adds the same code to `rb_warn_deprecated` so that those warnings also get a category. This change also adds tests for `rb_warn_deprecated` and updates the tests for `rb_warn_deprecated_to_remove` to have clearer names. I've fixed the call to `rb_method_entry` as we need to be using the instance method, not singleton. Feature: https://bugs.ruby-lang.org/issues/17122
3a9ceb3 to
f099959
Compare
|
I wasn't able to get around to looking at refactoring this a bit to be less repetitive. Will try to get to it tomorrow. |
|
I've already started working on changes locally based on this PR that include such a refactoring, so there is no need. |
PR #3418 added a category to
rb_warn_deprecated_to_removebut not torb_warn_deprecated. Thisadds the same code to
rb_warn_deprecatedso that those warnings alsoget a category.
This change also adds tests for
rb_warn_deprecatedand updates thetests for
rb_warn_deprecated_to_removeto have clearer names.Feature: https://bugs.ruby-lang.org/issues/17122