なるようになるブログ

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

rails commit log流し読み(2020/01/09)

2020/01/09分のコミットです。

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


Revert "Merge pull request #38053 from Shopify/actionmailer-6-0-stable-ruby-2.7-warnings"

Active JobのRuby 2.7のwarning対応を行った、Merge pull request #38053 from Shopify/actionmailer-6-0-stable-ruby-2.7-warningsをRevertしています。

perform実行時にextract_options!オプションを使用するようにした影響で、jobの引数にkeyがStringのHashを渡した場合にエラーになってしまうようになった為。


Merge pull request #38169 from gsamokovarov/rails-middleware-move-before-after

actionpack/lib/action_dispatch/middleware/stack.rbの修正です。

middlewareの順序を移動するためのmove(move_before) / move_afterメソッドを追加しています。


Fix deprecation warnings in Active Support tests

activesupport/test/core_ext/range_ext_test.rbの修正です。

Range#include?に関するdeprecation warningが出ていたのを対応しています。


Do not define instance predicate if the instance reader isn't as well

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

class_attribute instance accessorsの性能改善を行った、Optimize class_attribute instance accessorsの対応で、instance_readerがfalseの場合にもpredicateメソッドが定義されてしまうリグレッションが発生してしまっていたのを修正しています。