尝试测试这个看起来很棒的gem - http://icelab.com.au/articles/welcome-to-the-omnisocial/ -它承诺可以很容易地将Twitter和FB登录集成到我的应用程序中。
但是,当我运行bundle install时,我看到了以下内容:
Bundler could not find compatible versions for gem "bcrypt-ruby":
In Gemfile:
omnisocial depends on
bcrypt-ruby (~> 2.1)
bcrypt-ruby (3.0.0)当我指定希望Bundler使用2.1版时,会得到如下结果:
Bundler could not find compatible versions for gem "bcrypt-ruby":
In Gemfile:
bcrypt-ruby (~> 2.1)
rails (= 3.1.0) depends on
bcrypt-ruby (3.0.0)所以现在我必须在Omnisocial和Rails 3.1之间做出选择。看起来真是个糟糕的选择。
我该怎么做才能让它工作呢?
发布于 2011-09-17 21:56:55
我已经发布了一个新版本的gem (出于法律原因,我不得不将其重命名为omnipopulus )。这个新版本不依赖于任何特定版本的bcrypt-ruby gem,所以您可以在Rails3.1上运行它。
将此代码添加到您的Gemfile中即可:
gem 'omnipopulus'然后运行bundle并按照位于https://github.com/icelab/omnipopulus的自述文件中的说明进行操作
确保你已经在你的应用程序中删除了所有对omnisocial的引用。
发布于 2011-09-17 19:56:57
当前的github版本的omnisocial不需要特定版本的bcrypt。See here。
但他们在Rails的RC版本中添加了一个依赖项...
我在这些情况下经常做的事情是:
https://stackoverflow.com/questions/7454216
复制相似问题