なるようになるブログ

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

rails commit log流し読み(2022/08/31)

2022/08/31分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activesupport/CHANGELOG.md


Add raise_on_invalid_cache_expiration_time config to ActiveSupport::Cache::Store

activesupport/lib/active_support/cache.rbactivesupport/lib/active_support/error_reporter/test_helper.rbの修正です。

cacheのfetchwriteメソッドのexpires_atexpires_inオプションに不正な値を指定した場合の挙動をconfig(raise_on_invalid_cache_expiration_time)で指定出来るよう修正しています。load_default7.1以上が指定されている場合はExceptionをraise、それ以外の場合はログ、及び、ActiveSupport.error_reporter経由でエラーの出力されるようになっています。


Fix punctuation in has_secure_password docs.

activemodel/lib/active_model/secure_password.rbのdocの出力です。has_secure_passwordメソッドのdoc内のタイポを修正しています。


Update changelog linter

.github/workflows/lint.ymlの修正です。

changelog linterを最新バージョンに更新しています。


Clarify use of #update_all

rails guideのActive Record Basicsの修正です。

update_allについて説明している箇所に、update_allではcallbackやvalidationが実行されない旨説明を追加しています。


Lock redis version to v4 until #45913 is resolved

Gemfileの修正です。

redisのバージョンを4系に固定しています。redis 5系だとActive Jobのテストがエラーになる為。


Address NameError: uninitialized constant ActiveSupport::ErrorReporter::TestHelper

activesupport/test/cache/behaviors/cache_store_behavior.rbの修正です。

不足していたrequireを追加しています。