KEMBAR78
[2.2-stable] Fix compatibility issues with Ruby 3.4.0dev by casperisfine · Pull Request #2248 · rack/rack · GitHub
Skip to content

Conversation

@casperisfine
Copy link
Contributor

@casperisfine casperisfine commented Sep 9, 2024

I know 2.2 is marked a security patches only, but given 3.x contains breaking changes, and a large part of the community still haven't been able to upgrade, I think it would be sensible to also consider simple compatibility patches, to make it work on Ruby 3.4.

The two issues I found where:

  • base64 warnings, I went the same way as 696ed9e, using pack/unpack.
  • uri warnings, just applied a simple fix.

NB: Test suite is failing on ruby-head because webrick needs an update: ruby/webrick#144

cc @tenderlove @jeremyevans

The gem was made a default gems, so it should be added to the gemspec,
but most gems out there decided to just use `pack/unpack` to not add
a dependency, that's the approach I used there.
@casperisfine casperisfine force-pushed the 2-2-stable-ruby-3.4-compat branch from 147aecd to 1d5c992 Compare September 9, 2024 15:09
Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

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

Considering this is just for compatibility with newer Ruby versions, I'm OK backporting these changes.

@tenderlove tenderlove merged commit 6ae7057 into rack:2-2-stable Sep 9, 2024
10 checks passed
@casperisfine casperisfine deleted the 2-2-stable-ruby-3.4-compat branch September 9, 2024 15:51
@ioquatix
Copy link
Member

ioquatix commented Sep 9, 2024

@casperisfine would you like me to cut a release from this or are there additional compatibility issues you'd like to sort out first?

@byroot
Copy link
Contributor

byroot commented Sep 10, 2024

I'm not aware of any more issues. A release would be much appreciated, but we can also wait a bit see if there is any more changes in 3.4, I just fear we might forget.

@ioquatix
Copy link
Member

Okay, I will put a note in my calendar for Thursday next week to cut a release. Let me know if anything else comes up before then :)

@ioquatix
Copy link
Member

I have released v2.2.10 with this (and only this) change.

Thanks for your contribution.

@ioquatix ioquatix added this to the v2.2.10 milestone Oct 14, 2024
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.

5 participants