From 1958cd52afbe5d4f517b4e57cf49c1d692e506c0 Mon Sep 17 00:00:00 2001 From: Jerry Cheung Date: Sat, 28 Oct 2023 02:58:56 -0700 Subject: [PATCH] Default gemfile generator to puma >= 6.0 Puma 5.x is not compatible with Rack 3 cookies. The current default new Gemfile uses puma ">= 5.0". Puma ~> 5.6 will error on start when used with Rack 3, but earlier versions will not. https://github.com/puma/puma/pull/3164: Support Rack 3 cookies https://github.com/puma/puma/pull/3166: Prevent loading with rack 3 https://github.com/phusion/passenger/issues/2503: Related passenger ex --- railties/lib/rails/generators/app_base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 629210861085a..f7d7f55881d3a 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -272,7 +272,7 @@ def database_gemfile_entry # :doc: end def web_server_gemfile_entry # :doc: - GemfileEntry.new "puma", ">= 5.0", "Use the Puma web server [https://github.com/puma/puma]" + GemfileEntry.new "puma", ">= 6.0", "Use the Puma web server [https://github.com/puma/puma]" end def asset_pipeline_gemfile_entry