なるようになるブログ

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

rails commit log流し読み(2023/01/31)

2023/01/31分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

actionpack/CHANGELOG.md


Update CHANGELOG

actionpack/CHANGELOG.mdrails guideのRuby on Rails 7.1 Release Notesの修正です。

Rack 3の対応の一環(Use Rack's own headers classes where appropriate.)でActionDispatch::IllegalStateErrorがdeprecateになった為、deprecateになったのをエントリーに追加しています。


Merge PR #47144

Action Packの修正です。

ActionDispatch::Testing::TestResponse#parsed_bodyでcontentがHTMLだった場合に、HTMLをNokogiriでパースするよう修正しています。

get "/posts"
response.content_type         # => "text/html; charset=utf-8"
response.parsed_body.class    # => Nokogiri::HTML5::Document
response.parsed_body.to_html  # => "<!DOCTYPE html>\n<html>\n..."

Rm unused load_error core_ext in Action Controller

actionpack/lib/action_controller.rbの修正です。

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


Deprecate AbstractController MissingHelperError

actionpack/lib/abstract_controller/helpers.rbの修正です。

loaderがZeitwerkに移行したことにより使用されなくなったAbstractController::Helpers::MissingHelperErrorをdeprecatedにしています。


Use AD.deprecator for IllegalStateError

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

ActionDispatch::IllegalStateErrorのdeprecateメッセージを出力するのにActionDispatch.deprecatorを使用するよう修正しています。


Fix header level for "Array of Multiple Associations" [ci-skip]

rails guideのActive Record Query Interfaceの修正です。

Array of Multiple Associations sectionのheader levelを修正しています。