なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2024/04/29)

2024/04/29分のコミットです。

CHANGELOGへの追加はありませんでした。


Update production.rb template to provide example to exclude healthcheck from force_ssl redirect

railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です。

force_sslオプションを有効にしている場合に、healthcheckへのアクセスをhttpsのリダイレクト対象から除外する設定の例を追加しています。


No need to recommend spring any more as a common option

railties/lib/rails/generators/rails/app/templates/Gemfile.ttの修正です。

rails newで生成されるGemfileからspring gemを削除しています。デフォルトとしてはspringは推奨しない為、のようです。


Rails 8 will target Ruby 3.3+ only for new apps

railties/lib/rails/generators/rails/app/templates/Gemfile.ttの修正です。

rails newで生成されるGemfileからerror_highlight gemを削除しています。Rails 3.2未満向けの対応であり、次のRailsのメジャーバージョンではRuby 3.3+のみサポートをする予定の為。


Usage not common enough to warrant top-line recommendation

rails newで生成されるGemfileからrack-mini-profiler gemを削除しています。デフォルトで推奨する程一般的ではない、という事のようです。


Merge pull request #51682 from Shopify/fix-active-support-test-case-loading-early

activesupport/lib/active_support/railtie.rbの修正です。

ActiveSupport::TestCase.assertionless_tests_behaviorの設定処理をActiveSupport::TestCaseがロードされた際に行うよう修正しています。


Raise when a block is passed to ActiveRecord::Relation#with

activerecord/lib/active_record/relation/query_methods.rbの修正です。

ActiveRecord::Relation#withにblockが指定された場合に、ArgumentErrorをraiseするよう修正しています。


Add period to end of comment sentences in env templates for consistency (#51677)

railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.ttrailties/lib/rails/generators/rails/app/templates/config/environments/test.rb.ttの修正です。

コメントの末尾にピリオドを指定するよう修正しています。