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::File -> Rack::Files #305
Conversation
To be clear, I left a |
This is an intelligent change, and makes literary and context sense. |
Backwards incompatible. IIRC Rails relies on Rack::File (and potentially others tools besides Rails). |
So mark it for a point release. On Jan 12, 2012, at 1:34 PM, José Valimreply@reply.github.com wrote:
|
It needs to be deprecated first. |
@josevalim Like I said before, I left a |
Needs rebasing now. I'm not ignoring this, I'm just trying to decide when I want to pull the trigger. I think my answer is "for rails 4". The main point being, I don't really want to maintain too much heavy deviance and do continual cross-patching. I'll keep you posted ofc. |
…from a root directory. * Left a Rack::File constant, for backwards compatibility.
Rebased! Tests pass. Should we bring @rkh into this discussion, as changes to Rack can also impact Sinatra? Also, until |
The issues will be broad I believe. I'd expect this will also hit ramaze and maybe padrino separately. Happy to add a deprecation notice in the next 1.4.x release. I'm not sure how long to give it, but I'd like to give it a while to avoid lots of merge issues. On that note, to reduce merge conflicts, I'd prefer to alias to Files first, and move it over when the deprecation is executed. This will save on maintenance time. (see multipart back ports :'( ) |
Thanks for rebasing!!! |
Due to signature changes that have already occurred, I'm leaving this until 1.6 at the earliest. |
This seems fine to me. AFAIK, master is 1.6. Should we merge this? < @raggi |
@tenderlove I can rebase and merge this. I can add a deprecation notice and aim for removing in 3.0? |
@ioquatix sounds great! Go for it |
Okay rebasing today. |
Merged. |
Renamed
Rack::File
toRack::Files
, since it can serve arbitrary files from a root directory. Once we can removeRack::File
, we can no longer worry about name conflicts between::File
andRack::File
.