Skip to content

Commit 4b3eaec

Browse files
committed
Merge pull request rails#12325 from tjschuck/bcrypt_version_bump
Bump bcrypt-ruby version to support Ruby 2.0 on Windows
1 parent 82cae28 commit 4b3eaec

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ gemspec
44

55
gem 'mocha', '~> 0.13.0', require: false
66
gem 'rack-cache', '~> 1.2'
7-
gem 'bcrypt-ruby', '~> 3.1.0'
7+
gem 'bcrypt-ruby', '~> 3.1.2'
88
gem 'jquery-rails', '~> 2.2.0'
99
gem 'turbolinks'
1010
gem 'coffee-rails', '~> 4.0.0', github: 'rails/coffee-rails'

activemodel/lib/active_model/secure_password.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ module ClassMethods
1818
# value to the password_confirmation attribute and the the validation
1919
# will not be triggered.
2020
#
21-
# You need to add bcrypt-ruby (~> 3.1.0) to Gemfile to use #has_secure_password:
21+
# You need to add bcrypt-ruby (~> 3.1.2) to Gemfile to use #has_secure_password:
2222
#
23-
# gem 'bcrypt-ruby', '~> 3.1.0'
23+
# gem 'bcrypt-ruby', '~> 3.1.2'
2424
#
2525
# Example using Active Record (which automatically includes ActiveModel::SecurePassword):
2626
#
@@ -44,7 +44,7 @@ def has_secure_password(options = {})
4444
# This is to avoid ActiveModel (and by extension the entire framework)
4545
# being dependent on a binary library.
4646
begin
47-
gem 'bcrypt-ruby', '~> 3.1.0'
47+
gem 'bcrypt-ruby', '~> 3.1.2'
4848
require 'bcrypt'
4949
rescue LoadError
5050
$stderr.puts "You don't have bcrypt-ruby installed in your application. Please add it to your Gemfile and run bundle install"

guides/code/getting_started/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131
gem 'jbuilder', '~> 1.2'
3232

3333
# To use ActiveModel has_secure_password
34-
# gem 'bcrypt-ruby', '~> 3.1.0'
34+
# gem 'bcrypt-ruby', '~> 3.1.2'
3535

3636
# Use unicorn as the app server
3737
# gem 'unicorn'

railties/lib/rails/generators/rails/app/templates/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ group :doc do
1616
end
1717

1818
# Use ActiveModel has_secure_password
19-
# gem 'bcrypt-ruby', '~> 3.1.0'
19+
# gem 'bcrypt-ruby', '~> 3.1.2'
2020

2121
# Use unicorn as the app server
2222
# gem 'unicorn'

0 commit comments

Comments
 (0)