sandboxws / omniauth-goodreads

Goodreads strategy for OmniAuth
8 stars 11 forks source link

Load error when loading gem via bundler #1

Open jgadbois opened 11 years ago

jgadbois commented 11 years ago

/Users/john/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:74:in `require': cannot load such file -- omniauth/goodreads (LoadError)

sandboxws commented 11 years ago

thanks for adding the error in the issue, I'll try to reproduce it on my machine and get back to you ASAP

jgadbois commented 11 years ago

@sandboxws thanks for checking this out. Let me know if you need more info from me

sandboxws commented 11 years ago

can't reproduce it yet, can you explain more how did this happen? I mean are you using it with Rails? Which version?

jgadbois commented 11 years ago

Yes with Rails master branch (Rails 4 beta) and Omniauth 1.1.0

sandboxws commented 11 years ago

got it, switching rvm gemsets now :)

jgadbois commented 11 years ago

Were you able to reproduce this?

sandboxws commented 11 years ago

Yes, I'm really sorry for taking so long to reply, I was able to fix it locally by adding the following to the Gemfile

gem 'omniauth-goodreads', require: 'omniauth-goodreads'
gem 'multi_xml'
gem 'omniauth-oauth'

I didn't commit this thought coz I want to test more and make sure it works in Rails 3 and 4 It's clearly a dependency problem, so if you be so kind and try it yourself and let me know how it goes

Again, I'm really sorry

jgadbois commented 11 years ago

Thanks! What info do I need in my provider call in my omniauth initializer? Currently I just have

provider :goodreads

On Thu, Dec 27, 2012 at 6:01 PM, Ahmed El.Hussaini <notifications@github.com

wrote:

Yes, I'm really sorry for taking so long to reply, I was able to fix it locally by adding the following to the Gemfile

gem 'omniauth-goodreads', require: 'omniauth-goodreads'gem 'multi_xml'gem 'omniauth-oauth'

I didn't commit this thought coz I want to test more and make sure it works in Rails 3 and 4 It's clearly a dependency problem, so if you be so kind and try it yourself and let me know how it goes

Again, I'm really sorry

— Reply to this email directly or view it on GitHubhttps://github.com/sandboxws/omniauth-goodreads/issues/1#issuecomment-11720755.

sandboxws commented 11 years ago

Here is what I have in my initializer

Rails.application.config.middleware.use OmniAuth::Builder do
    provider :goodreads, 'key', 'secret'
end

And replace key and secret with your goodreads app key and secret