2021/07/21分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Add
Middleware#removeto delete middleware or raise if not found. - Deprecate
poltergeistandwebkit(capybara-webkit) driver registration for system testing (they will be removed in Rails 7.1). Addcupriteinstead.
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が不足している箇所があったのを修正しています。