Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Fix integration with Rack::File #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

packrat386
Copy link

Changed intoduced to rack in the commit below broke the way that prax
uses Rack::File. This change uses the new API.

rack/rack@f244d4
rack/rack@ed0d8c

@ysbaddaden
Copy link
Owner

Is it backward compatible?

@packrat386
Copy link
Author

With old versions of Rack? Probably not, but given that this change was made to Rack over a year ago I think it's fair to say that in versions of prax moving forward we're only going to support Rack >= 2.0.0

@ysbaddaden
Copy link
Owner

The Ruby version of Prax is maintenance only (use the Crystal version). I'd like to avoid introducing a change for Rack 2+ that breaks compatibility with older versions of Rack.

We can't use Rack::VERSION but maybe use Rack::RELEASE to support both versions?

Changed intoduced to rack in the commit below broke the way that prax
uses Rack::File. This change uses the new API.

rack/rack@f244d4
rack/rack@ed0d8c
@packrat386
Copy link
Author

@ysbaddaden how does the most recent version look?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants