我在带有 bcrypt-ruby 的 Mac ruby 1.9.3p448(2013-06-27 修订版 41675)上遇到问题 - 任何版本。如果我安装 bcrypt - Rspec 也要求安装 bcrypt-ruby ......((为什么?我也在 Rails 的开头 - 使用 M.Hartl ......))
。安装后'bcrypt-ruby' - 在命令我尝试所有版本 - 我得到这个结果:
$bundle install
.....
Using sass-rails 4.0.3
Using activeadmin 1.0.0.pre from git://github.com/gregbell/active_admin.git (at master)
Using bcrypt 3.1.7
Using bcrypt-ruby 3.1.5
Using bootstrap-sass 2.3.2.0
Using mini_portile 0.6.0
Using nokogiri 1.6.2.1
.....
$bundle exec rspec spec/
You don't have bcrypt-ruby installed in your application. Please add it to your Gemfile and run bundle install
/Users/alla/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/rubygems_integration.rb:262:in `block in replace_gem': can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.5. Make sure all dependencies are added to Gemfile. (Gem::LoadError)
bundle show ['bcrypt-ruby']
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
什么事!?我在这个文档中做了所有事情^,但问题并没有消失......