2024/09/21分のコミットです。
CHANGELOGへの追加はありませんでした。
Generate the correct bin/test command for railtie CI config
railties/lib/rails/generators/rails/plugin/plugin_generator.rb、
railties/lib/rails/generators/rails/plugin/templates/github/ci.yml.ttの修正です。
plugin generatorが生成するci.yml内のテスト実行コマンドが誤った内容になっていたのを修正しています。
railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt、
railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.ttの修正です。
generatorが生成するファイルに、Rubocopのチェックでエラーになるコードがあったのを修正しています。
Container logging already has built-in timestamps (#52993)
railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です。
rails newで生成されるproduction.rbからloggerのformatterの設定処理を削除しています。Kamal側でlogにtimestampを含むようになっており、timestampが二重に含まれてしまうのを避けるため、との事です。
参考:Add option to skip timestamps on logging output
Add TaggedLogging#logger constructor for more pleasant logging interface (#52994)
activesupport/lib/active_support/tagged_logging.rb、
railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です。
ActiveSupport::Loggerのインスタンスを返すActiveSupport::TaggedLogging#loggerメソッドを追加、及び、rails newで生成されるproduction.rbでそのメソッドを使用するよう修正しています。
Stop ignoring old .env.erb files from Kamal 1 (#53000)
railties/lib/rails/generators/rails/app/templates/dockerignore.tt、
railties/lib/rails/generators/rails/app/templates/gitignore.ttの修正です。
ignoreするファイルの一覧から.env.erbを削除しています。Kamal v1で使用していたファイルで、v2では使用されておらずignoreする必要がない為。
Cleanup default environment files (#52999)
railtiesの修正です。
rails newで生成される各env向けのファイルについて、コメントの修正、あまり使用してないと思われるconfigの削除、等を行っています。
Explain each setting by itself when they are independent
railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です。
cacheに関するコメントがconfig.consider_all_requests_localについてのコメントとして記載されていたのを、config.action_controller.perform_cachingについてのコメントとして記載するよう修正しています。
railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です。
config.assume_sslについてのコメントから不要と思われる説明を削除しています。
Group related log toggles together
railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です。
config.silence_healthcheck_pathをlog関連のconfigの後に移動しています。関連している項目をまとめる為。
Gemfile、
railties/lib/rails/generators/rails/app/templates/Gemfile.ttの修正です。
Kamal gemのバージョンを2.0.0.rc2に更新しています。
Expose the option to change the log level via ENV
railties/lib/rails/generators/rails/app/templates/config/deploy.yml.ttの修正です。
log levelを変更するためのenvのexampleを追加しています。
Remove hash allocation in Store#namespace_key
activesupport/lib/active_support/cache.rbの修正です。
Store#namespace_keyメソッドでHashオブジェクトの生成を減らすようリファクタリングしています。
railties/lib/rails/generators/rails/app/templates/config/deploy.yml.ttの修正です。
RAILS_LOG_LEVELについてのコメントで、#が2つあったのを1つにしています。
Fix version of the migration in the guide to the current Rails version
rails guideの修正です。
migrationファイルのexampleのmigration versionを8.0に更新しています。