なるようになるブログ

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

rails commit log流し読み(2019/08/21)

2019/08/21分のコミットです。

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


Support extra stuff in the Content-Type header via Mime registration

actionpack/lib/action_dispatch/http/response.rbの修正です。

Content-Type headerをパースした際に、mime type、charset以外の補足情報も保持するよう修正しています。

mime type registerで補足情報付きで登録した場合(e.g. text/html; fragment)に、その指定したmime typeと一致させる為に補足情報も必要な為。


Merge pull request #36998 from jhawthorn/reaper_fork

activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rbの修正です。

connections reaperがfork後に動作しないバグがあったのを修正しています。


Merge pull request #36930 from eugeneius/active_record_base_connection_specification_name

activerecord/lib/active_record/connection_handling.rbの修正です。

connection_specification_nameメソッドでActiveRecord::BaseApplicationRecordどちらもprimaryとみなすようになっていたのを、ActiveRecord::Baseのみprimaryとみなすよう修正しています。

ActiveRecord::Baseconnection_specification_nameを指定した場合にその内容子クラスで使用されるようにする為。


Fix error on reap/flush for closed connection pool

activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rbの修正です。

ConnectionPool#reap#flushメソッドでclose済みのconnectionに対しても処理を行ってしまい、結果エラーになってしまうバグがあったのを修正しています。


Merge pull request #37003 from abhaynikam/change-rails-gem-version-in-bug-report-template

bug report templatesの修正です。

bug report templatesで使用するRailsのバージョンを6.0.0に更新しています。


Generate new apps with latest puma version

railties/lib/rails/generators/app_base.rbの修正です。

rails newで生成するGemfile内のPumaのバージョン指定を、4系を使用するよう修正しています。


Removed unused NullContentTypeHeader after changes in #36996

actionpack/lib/action_dispatch/http/response.rbの修正です。

使用していないNullContentTypeHeaderを削除しています。