-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
NameError: uninitialized constant Rack::RACK_VERSION #33
Comments
It should be referring to these constants and more... https://github.com/rack/rack/blob/7eebdd63ab3e7f890a13eb127ccf28cc31d7d505/lib/rack.rb#L63 I wonder why it's not loading them. |
Okay, I could reproduce the issue... hold on. |
The above code fails with newest 0.19.3 on this error
^^ @ioquatix |
Yeah, don't use |
I added that argument error because I ran into that and I wanted it to fail during construction not use. |
@ioquatix thx for the explanation and the help. I can run it under truffleruby. Unfortunately, when I want to open the page, it fails on something Truffleruby internal error :) I'm going to report it. |
Okay, I found out why it has funny behaviour. https://github.com/rack/rack/blob/master/lib/rack/builder.rb#L36-L51 If you do |
This caused unexpected behaviour. socketry/falcon#33 (comment) When the user specified `falcon.rb` as the config file, it loaded code from the gem rather than the local directory. This allows users to bypass this "feature" by directly using `Builder.load_file` which doesn't try to `require` the path.
When I run the following script:
using
Note: use it for testing falcon under Trufferuby
I got this issue under
Ruby 2.5.3
/Truffleruby 1.0.0-rc9
on macOS 10.14I used Firefox to open the "page".
The text was updated successfully, but these errors were encountered: