-
Notifications
You must be signed in to change notification settings - Fork 222
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
Support for Rack 2.0 #137
Support for Rack 2.0 #137
Conversation
There is a reasonable possibility that ours may predate the one in Rack, or one of any number of other possibilities. I encourage you to rummage around in the ancient history of both repos if you're particularly curious. There's some eye-opening stuff in there. |
I can't see any show stoppers in the changes you've made. So we're one step closer. For cleanliness, the minitest deprecation fixes and whitespace cleanups, while necessary, should go into separate PRs, because they can be merged immediately and independently of the Rack 2.0 compatibility work. This change will break compatibility with any Rack 1.x users (they're still out there -- rack 1.6.8, released in May, has 3.3 million downloads) using rack-contrib, so we'll need to do a major version bump for |
This fixes #92 as well and also removes |
OK, everything looks good. Thanks for your work. I'm planning on making the next release a (semi-)final 1.x release, with deprecation warnings for the user-visible changes in this PR (I'm stumped as to how to "deprecate" the changed ordering of the values produced by |
Maybe add the warning at this codepath. |
Brilliant! |
Sadly, on further cogitation, I don't think this will work. We need to emit the deprecation warning when the same variable is encountered twice, not when an array is encountered, which is (AFAICT) what the code path you pointed to is doing. I'm having trouble figuring out how it all works, though, so finding the right place is proving tricky. |
Hurmmmm, yes. Okay, then it seems that adding something like this: warn "DEPRECATION WARNING ...." if top.include?(key) && value.is_a?(String) above this line would be appropriate. |
I've updated my PR. I had not removed |
👍 I've been really sick this week, so the new release (and Rack 2.0 movement) has been delayed. |
This removes the Rack version checks from @pabse's PR (#129) and requires rack ~> 2.0. Notable Changes: * Rack::NestedParams's nested query processing has been dropped in favor of Rack::Utils.parse_nested_query * Rack::Sendfile has been removed in favor of the version included with Rack 2 * Rack::AcceptFormat has been removed
Updated PR, to remove Also opened #141. |
This removes the Rack version checks from @pabse's PR in #129 and, based on the conversion there, requires rack ~> 2.0.
Regarding this repo's
Rack::Sendfile
. Why is this necessary, givenRack::Sendfile
in rack?