2020/05/02分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activemodel/CHANGELOG.md
Add back the support to pass at
as a proc in the job assertions
activejob/lib/active_job/test_helper.rb
の修正です。
job assertionsのat
引数にProcオブジェクトを渡せるよう修正しています。
Add test for slug to ID with ID is out of range
activerecord/test/cases/base_test.rb
の修正です。
where
の引数のidにslug + 範囲外の値を指定した場合のテストを追加しています。
Support query attrs and bind params in dot output
activerecord/lib/arel/visitors/dot.rb
の修正です。
dot出力でquery attrsとbind paramsをサポートするよう修正しています。
Merge pull request #39108 from kamipo/lock_benchmarck-ips_version
benchmark-ips
のバージョンを2.8.0未満にロックしています。2.8.0だと必要なファイルがgemに含まれておらず、使用時にエラー(LoadError
)になってしまう為。
Support limit(n)
and offset(n)
nodes in dot output
activerecord/lib/arel/visitors/dot.rb
の修正です。
dot出力でlimit(n)
とoffset(n
) nodeをサポートするよう修正しています。
Deprecate passing a column to type_cast
Active Recordの修正です。
type_cast
にcolumnを渡すのがdeprecateになりました。
type castに必要な型情報はtype objectから完全に分離されており、type_cast
にcolumnを渡して処理を行う事は通常不要な為。
Fix minimum
and maximum
on non numeric column
activerecord/lib/active_record/relation/calculations.rb
の修正です。
Fix aggregate functions to return numeric value consistently even on custom attribute typeでaggregation functionsの結果が必ずnumericになるようにしたのですが、minimum
とmaximum
に関してはそうでは無かった(引数にdate
カラムを指定した場合、結果はdate
になる事を期待していた)為、minimum
とmaximum
については元の挙動になるよう修正しています。
Deprecate marshalling load from legacy attributes format
activemodel/lib/active_model/attribute_set/builder.rb
の修正です。
PERF: Recover marshaling dump/load performanceでattribute hashをmarshallした際のフォーマットが変更になったのですが、その変更前の古いフォーマットでのloadのサポートがdeprecateになりました。
Zeitwerkのバージョン指定を~> 2.3
に修正しています。