Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Doesn't work with Celluloid 0.17 #21

Open
b-dean opened this issue Sep 14, 2015 · 3 comments
Open

Doesn't work with Celluloid 0.17 #21

b-dean opened this issue Sep 14, 2015 · 3 comments

Comments

@b-dean
Copy link

b-dean commented Sep 14, 2015

The very basic example in the wiki won't work with celluloid 0.17

config.ru looks like:

run Proc.new {|env| [200, {"Content-Type" => "text/html"}, "Hello Rack!"]}

Gemfile

source 'https://rubygems.org'
gem 'reel-rack', github: 'celluloid/reel-rack'

when I run it:

$ bundle exec reel-rack
I, [2015-09-14T18:45:13.747559 #4193]  INFO -- : Celluloid 0.17.1.2 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
/tmp/foo/vendor/bundle/ruby/2.2.0/gems/celluloid-supervision-0.20.1.1/lib/celluloid/supervision/deprecate/supervise.rb:54:in `router': undefined method `services' for Celluloid:Module (NoMethodError)
    from /tmp/foo/vendor/bundle/ruby/2.2.0/gems/celluloid-supervision-0.20.1.1/lib/celluloid/supervision/deprecate/supervise.rb:11:in `supervise_as'
    from /tmp/foo/vendor/bundle/ruby/2.2.0/gems/celluloid-supervision-0.20.1.1/lib/celluloid/supervision/deprecate/supervise.rb:24:in `supervise_as'
    from /tmp/foo/vendor/bundle/ruby/2.2.0/bundler/gems/reel-rack-2edd5ff371a9/lib/rack/handler/reel.rb:18:in `run'
    from /tmp/foo/vendor/bundle/ruby/2.2.0/bundler/gems/reel-rack-2edd5ff371a9/lib/reel/rack/cli.rb:47:in `run'
    from /tmp/foo/vendor/bundle/ruby/2.2.0/bundler/gems/reel-rack-2edd5ff371a9/bin/reel-rack:5:in `<top (required)>'
    from /tmp/foo/vendor/bundle/ruby/2.2.0/bin/reel-rack:23:in `load'
    from /tmp/foo/vendor/bundle/ruby/2.2.0/bin/reel-rack:23:in `<main>'

works fine with gem 'celluloid', '< 0.17' in the Gemfile

@b-dean
Copy link
Author

b-dean commented Sep 14, 2015

Could this have something to do with celluloid/reel#202? Maybe Reel doesn't work on the new Celluloid 😦

@teoric
Copy link

teoric commented Dec 3, 2015

Indeed. I got this error when trying Gollum, which uses reel-rack. Adding require 'celluloid/current' as first line to /lib/rack/handler/reel.rb fixed the error for me.

@chewi
Copy link

chewi commented Apr 20, 2018

I think this can be closed now.

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

No branches or pull requests

3 participants