2023/01/31分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Change
ActionDispatch::Testing::TestResponse#parsed_bodyto parse HTML as a Nokogiri document - Deprecate
AbstractController::Helpers::MissingHelperError
actionpack/CHANGELOG.md、rails guideのRuby on Rails 7.1 Release Notesの修正です。
Rack 3の対応の一環(Use Rack's own headers classes where appropriate.)でActionDispatch::IllegalStateErrorがdeprecateになった為、deprecateになったのをエントリーに追加しています。
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を修正しています。