Skip to content

fix: use Rack::Files for Rack 3 compatibility#2

Merged
celinefb merged 16 commits into
mainfrom
fix/rack-3-rack-files
Jun 29, 2026
Merged

fix: use Rack::Files for Rack 3 compatibility#2
celinefb merged 16 commits into
mainfrom
fix/rack-3-rack-files

Conversation

@celinefb

Copy link
Copy Markdown

Rack 3 removed Rack::File (an alias for Rack::Files since Rack 2.1). EmberCli::Deploy::File#to_rack still called it, which raises uninitialized constant Rack::File at boot under Rack 3.

Switches to Rack::Files, which exists in both Rack 2 and 3 — safe for all consumers regardless of their Rack version.

Surfaced while upgrading the main app to Rack 3.

celinefb and others added 11 commits June 23, 2026 15:45
Rack::File was removed in Rack 3 (it had been an alias for Rack::Files
since Rack 2.1). Rack::Files works on both Rack 2 and 3, so this keeps
the gem compatible across consumers while unblocking Rack 3 upgrades.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@celinefb celinefb merged commit d0a93ca into main Jun 29, 2026
6 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