2021/07/21分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Add
Middleware#remove
to delete middleware or raise if not found. - Deprecate
poltergeist
andwebkit
(capybara-webkit) driver registration for system testing (they will be removed in Rails 7.1). Addcuprite
instead.
Add Middleware#remove
to delete middleware or raise if not found.
actionpack/lib/action_dispatch/middleware/stack.rb
の修正です。
Deleting an item from the Middleware stack should raise if the item is not foundで、middleware stackから存在しないmiddlewareをMiddleware#delete
で削除しようとした際にexceptionをraiseするよう修正したのですが、全ての環境で同じmiddlewareを使っていないよう場合にはexceptionはraiseして欲しくない、Array#delete
は存在しない要素を削除してもexceptionはraiseしないので挙動が違うのは違和感がある、等の理由により、Middleware#delete
はexceptionをraiseしないよう戻し、変わりに、存在しないmiddlewareを削除しようとした場合にexceptionをraiseするMiddleware#remove
メソッドを追加しています。
activestorage/app/models/active_storage/attachment.rb
のdocの修正です。
docとメソッドの定義の間にあった不要な空行を削除しています。
chore: Use e.g.
which is the more used spelling
docの修正です。
各箇所のeg.
をe.g.
にまとめて修正しています。
Fix referencing a capture in a string [ci skip]
railties/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb.tt
のdocの修正です。
inflectのexampleでRegexpのcaptureした値の参照方法が誤っていたのを修正しています。
CHANGELOGの修正です。
各ファイルのフォーマットの修正を行っています。
Merge pull request #42790 from YusukeIwaki/replace_poltergeist_with_cuprite
actionpack/lib/action_dispatch/system_testing/driver.rb
の修正です。
system testingでのpoltergeist
と capybara-webkit
のサポートをdeprecateにしています。どっちももうメンテされていない為。合わせて、cupriteのサポートを追加しています。
Correct Inflector.humanize keep_id_suffix argument docs
activesupport/lib/active_support/core_ext/string/inflections.rb
、
activesupport/lib/active_support/inflector/methods.rb
のdocの修正です。
Inflector.humanize
の実行結果の例が実際の結果と異なっていたのを修正しています。
Merge pull request #42649 from Shopify/local-cache-refactor
Active Supportの修正です。
local cacheの書き込み処理でentryに対するserialize処理が2回行われるようになっていたのを、1回で済むようリファクタリングしています。
Fix changelog entry for active_record.partial_inserts
activerecord/CHANGELOG.md
の修正です。
config.active_record.partial_inserts
を有効にする場合に設定する値が誤っていたのを修正しています。
Address FixturesWithForeignKeyViolationsTest#test_does_not_raise_if_no_fk_violations
Active Recordのテストの修正です。
loadするfixtureが不足している箇所があったのを修正しています。