我可以在一个应用程序中使用两个版本的gem吗?我试图使用两个rails插件来协同工作:
> Pengwynn的LinkedIn https://github.com/pengwynn/linkedin for LinkedIn API调用,对oauth有依赖(〜> 0.3.5)
> OmniAuth用户通过多个知名网站登录,依赖于oauth 0.4.0
当我在rails中尝试某些东西时,我会收到以下错误消息:
$rails server c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/resolver.rb:129:in `resolve': Bundler could not find compatible versions for gem "oauth": (Bundler::VersionConflict) In snapshot (Gemfile.lock): oauth (0.4.4) In Gemfile: linkedin depends on oauth (~> 0.3.5) Running `bundle update` will rebuild your snapshot from scratch,using only the gems in your Gemfile,which may resolve the conflict.
尝试捆绑更新只会冻结我的终端
是否可以同时使用这两个插件?