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

Rails 7.1 support #169

Merged
merged 5 commits into from
Mar 14, 2024
Merged

Rails 7.1 support #169

merged 5 commits into from
Mar 14, 2024

Conversation

julianrubisch
Copy link
Contributor

@julianrubisch julianrubisch commented Feb 21, 2024

This pull request fixes two changes to ActionPack that were breaking futurism's Rails 7.1 compatibility:

MessageVerifier Serializer

The default Rails message verifier serializer has been changed from Marshal to JSON (see https://github.com/rails/rails/blob/7-1-stable/activesupport/CHANGELOG.md). This resulted in deserialization into a hash with stringified keys, breaking a couple of tests.

ActionController::Renderer

For some reason, ActionController::Renderer now messes with the SCRIPT_NAME of the @env variable. I'm not totally sure, but I think it's related to this PR: rails/rails#46649. This surfaced in a couple of tests because a "blank" url ("") was passed to setup_env! here: https://github.com/stimulusreflex/futurism/pull/169/files#diff-4ed78c4b57d45045cfecc7dee4ad1eae03ead2293b24414d7ff1ad08f3764bb9R36, resulting in SCRIPT_NAME not being set on our name. This was likely a bug in the first place, because we only need to guard against the nil case.

@julianrubisch julianrubisch marked this pull request as ready for review February 27, 2024 10:43
Copy link

@hopsoft hopsoft left a comment

Choose a reason for hiding this comment

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

LGTM

@julianrubisch julianrubisch merged commit a39a8f4 into master Mar 14, 2024
11 checks passed
@julianrubisch julianrubisch deleted the rails-7.1-support branch March 14, 2024 18:54
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