Skip to content

[3.2] Delegate keyword arguments in UploadedFile#method_missing - #2501

Merged
samuel-williams-shopify merged 1 commit into
rack:3-2-stablefrom
socketry:backport-uploaded-file-keywords-3-2
Aug 14, 2026
Merged

samuel-williams-shopify merged 1 commit into
rack:3-2-stablefrom
socketry:backport-uploaded-file-keywords-3-2

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Collaborator

Summary

Backport the Rack::Multipart::UploadedFile keyword-forwarding fix for #2481 to Rack 3.2.

Rack 3.2 supports Ruby 2.4, so it cannot use the ... forwarding syntax adopted on main. This instead uses the guarded ruby2_keywords compatibility mechanism from #2482, matching the other delegators on the stable branch. Ruby 2.4-2.6 retain their existing behavior, while Ruby 2.7+ correctly forwards keyword arguments.

The original authorship and changelog credit for @SeanLF are preserved.

Verification

  • bundle exec ruby -Itest test/spec_multipart.rb -n "/delegates keyword arguments/"
  • bundle exec ruby -Itest test/spec_multipart.rb (100 runs, 332 assertions)
  • git diff --check

Backport the fix from rack#2482 to Rack 3.2, retaining ruby2_keywords because the stable branch supports Ruby 2.4.
@samuel-williams-shopify
samuel-williams-shopify merged commit 3519905 into rack:3-2-stable Aug 14, 2026
18 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.

3 participants