Gem Load Error is: uninitialized constant OmniAuth::OAuth2::Response
Hi,
I couldn't start rails app because of Gem Load Error is: uninitialized constant OmniAuth::OAuth2::Response.
environments
- ginjo-omniauth-slack 2.5.0.pre10
- omniauth-oauth2 1.6.0
- oauth2 1.4.4
- ruby 2.3.1
- rails 5.2.2
When I comment out the following refine block, I could start it. ↓
module OmniAuth
module Slack
module OAuth2Refinements
refine OAuth2::Response do
# TODO: This might not be used any more.
def to_auth_hash
Module.const_get('::OmniAuth::Slack::AuthHash').new(parsed)
end
end
end
Hi @taiyop . I wasn't able to reproduce the error that you found, but I did find some other errors that may or may not have been part of the issue. I reworked some of the code, including where you found the error. Give the master branch a try now, and let me know if it fixes the problem.
Hi @ginjo. Thank you for your reply. :)
Now I update this gem to v2.5.0, so I could resolve this issue. ↓ the following code may resolve this. https://github.com/ginjo/omniauth-slack/commit/f4c24b45ef31c410c4350d8123a44c1e13970b2c#diff-3c39ff960a38f71f09b3dfd28f5aaf79R17
So please close this issue if you don't need this issue anymore.
Thanks a lot.
Thanks @taiyop , I'll close this issue. But feel free to post back or open it again if you continue to have errors.