2022/02/01分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Remove the deprecated urlsafe_csrf_tokens configuration
actionpack/lib/action_controller/metal/request_forgery_protection.rb
、
railties/lib/rails/application/configuration.rb
の修正です。
deprecatedになっていたurlsafe_csrf_tokens
configを削除しています。
Add TestCase#stub_const (#44294)
Active Supportの修正です。
テスト中にconstの値を一時的に変更する為のstub_const
メソッドを追加しています。
# World::List::Import::LARGE_IMPORT_THRESHOLD = 5000 stub_const(World::List::Import, :LARGE_IMPORT_THRESHOLD, 1) do assert_equal 1, World::List::Import::LARGE_IMPORT_THRESHOLD end assert_equal 5000, World::List::Import::LARGE_IMPORT_THRESHOLD
なお、現在はclassの値を直接書き換えている為、上記処理を行った場合他のスレッドにも影響が出るようになっています。
Update upgrade guide for active storage streaming [ci-skip]
rails guideのUpgrading Ruby on Rails
の修正です。
Upgrading from Rails 7.0 to Rails 7.1
の項に、ActiveStorage::BaseController
がActiveStorage::Streaming
moduleをデフォルトではincludeしなくなっている旨説明を追加しています。
activesupport/lib/active_support/testing/constant_stubbing.rb
の修正です。
rubocopの設定に違反している箇所があったのを修正しています。