なるようになるブログ

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

rails commit log流し読み(2023/10/20)

2023/10/20分のコミットです。

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

activesupport/CHANGELOG.md


Typo fix in BigDecimal job arguments warning

activejob/lib/active_job/arguments.rbの修正です。

jobのargumentにBigDecimalを指定した場合のdeprecatedメッセージ内のタイポを修正しています。


Use custom class for pending migrations connection

activerecord/lib/active_record/migration.rbactiverecord/lib/active_record/migration/pending_migration_connection.rbの修正です。

multiple databasesの設定がある、かつ、Rails Engine配下にconnects_toの指定が無いActiveRecord::Baseの子クラスがあるような場合に、migirationの実行時にdeadlockが発生してしまうバグがあったのを修正しています。


Use RDoc block quote syntax [ci-skip] https://github.com/rails/rails/commit/c48dc47ca34c56976de8b6c1a8d8e26bde73b386

activerecord/README.rdocの修正です。

引用部分で<pre>ではなく<blockquote>が使われるよう修正しています。


Fix file cache store to split url-encoded keys on encode-sequence boundaries

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

file cache storeでdelete_matchedメソッドにファイル名の最大長以上の長さのkeyを指定した場合にエラーになってしまうバグがあったのを修正しています。


Fix time travel helpers to work when nested using with separate classes

activesupport/lib/active_support/testing/time_helpers.rb

異なるclassでtime travel helperをnestして使用した場合に、違うclassで行った設定が他のclassに影響を与えてしまうバグがあったのを修正しています。


Merge pull request #49710 from zenspider/zenspider/deprecator

不足していたrequireを追加しています。が、active_supportをrequireせずにactive_support配下のファイルを使用する、というサポートしていないケースを想定した使い方だった為、後ほどRevertされています。


Revert "Merge pull request #49710 from zenspider/zenspider/deprecator"

直前のrequireを追加したコミットをRevertしています。


Handle outdated Marshal payloads in Cache::Entry with 6.1 cache_format

Active Supportの修正です。

cache_formatに6.1を指定している、かつ、既に存在しないclass / moduleがcacheに含まれている場合に、cacheのload処理でエラーにならないよう修正しています。


Fix OrderedOptions#dig for array indexes

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

ActiveSupport::OrderedOptions#digの引数にArrayのindexを指定した場合にエラーになってしまうバグがあったのを修正しています。


Fix issue where bootstrap.rb overwrites the level of a BroadcastLogger's broadcasts.

railties/lib/rails/application/bootstrap.rbの修正です。

Rails.loggerに対するlevelの設定処理を、loggerがActiveSupport::BroadcastLoggerインスタンスでない場合のみ行うよう修正しています。loggerがActiveSupport::BroadcastLoggerインスタンスの場合、既にlevelが設定されている可能性があり、値を上書きしてしまうのを避ける為。