2024/12/04分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
ShardSelector supports granular database connection switching
activerecord/lib/active_record/middleware/shard_selector.rb
の修正です。
shardのswitch処理で使われるクラス(connected_to
やprohibit_shard_swapping
を使用するクラス)がActiveRecord::Base
で固定だったのを、configでクラス名を指定できるよう修正しています。クラスを変更したい場合、shard_selector
のclass_name
オプションに指定すればOKです。
config.active_record.shard_selector = { class_name: "AnimalsRecord" }
Skip minitest v5.25.3 to workaround CI failures
Gemfile
の修正です。
minitest
v5.25.3を使用しないよう修正しています。minitest
側の問題でエラーになってしまう為。
Migrate applicable actioncable tests to use NotificationAssertions
Action Cableのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable actionmailbox tests to use NotificationAssertions
Action Mailboxのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable actionpack tests to use NotificationAssertions
Action Packのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable activerecord tests to use NotificationAssertions
Acitve Recordのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable activestorage tests to use NotificationAssertions
Active Storageのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable activesupport tests to use NotificationAssertions
Active Supportのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable activejob tests to use NotificationAssertions
Active Jobのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable railties tests to use NotificationAssertions
railtiesのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable actionmailer tests to use NotificationAssertions
Action Mailerテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Migrate applicable actionview tests to use NotificationAssertions
Action Viewのテストの修正です。
notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。
Active Record Connection Pool: Don't try to clear unowned connections
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
の修正です。
remove_connection_from_thread_cache
メソッドでconn.owner
がnilの場合connectionsのclearを行わないよう修正しています。nilの場合処理を行う必要が無い、かつ、Ruby 3.3.5+だとexceptionがraiseしてしまう為。