作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试测试这款外观精美的 gem - http://icelab.com.au/articles/welcome-to-the-omnisocial/ - 这 promise 可以将 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 之间做出选择。看起来是个糟糕的选择。
我该怎么做才能让它发挥作用?
最佳答案
我已经发布了新版本的 gem(出于法律原因,我不得不将其重命名为 omnipopulus
)。这个新版本不依赖于任何特定版本的 bcrypt-ruby
gem,因此您应该可以在 Rails 3.1 上运行它。
将此添加到您的 Gemfile
开始:
gem 'omnipopulus'
然后运行 bundle
并按照 https://github.com/icelab/omnipopulus 的 README 中的说明进行操作
确保您已删除应用中对全社交的所有引用。
关于ruby-on-rails - Omnisocial 依赖于 gem bcrypt-ruby 2.1,但 Rails 3.1 依赖于 bcrypt 3.0.0 - 我该怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7454216/
尝试测试这款外观精美的 gem - http://icelab.com.au/articles/welcome-to-the-omnisocial/ - 这 promise 可以将 Twitter 和
我是一名优秀的程序员,十分优秀!