なるようになるブログ

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

rails commit log流し読み(2024/01/24)

2024/01/24分のコミットです。

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


Fix rotation detection for HDR videos (#50854)

activestorage/lib/active_storage/analyzer/video_analyzer.rbの修正です。

Active StorageでHDR videosに対するrotationの取得が正しく行えないバグがあったのを修正しています。


Translate Trilogy syscall errors as conn failed

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

Trilogy adapterでsyscall errors(e.g. connection切断)が発生した場合に、他のadapterと同様にActiveRecord::ConnectionFailedにラップするよう修正しています。


Don't mutate row arrays that come back from the database adapter

activerecord/test/cases/finder_test.rbの修正です。

DB adapterが返したrow array自体をテストの中で変更していたのを、変更しないよう修正しています。SQLite 3 adapterがfreezeした値を返すよう変更しており、こちらでその値を変更しようとするとエラーになってしまうため。


Merge pull request #50855 from Shopify/update-console-prompt-color

railties/lib/rails/commands/console/console_command.rbの修正です。

Rails consoleのpromptでenv名を表示する際の色がdevelopmenttestはgreenになっていたのを、blueに変更しています。redとgreenという組み合わせより、redとblueの方がcolor-blind friendlyな為、との事です。

参考: The best charts for color blind viewers | Blog | Datylon


Merge pull request #50836 from p8/activerecord/fix-query-logs-rdoc

docの修正です。

singleton_classにattr_accessorで定義されているaccessorがdoc上で正しく表示されるようdocの記載を修正しています。