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

Load error when loading gem via bundler #1

Open
jgadbois opened this issue Dec 19, 2012 · 9 comments
Open

Load error when loading gem via bundler #1

jgadbois opened this issue Dec 19, 2012 · 9 comments

Comments

@jgadbois
Copy link

/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
Copy link
Owner

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

@jgadbois
Copy link
Author

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

@sandboxws
Copy link
Owner

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

@jgadbois
Copy link
Author

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

@sandboxws
Copy link
Owner

got it, switching rvm gemsets now :)

@jgadbois
Copy link
Author

Were you able to reproduce this?

@sandboxws
Copy link
Owner

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
Copy link
Author

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//issues/1#issuecomment-11720755.

@sandboxws
Copy link
Owner

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

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