2022/08/19分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Fix "unmarshalable" test for minitest 5.16.3
railties/test/application/test_runner_test.rbの修正です。
parallel testでunmarshalableが発生した場合の挙動を確認するテストがminitest 5.16.3でエラーになっていたのを修正しています。
Use Time instead of Date for comparison
activerecord/test/cases/adapters/postgresql/timestamp_test.rbの修正です。
timestampにbcの値を指定するテストで、値にDateのオブジェクトを使用していたのを、Timeを使用するよう修正しています。Ruby本体でDategregorian calendarを使うよう変更され、gregorian calendarにない日付はDateで使用できなくなった為。
参考: Fix Time#to_datetime before calendar reform
Install specific version of codespell
.github/workflows/lint.ymlの修正です。
codespellのバージョンを固定しています。codespellのバージョンが変わるとcodespellが保持している辞書も変わってしまう事があり、その影響でCIがエラーになってしまうのを避ける為。
xml_name_escape: Optimize the common case
activesupport/lib/active_support/core_ext/string/output_safety.rbの修正です。
xml_name_escapeメソッドで引数に指定された値が通常XMLのタグに使われる値のパターンだった場合、early returnするよう修正しています。性能改善の為。
Log a warning if ActiveSupport::Cache is given an expiration in the past
activesupport/lib/active_support/cache.rbの修正です。
ActiveSupport::Cacheでwrite処理のexpires_inオプションに過去の日付が指定されていた場合に、warningのログを出力するよう修正しています。
Reuse strict locals templates for any locals
actionview/lib/action_view/template.rb、
actionview/lib/action_view/unbound_template.rbの修正です。
"strict local" templateのlookupとrender処理を、異なるlocalesが指定された場合にも結果の再利用が出来るよう修正しています。
Avoid calling present? on @strict_locals
actionview/lib/action_view/template.rbの修正です。
@strict_localsに対する不要なpresent?の呼び出しを削除しています。
actionpack/test/dispatch/system_testing/screenshot_helper_test.rbの修正です。
screenshotをscreeenshotにタイポしていたのを修正しています。