Skip to content
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

Ruby 1.9 and Thin (config.ru and Rack::File) #5

Closed
documentcloud opened this issue Nov 7, 2009 · 3 comments
Closed

Ruby 1.9 and Thin (config.ru and Rack::File) #5

documentcloud opened this issue Nov 7, 2009 · 3 comments

Comments

@documentcloud
Copy link

It looks like when Thin uses a config.ru under Ruby 1.9, it evaluates it under the Rack module, which breaks code that relies on the top-level File, instead of Rack::File. See:

http://github.com/documentcloud/cloud-crowd/issues/closed#issue/6

If this is really a problem with Rack/Ruby1.9, instead of Thin, feel free to close the ticket.

@macournoyer
Copy link
Owner

Same behaviour in Rack's rackup command line tool.
This event looks like a constant lookup issue in 1.9.
Works find in 1.8. I'll try to figure out a fix, let me know if you find one.

@ibc
Copy link

ibc commented Dec 16, 2009

See this:
http://coderrr.wordpress.com/2009/06/02/fixing-constant-lookup-in-dsls-in-ruby-1-9/

My workaround is using full module path (::File instead of File).

@macournoyer
Copy link
Owner

Haven't found any other way then ::File, let me know if you know of a fix.

This issue was closed.
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

No branches or pull requests

2 participants