2021/12/23分のコミットです。
CHANGELOGへの追加はありませんでした。
Use built-in bundler-cache from setup-ruby action
.github/workflows/rubocop.yml
の修正です。
gemsをcacheするのにactions/cache
actionを使用していたのを、ruby/setup-ruby
actionで提供されているcacheの仕組みを使用するよ修正しています。
dump the dynamic route segments deprication horizon as it was not removed for rails 7.0
actionpack/lib/action_dispatch/routing/route_set.rb
の修正です。
routesのpath parametersに:controller
、:action
を指定した場合に出力するdeprecateメッセージ内の挙動変更のバージョンを7.0から7.1に変更しています。7.0では現状のままとなった為。
Update the deprecation message for Enumerable#sum
and Array#sum
activerecord/lib/active_record/relation/calculations.rb
、
activesupport/lib/active_support/core_ext/enumerable.rb
の修正です。
Enumerable#sum
とArray#sum
で出力するdeprecateメッセージ内のRailsのバージョンを変更しています。が、これは元のバージョンが正しかった(削除予定のバージョンではなく、deprecateにしたバージョンを出していた)ので、後ほどRevertされています。
Revert "Update the deprecation message for Enumerable#sum
and Array#sum
"
先程のEnumerable#sum
とArray#sum
で出力するdeprecateメッセージ内のRailsのバージョンを変更した対応をRevertしています。
ActiveRecord::Core: improve find by cache hit rate
activerecord/lib/active_record/core.rb
の修正です。
Model.find(xx)
とModel.find_by(id: xx)
でそれぞれ別のキャッシュが作成されていたのを、同じキャッシュを使いまわせるよう修正しています。