Skip to content

Conversation

@frodsan
Copy link
Contributor

@frodsan frodsan commented Oct 15, 2018

In favor of String#is_utf8? method.

I think this method was made for internal use only, and its usage was removed here: https://github.com/rails/rails/pull/8261/files#diff-ce956ebe93786930e40f18db1da5fd46L39.

r? @jeremy

@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @jeremy (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

This repository is being automatically checked for code quality issues using Code Climate. You can see results for this analysis in the PR status below. Newly introduced issues should be fixed before a Pull Request is considered ready to review.

Please see the contribution instructions for more information.

Copy link
Member

@jeremy jeremy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chars#consumes?Chars.consumes?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's indicate that usage changes from a String argument to a String method. Example:

ActiveSupport::Multibyte::Chars.consumes?(string) is deprecated and will be removed from Rails 6.1. Use string.is_utf8? instead.

@frodsan frodsan changed the title Deprecate ActiveSupport::Multibyte::Chars#consumes? Deprecate ActiveSupport::Multibyte::Chars.consumes? Oct 15, 2018
In favor of String#is_utf8?.

I think this method was made for internal use only, and its usage was removed here: https://github.com/rails/rails/pull/8261/files#diff-ce956ebe93786930e40f18db1da5fd46L39.
@frodsan
Copy link
Contributor Author

frodsan commented Oct 15, 2018

Thanks for the review! Most of the search results are projects that vendor activesupport so this may not affect that many users 😄

@jeremy jeremy merged commit 134dab4 into rails:master Oct 15, 2018
suketa added a commit to suketa/rails_sandbox that referenced this pull request Jun 29, 2019
Deprecate ActiveSupport::Multibyte::Chars.consumes?
rails/rails#34215
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants