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 Ruby 3.2.2 #1601

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Update to Ruby 3.2.2 #1601

merged 1 commit into from
Dec 8, 2023

Conversation

mtaylorgds
Copy link
Contributor

@mtaylorgds mtaylorgds commented Dec 6, 2023

There has been a change in how Ruby prints errors, which seems to have impacted a test that was checking stdout. The Ruby change discussion talks about printing unhandled errors, and in our case we're printing the results of an exception's #inspect method in a rescue block, but it seems too closely-related to be a coincidence.

Aside from making the output go all on a single line (so the newlines in the HEREDOC were being removed), the escape sequences were being double-escaped (so every \" became \\"). Putting single-quotes around the opening identifier avoids this issue.

Ruby language change discussion:
https://bugs.ruby-lang.org/issues/18367

Trello card

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@mtaylorgds mtaylorgds force-pushed the update-to-ruby-3.2.2 branch from 5351a0b to 45f7086 Compare December 6, 2023 14:21
There has been a change in how Ruby prints errors, which seems to have
 impacted a test that was checking stdout. The Ruby change discussion
 talks about printing unhandled errors, and in our case we're printing
 the results of an exception's `#inspect` method in a `rescue` block,
 but it seems too closely-related to be a coincidence.

Aside from making the output go all on a single line (so the newlines in
 the HEREDOC were being removed), the escape sequences were being
 double-escaped (so every `\"` became `\\"`). Putting single-quotes
 around the opening identifier avoids this issue.

Ruby language change discussion:
https://bugs.ruby-lang.org/issues/18367
@mtaylorgds mtaylorgds force-pushed the update-to-ruby-3.2.2 branch from 45f7086 to 830c6cd Compare December 7, 2023 08:44
Copy link
Contributor

@cynthia-anya cynthia-anya left a comment

Choose a reason for hiding this comment

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

LGTM

@cynthia-anya cynthia-anya merged commit 28b512b into main Dec 8, 2023
9 checks passed
@cynthia-anya cynthia-anya deleted the update-to-ruby-3.2.2 branch December 8, 2023 10:06
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