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

(PUP-11934) Use String#each_codepoint instead of deprecated String#codepoints #9103

Conversation

justinstoller
Copy link
Member

No description provided.

@justinstoller justinstoller requested a review from a team as a code owner August 30, 2023 22:37
@joshcooper
Copy link
Contributor

Does codepoints produce the wrong results in newer JRuby?

@justinstoller
Copy link
Member Author

No, but it prints a deprecation message to the log when it's called.

In MRI that usage was marked as deprecated in a previous version of Ruby and the documentation for it has been removed: https://ruby-doc.org/3.2.2/String.html#method-i-codepoints

@joshcooper
Copy link
Contributor

@justinstoller will this need to target 7.x too? We think we're testing against 9.3 there, but we weren't sure if it issues the same deprecation warning?

@justinstoller
Copy link
Member Author

It can target 7.x, but it's only problematic in 8.x. (at least so far) JRuby started warning in 9.4.3 not 9.3.x. I don't know if they plan to backport that warning. Lemme know if you'd like it cherrypicked.

@justinstoller justinstoller force-pushed the bug/maint/PUP-11934_deprecated_codepoints_usage branch from 18dffcc to dc95e7f Compare September 11, 2023 19:21
@justinstoller justinstoller changed the base branch from main to 7.x September 11, 2023 19:22
@justinstoller
Copy link
Member Author

Rebased onto 7.x

@joshcooper
Copy link
Contributor

Closing and reopening to rekick checks

@joshcooper joshcooper closed this Sep 12, 2023
@joshcooper joshcooper reopened this Sep 12, 2023
@joshcooper joshcooper merged commit 0a3ced0 into puppetlabs:7.x Sep 13, 2023
22 checks passed
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.

2 participants