提交 0d8fd610 编写于 作者: Y yuuji.yaginuma

Use Puma 3.11 in newly generated applications

In order to use early hints, need to use Puma 3.11.0 or higher.
So, I think that should specify that version in newly generated applications.

Ref: https://github.com/puma/puma/commit/f6f3892f4d82638fb7a2a57d993641b1486ee88a
上级 959d7f73
...@@ -192,7 +192,7 @@ def database_gemfile_entry # :doc: ...@@ -192,7 +192,7 @@ def database_gemfile_entry # :doc:
def webserver_gemfile_entry # :doc: def webserver_gemfile_entry # :doc:
return [] if options[:skip_puma] return [] if options[:skip_puma]
comment = "Use Puma as the app server" comment = "Use Puma as the app server"
GemfileEntry.new("puma", "~> 3.7", comment) GemfileEntry.new("puma", "~> 3.11", comment)
end end
def include_all_railties? # :doc: def include_all_railties? # :doc:
......
...@@ -457,7 +457,7 @@ def test_config_jdbc_database_when_no_option_given ...@@ -457,7 +457,7 @@ def test_config_jdbc_database_when_no_option_given
def test_generator_defaults_to_puma_version def test_generator_defaults_to_puma_version
run_generator [destination_root] run_generator [destination_root]
assert_gem "puma", "'~> 3.7'" assert_gem "puma", "'~> 3.11'"
end end
def test_generator_if_skip_puma_is_given def test_generator_if_skip_puma_is_given
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册