なるようになるブログ

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

rails commit log流し読み(2025/03/10)

2025/03/10分のコミットです。

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


Implement respond_to_missing? for ActiveRecord::Migration

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

ActiveRecord::Migrationrespond_to_missing?メソッドを追加しています。ActiveRecord::Migrationではmethod_missingを使用してメソッドを実行している箇所がある為、respond_to_missing?が定義されてないとrespond_to?が正しくメソッドが定義されているかをチェック出来ない為。


Add additional platforms for gems with native extensions

Gemfile.lockの修正です。

platformsにaarch64-linuxaarch64-linux-gnu等を追加しています。google-protobufnokogiriを使用する際に、precompiled native extensionを使用出来るようにする為。


Add inspect to ActiveStorage::Service, ActiveStorage::Service::Registry, and ActiveStorage::Service::Configurator

Active Storageの修正です。

ActiveStorage::ServiceActiveStorage::Service::Registry、及び、ActiveStorage::Service::Configuratorクラスにinspectメソッドを追加しています。secrets等を含まずにインスタンスの情報を表示出来るようにする為。


Handle PG::ConnectionBad from PG#server_version similarly to version 0

activerecord/lib/active_record/connection_adapters/postgresql_adapter.rbの修正です。

PostgreSQL adapteでserverのバージョンが0の場合にraiseするexceptionをActiveRecord::ConnectionFailedからActiveRecord::ConnectionNotEstablishedに修正しています。pg gem側でserverのバージョンが0の場合exceptionをraiseするよう修正されたのですが、その処理でpg gemでexceptionが発生した場合、RailsとしてはActiveRecord::ConnectionNotEstablishedをraiseするようになっており、挙動を合わせる為。

参考:Change #server_version to raise instead of return 0 on error