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

AsyncRack does nasty things with Rack namespace #6

Open
jonasschneider opened this issue Jan 12, 2013 · 1 comment
Open

AsyncRack does nasty things with Rack namespace #6

jonasschneider opened this issue Jan 12, 2013 · 1 comment

Comments

@jonasschneider
Copy link

[1] pry(main)> require 'async-rack'
=> true
[2] pry(main)> require 'rack/head'
NameError: uninitialized constant Rack::Head
from /Users/jonas/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/async-rack-0.5.1/lib/async_rack/async_callback.rb:7:in `const_get'
[3] pry(main)> Rack::Head
=> AsyncRack::Head

What am I doing wrong?
Bonus:

# inserted by me before line 7 of async-rack-0.5.1/lib/async_rack/async_callback.rb
puts [namespace.constants.include?(name), namespace.const_defined?(name)]
# => [true, false]
@rkh
Copy link
Owner

rkh commented Jan 13, 2013

Oh, yeah, I think you don't wanna use AsyncRack, instead you wanna use Sinatra's stream helper, throw :async directly or the new hijacking API.

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