なるようになるブログ

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

rails commit log流し読み(2021/12/23)

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.rbactivesupport/lib/active_support/core_ext/enumerable.rbの修正です。

Enumerable#sumArray#sumで出力するdeprecateメッセージ内のRailsのバージョンを変更しています。が、これは元のバージョンが正しかった(削除予定のバージョンではなく、deprecateにしたバージョンを出していた)ので、後ほどRevertされています。


Revert "Update the deprecation message for Enumerable#sum and Array#sum"

先程のEnumerable#sumArray#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)でそれぞれ別のキャッシュが作成されていたのを、同じキャッシュを使いまわせるよう修正しています。