bundle - block in replace_gem can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.1 -


i've looked @ several answers regarding problem , none seem trick. on windows , lost ideas. help!

c:/ruby200/lib/ruby/gems/2.0.0/gems/bcrypt-ruby-3.0.1-x86-mingw32/lib/bcrypt_ext.rb:2:in require': cannot load such fil e -- 2.0/bcrypt_ext (loaderror) c:/ruby200/lib/ruby/gems/2.0.0/gems/bcrypt-ruby-3.0.1-x86-mingw32/lib/bcrypt_ext.rb:2:in'

    c:/ruby200/lib/ruby/gems/2.0.0/gems/bcrypt-ruby-3.0.1-x86-mingw32/lib/bcrypt.rb:12:in `require'     c:/ruby200/lib/ruby/gems/2.0.0/gems/bcrypt-ruby-3.0.1-x86-mingw32/lib/bcrypt.rb:12:in `<top (required)>'     c:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'     c:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require 

' c:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in each' c:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:inblock in require' c:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in each' c:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:inrequire' c:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:132:in require' c:/users/natecraft/documents/railstut/nate_enddy_d3/blog/config/application.rb:12:in' c:/users/natecraft/documents/railstut/nate_enddy_d3/blog/config/environment.rb:2:in require' c:/users/natecraft/documents/railstut/nate_enddy_d3/blog/config/environment.rb:2:in' c:/users/natecraft/documents/railstut/nate_enddy_d3/blog/spec/spec_helper.rb:3:in require' c:/users/natecraft/documents/railstut/nate_enddy_d3/blog/spec/spec_helper.rb:3:in' c:/users/natecraft/documents/railstut/nate_enddy_d3/blog/spec/models/user_spec.rb:1:in require' c:/users/natecraft/documents/railstut/nate_enddy_d3/blog/spec/models/user_spec.rb:1:in' c:/ruby200/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.3/lib/rspec/core/configuration.rb:896:in load' c:/ruby200/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.3/lib/rspec/core/configuration.rb:896:inblock in load _spec_files' c:/ruby200/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.3/lib/rspec/core/configuration.rb:896:in each' c:/ruby200/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.3/lib/rspec/core/configuration.rb:896:inload_spec_fil es' c:/ruby200/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.3/lib/rspec/core/command_line.rb:22:in run' c:/ruby200/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.3/lib/rspec/core/runner.rb:80:inrun' c:/ruby200/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.3/lib/rspec/core/runner.rb:17:in `block in autorun'

i solved same problem on project.

the problem in version 3.1.1 method 'has_secure_password' not supported, calling in model while in version 3.1.1 not work. however, mentioned here -> bcrypt error: devise ruby 2.0 , rails 4.0, specifying version in gemfile won't work, because windows compatible version used, causes it's own issues.

my solution fork bcrypt-ruby's github repo, roll 3.0.1 version , use source gem, this:

gem 'bcrypt-ruby', git: 'git@github.com:hananamar/bcrypt-ruby.git', :require => 'bcrypt' 

you're invited use repo :)

hopefully these issues fixed soon.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -