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

Rails server or console wont start after installing gibbon #42

Closed
lurraca opened this issue Apr 4, 2013 · 5 comments
Closed

Rails server or console wont start after installing gibbon #42

lurraca opened this issue Apr 4, 2013 · 5 comments

Comments

@lurraca
Copy link

lurraca commented Apr 4, 2013

After installing the gibbon gem to my app, I get an error message while trying to start the server or the console.

[1] $ rails s                                                                                                                                                                
/Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/gibbon-0.4.6/lib/gibbon.rb:8:in `<class:Gibbon>': undefined method `default_timeout' for Gibbon:Class (NoMethodError)
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/gibbon-0.4.6/lib/gibbon.rb:5:in `<top (required)>'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in `require'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in `each'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in `block in require'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `each'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `require'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler.rb:119:in `require'
    from /Users/lurraca/Desktop/projects/pixelpt/shop.pr-web.rails/config/application.rb:6:in `<top (required)>'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/railties-3.2.11/lib/rails/commands.rb:53:in `require'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/railties-3.2.11/lib/rails/commands.rb:53:in `block in <top (required)>'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
    from /Users/lurraca/.rvm/gems/ruby-1.9.3-p194@shop.pr/gems/railties-    3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
@amro
Copy link
Owner

amro commented Apr 4, 2013

Working fine for me. Did you run bundle install?

amro@ambook:~/$ rails new foo

In my gemfile:
gem 'gibbon'

followed by
amro@ambook:~/foo$ bundle install

amro@ambook:~/foo$ rails s => Booting WEBrick => Rails 3.2.13 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2013-04-04 18:43:58] INFO WEBrick 1.3.1 [2013-04-04 18:43:58] INFO ruby 1.9.3 (2012-04-20) [x86_64-darwin11.4.0] [2013-04-04 18:43:58] INFO WEBrick::HTTPServer#start: pid=33286 port=3000 Started GET "/assets/rails.png" for 127.0.0.1 at 2013-04-04 18:44:05 -0400 Served asset /rails.png - 200 OK (4ms)

@lurraca
Copy link
Author

lurraca commented Apr 5, 2013

Yes, it was after bundle install, probably my app is missing some dependencies required by gibbon.
undefined method `default_timeout' for Gibbon:Class (NoMethodError)

Where is this 'default_timeout' supposed to come from?

@amro
Copy link
Owner

amro commented Apr 5, 2013

That comes from httparty, which Gibbon has always used. Not sure why you would be missing that.

@amro amro closed this as completed Apr 5, 2013
@lurraca
Copy link
Author

lurraca commented Apr 5, 2013

its not possible to use Gibbon with Faraday?

@amro
Copy link
Owner

amro commented Apr 6, 2013

I don't know as I've not tried using both Httparty and Faraday in the same project but I assume they would co-exist. . Gibbon itself relies on Httparty to make requests.

@amro amro reopened this Apr 6, 2013
@amro amro closed this as completed Apr 16, 2013
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