bundler 1.15.0 omniauth-cas

时间:2017-05-31 20:12:07

标签: ruby-on-rails ruby

在捆绑1.15.0发布后,我突然遇到运行我的rails应用程序的问题。我不想降级到bundler 1.14.6,因为我们的部署工具会自动检索最新版本的bundler。

这是我在运行rails s时看到的输出:

/Users/justin/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0/lib/bundler/runtime.rb:85:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'omniauth-cas'. (Bundler::GemRequireError)
Gem Load Error is: undefined method `option' for OmniAuth::Strategies::CAS:Class
Backtrace for gem load error is:
/Users/justin/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/omniauth-cas-1.1.1/lib/omniauth/strategies/cas.rb:19:in `<class:CAS>'
...

1 个答案:

答案 0 :(得分:0)

尝试清除/ tmp / cache文件夹中的所有内容。您还可以尝试运行bundle exec rails s以确保bundler使用正确的上下文运行服务器