以下の内容はhttps://y-yagi.hatenablog.com/entry/2024/12/04/050813より取得しました。


rails commit log流し読み(2024/12/03)

2024/12/03分のコミットです。

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

activerecord/CHANGELOG.md


Merge pull request #53775 from fatkodima/skip-contradiction-for-pluck

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

pick + expression column(e.g. Arel.sql("COUNT(*)") + 空のINをあわせて指定した場合に、最適化によりSQLが実行されずに空の結果をかえっていたのを、SQLを実行結果が取得されるよう修正しています。実際にそういう使い方をしている事があるため、との事です。


[Fix #33155] Set through target for new records

activerecord/lib/active_record/associations/association.rbactiverecord/lib/active_record/associations/collection_association.rbの修正です。

保存されていないrecordに対してhas_one through経由でassociationを設定した場合に、正しくassociationの設定が行えないバグがあったのを修正しています。


Simplify SecureRandom.base36

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

SecureRandom.base36メソッドでalphanumericメソッドを使用するようリファクタリングしています。


Add missing require

activesupport/lib/active_support/core_ext/date_and_time/calculations.rbの修正です。

不足していたrequireを追加しています。


Upgrade development to securerandom 0.4.0

Gemfile.lockの修正です。

SecureRandom.alphanumericの挙動がsecurerandom v0.4.0で変わってしまっており、変更後の挙動を確認できるようにする為にバージョンを上げています。


Revert "Add missing require"

不足していたrequireを追加した、Add missing requireをRevertしています。このrequireが原因で循環参照が発生するようになってしまった為。


Conditionally check alphanumeric method parameters

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

securerandom v0.4.0でSecureRandom.alphanumericchars引数が指定出来なくなった影響で、SecureRandom.alphanumericcharsが指定できる場合はそちらを利用、利用出来ない場合は独自実装が使用するようチェック処理及び実装を追加しています。

参考:Removed Random::Formatter


Use fixed font in to_sentence API docs [ci skip]

activesupport/lib/active_support/core_ext/array/conversions.rbの修正です。

to_sentenceメソッドのdocのフォーマットを修正しています。


Fix flaky test for async destroying of a polymorphic belongs_to association

activerecord/test/models/essay_destroy_async.rbの修正です。

polymorphic belongs_to associationを非同期で削除するテストが不安定になっていたのを修正しています。


Reset relations after insert_all/upsert_all

Active Recordの修正です。

insert_all / upsert_all実行後にresetを実行しrelationの状態(cache_keyの値など)をリセットするよう修正しています。update_allメソッドと挙動をあわせる為。


Remove duplicate call to verify! in Mysql2Adapter

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

Mysql2Adapterのperform_queryメソッドでverified!が2回実行されてしまっていたのを修正しています。


Change testing ProfileReporter's parent to Reporter

railties/lib/minitest/rails_plugin.rbの修正です。

rails test--profileオプションを指定して実行した場合に、テストがpassした場合もexit codeが1になってしまうバグがあったのを修正しています。




以上の内容はhttps://y-yagi.hatenablog.com/entry/2024/12/04/050813より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14