From 2a3f759eef10352bedce5f13b12dbdda30aacab2 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 19 Aug 2019 09:20:02 -0300 Subject: [PATCH] Generate new apps with latest puma version --- railties/lib/rails/generators/app_base.rb | 2 +- railties/test/generators/app_generator_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index b0cb0227ed..14d85c583b 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -191,7 +191,7 @@ module Rails def web_server_gemfile_entry # :doc: return [] if options[:skip_puma] comment = "Use Puma as the app server" - GemfileEntry.new("puma", "~> 3.11", comment) + GemfileEntry.new("puma", "~> 4.1", comment) end def include_all_railties? # :doc: diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index b71cf58468..5397529022 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -597,7 +597,7 @@ class AppGeneratorTest < Rails::Generators::TestCase def test_generator_defaults_to_puma_version run_generator [destination_root] - assert_gem "puma", "'~> 3.11'" + assert_gem "puma", "'~> 4.1'" end def test_generator_if_skip_puma_is_given