diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-12-16 09:43:32 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-12-16 09:44:46 -0700 |
commit | 7241498e51120b9847a8bc16cf48551db0f3e216 (patch) | |
tree | 200cdc7a2e8b59c097b4b4ed81bb100b47916daf /Gemfile | |
parent | 1d7d8062b2576f835f5475e4adad0bb79e53f8ad (diff) | |
download | rails-7241498e51120b9847a8bc16cf48551db0f3e216.tar.gz rails-7241498e51120b9847a8bc16cf48551db0f3e216.tar.bz2 rails-7241498e51120b9847a8bc16cf48551db0f3e216.zip |
Require a version of bcrypt that works on Windows when needed
bcrypt 3.1.0 doesn't load on Windows. See
https://github.com/codahale/bcrypt-ruby/issues/128
for details.
Diffstat (limited to 'Gemfile')
-rw-r--r-- | Gemfile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -27,7 +27,11 @@ gem 'sass-rails', github: 'rails/sass-rails', branch: 'master' # require: false so bcrypt is loaded only when has_secure_password is used. # This is to avoid Active Model (and by extension the entire framework) # being dependent on a binary library. -gem 'bcrypt', '~> 3.1.10', require: false +if Bundler::WINDOWS + gem 'bcrypt-ruby', '~> 3.0.0', require: false +else + gem 'bcrypt', '~> 3.1.10', require: false +end # This needs to be with require false to avoid it being automatically loaded by # sprockets. |