-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rack 3 support #1857
Rack 3 support #1857
Commits on Jan 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for eff32e1 - Browse repository at this point
Copy the full SHA eff32e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 482b157 - Browse repository at this point
Copy the full SHA 482b157View commit details -
Probably too hard to make Sinatra work with both Rack 2 and Rack 3 in the same version.
Configuration menu - View commit details
-
Copy full SHA for c5f9817 - Browse repository at this point
Copy the full SHA c5f9817View commit details -
Configuration menu - View commit details
-
Copy full SHA for a86a32b - Browse repository at this point
Copy the full SHA a86a32bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5efc85e - Browse repository at this point
Copy the full SHA 5efc85eView commit details -
SERVER_PROTOCOL
->HTTP_VERSION
Similar change as jeremyevans/roda@50f0ddf Good to know is that rack-test defaults to HTTP/1.0: https://github.com/rack/rack-test/blob/v2.0.2/lib/rack/test.rb#L277-L285 (so Rack::Lint does not catch all usage of HTTP_VERSION)
Configuration menu - View commit details
-
Copy full SHA for c83b7f2 - Browse repository at this point
Copy the full SHA c83b7f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b4622f - Browse repository at this point
Copy the full SHA 0b4622fView commit details -
Find
RACK_SESSION_UNPACKED_COOKIE_DATA
It moved to Rack::Session: https://github.com/rack/rack-session/blob/v0.3.0/lib/rack/session/constants.rb
Configuration menu - View commit details
-
Copy full SHA for 943cfaa - Browse repository at this point
Copy the full SHA 943cfaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26aeec7 - Browse repository at this point
Copy the full SHA 26aeec7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1396f08 - Browse repository at this point
Copy the full SHA 1396f08View commit details -
sinatra-contrib tests now pass
Multiple response header values are encoded using an Array instead of newlines: https://github.com/rack/rack/blob/v3.0.3/UPGRADE-GUIDE.md#multiple-response-header-values-are-encoded-using-an-array Rack 3 does not remove cookies from the internal storage (because it doesn't make much sense), see rack/rack#1844, rack/rack#1840
Configuration menu - View commit details
-
Copy full SHA for 0a9b043 - Browse repository at this point
Copy the full SHA 0a9b043View commit details -
Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
Configuration menu - View commit details
-
Copy full SHA for 44377b2 - Browse repository at this point
Copy the full SHA 44377b2View commit details -
Update routing test
handles params without a value
The behaviour changed in Rack 3 with - rack/rack#1989 - rack/rack@ab1f1c1
Configuration menu - View commit details
-
Copy full SHA for 8e6d11c - Browse repository at this point
Copy the full SHA 8e6d11cView commit details -
Revert "Run tests for sinatra-contrib and rack-protection" This reverts commit 13b5b0f.
Configuration menu - View commit details
-
Copy full SHA for 217c5db - Browse repository at this point
Copy the full SHA 217c5dbView commit details -
Depend on
rackup
andrack-session
>=2.0.0The 2.0 series of these games are the same as the 0.x series, as these gems were created for Rack 3. The 1.x series of these games are for Rack 2.
Configuration menu - View commit details
-
Copy full SHA for a4a786a - Browse repository at this point
Copy the full SHA a4a786aView commit details -
Rack::File
->Rack::Files
againRebase gone wrong. Remove the old comment from 1dfae3d.
Configuration menu - View commit details
-
Copy full SHA for 8da32a4 - Browse repository at this point
Copy the full SHA 8da32a4View commit details -
Support
text/javascript
as JavaScript MIME typeNext Rack release (probably 3.1) will include this change: rack/rack@1bd0f15 sinatra#1857 (comment)
Configuration menu - View commit details
-
Copy full SHA for c129d58 - Browse repository at this point
Copy the full SHA c129d58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41d6063 - Browse repository at this point
Copy the full SHA 41d6063View commit details -
Revert "Update routing test
handles params without a value
"Rack v3.0.7 rolled back this change with rack/rack#2059 Other references: - rails/rails#47652 - rack/rack#2052 - rack/rack#2038
Configuration menu - View commit details
-
Copy full SHA for 5b28218 - Browse repository at this point
Copy the full SHA 5b28218View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3dfc19 - Browse repository at this point
Copy the full SHA d3dfc19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ba8664 - Browse repository at this point
Copy the full SHA 4ba8664View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a514e2 - Browse repository at this point
Copy the full SHA 7a514e2View commit details -
Co-authored-by: Eloy Pérez <ej.perezgomez@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a378414 - Browse repository at this point
Copy the full SHA a378414View commit details -
Require rack 3.0.0, not 3.0.0.beta1
No point in using the beta version anymore.
Configuration menu - View commit details
-
Copy full SHA for e721af6 - Browse repository at this point
Copy the full SHA e721af6View commit details -
rack-protection depends on rack-session
The tests shows this after dcdebe9 Sinatra does not (yet?)
Configuration menu - View commit details
-
Copy full SHA for 7a16094 - Browse repository at this point
Copy the full SHA 7a16094View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e37204 - Browse repository at this point
Copy the full SHA 1e37204View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a78d8b - Browse repository at this point
Copy the full SHA 8a78d8bView commit details -
Skip "without rackup" test on rack head branch
Tried adding the same code the regular Gemfile has for rack head, but than I ran into /usr/local/bundle/gems/bundler-2.4.22/lib/bundler/source/git/git_proxy.rb:354:in `allowed_with_path': The git source https://github.com/rack/rack.git is not yet checked out. Please run `bundle install` before trying to start your application (Bundler::GitError) So it seems we need to bundle before trying to start the app, and that just feels too complicated. The thought of using bundler/inline has crossed my mind, maybe I will try it at some point.
Configuration menu - View commit details
-
Copy full SHA for 1377751 - Browse repository at this point
Copy the full SHA 1377751View commit details -
Fix
test_app_start_without_rackup
on JVM rubiestruffleruby and jruby uses the childprocess with CHILDPROCESS_POSIX_SPAWN, and when doing so, the environment variables aren't cocered to strings until very late: https://github.com/enkessler/childprocess/blob/v4.1.0/lib/childprocess/unix/posix_spawn_process.rb#L109-L130 On CRuby it seems symbol environment variables will overwrite any existing (string) ones but that does not happen on JVM rubies (I've only tested with TruffleRuby though, but JRuby builds also failed in CI)
Configuration menu - View commit details
-
Copy full SHA for 985625d - Browse repository at this point
Copy the full SHA 985625dView commit details