Skip to content
Browse files

Bump mysql2 up

  • Loading branch information...
1 parent 8742a97 commit fccacae7be258886fe21e50581958f23cabbb041 @spastorino spastorino committed
View
2 Gemfile
@@ -44,7 +44,7 @@ platforms :ruby do
group :db do
gem "pg", ">= 0.9.0"
gem "mysql", ">= 2.8.1"
- gem "mysql2", "~> 0.2.6"
+ gem "mysql2", "~> 0.2.11"
end
end
View
2 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -407,7 +407,7 @@ def gem_for_database
def version_constraint_for_database_gem
case options[:database]
- when "mysql" then "~> 0.2.6"
+ when "mysql" then "~> 0.2.11"
else nil
end
end
View
2 railties/test/generators/app_generator_test.rb
@@ -162,7 +162,7 @@ def test_config_another_database
assert_file "config/database.yml", /mysql/
# Ensure that the mysql2 gem is listed with a compatible version of the
# mysql2 gem
- assert_file "Gemfile", /^gem\s+["']mysql2["'],\s*'~> 0.2.6'$/
+ assert_file "Gemfile", /^gem\s+["']mysql2["'],\s*'~> 0.2.11'$/
end
def test_config_database_is_not_added_if_skip_active_record_is_given

0 comments on commit fccacae

Please sign in to comment.
Something went wrong with that request. Please try again.