2022/09/08分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Fix connection handler methods to operate on all pools.
- Deprecate
all_connection_pools
and makeconnection_pool_list
more explicit.
Make ActionView::PathSet immutable
Action Viewの修正です。
ActionView::PathSet
の状態を変更するメソッドを削除し、ActionView::PathSet
がimmutableになるよう修正しています。また、削除されたメソッドの代わりに、新規にPathSetを生成する為のbuilderメソッドを追加しています。
Fix bug in connection handler methods using all pools
Active Recordの修正です。
connection handler methods(active_connections?
, clear_active_connections!
, clear_reloadable_connections!
, clear_all_connections!
, 及び flush_idle_connections!
)が、roleが指定されていない場合current_role
または :writing
roleのpoolにしか処理をしなかったのを、デフォルトで全てのpoolに対して処理を行うよう修正しています。起動時に呼ばれる処理(flush_idle_connections
、clear_active_connections!
など)は、roleに関わらず全てのpoolに対して行われる事が期待されている処理な為、デフォルトを全てのpoolに対しての処理に変更したとの事です。
Make connection_pool_list take an explicit argument
Active Recordの修正です。
all_connection_pools
メソッドをdeprecatedに変更、及び、connection_pool_list
メソッドの引数の指定を必須に変更しています。all_connection_pools
メソッドと同様の結果が必要な場合、connection_pool_list(:all)
を使用する必要があります。
Fix loading records with encrypted attributes defined on columns with default values
activerecord/lib/active_record/encryption/encryptable_record.rb
、
activerecord/lib/active_record/encryption/encrypted_attribute_type.rb
の修正です。
encrypted attributesにcolumnsのdefault valueが反映されないバグがあったのを修正しています。
Make contributing guide consistent about bug fixes
rails guideのContributing to Ruby on Rails
の修正です。
CHANGELOGについて説明している箇所で、軽微なbug fixの場合CHANGELOGの追加は不要である旨説明を修正しています。
Show BCC recipients in mailer preview
railties/lib/rails/templates/rails/mailers/email.html.erb
の修正です。
mailerのpreivewでBCC recipientsを表示するよう修正しています。
Enable Minitest/AssertRaisesWithRegexpArgument
cop
Minitest/AssertRaisesWithRegexpArgument
copで指摘される内容の修正を行っています。実際のcopの追加は後ほど別コミットで行われています。
Enable Minitest/AssertRaisesWithRegexpArgument
cop
Minitest/AssertRaisesWithRegexpArgument
copを追加しています。
Fix typo in :active_record_suppressor_registry symbol
activerecord/lib/active_record/suppressor.rb
の修正です。
suppressor
をsuppresor
にタイポしていたのを修正しています。
Reduce allocations of pool_configs
Active Recordの修正です。
pool_configs
の取得処理で、オブジェクト生成数を減らすようリファクタリングしています。
Merge pull request #45495 from okuramasafumi/rewrite-pull-request-template
.github/pull_request_template.md
の修正です。
PRのテンプレートに、Checklist
等記載して欲しい内容を追加しています。
Add ability to run only before/around/after callbacks in run_callbacks
activesupport/lib/active_support/callbacks.rb
の修正です。
run_callbacks
メソッドで、どのcallback(before/around/afterのどれか)のみを実行するかを引数で指定出来るよう修正しています。