2017/03/11分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Make sure local cache cleared even it’s throwing:
activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb
の修正です。
ActiveSupport::Cache::Strategy::LocalCache
moduleでエラー発生時のcache clear処理にrescue Exception
を使用していたのを、ensure
を使用して処理を行うよう修正しています。
+ cleanup_on_body_close = true response rescue Rack::Utils::InvalidParameterError - LocalCacheRegistry.set_cache_for(local_cache_key, nil) [400, {}, []] - rescue Exception - LocalCacheRegistry.set_cache_for(local_cache_key, nil) - raise + ensure + LocalCacheRegistry.set_cache_for(local_cache_key, nil) unless + cleanup_on_body_close end
wardenを使用している場合に、wardenがthrowされたエラーをcatchしてしまい、LocalCache
の後処理が行われないことがある為、確実に処理が行われるようにする為にensure
を使用するようにしたとのことです。
Improve readability of testing guide [ci skip]
rails guideのA Guide to Testing Rails Applications
の修正です。
Rails meets Minitest
の項、test
メソッドについて説明している箇所の言い回しを修正しています。
Merge pull request #28355 from Edouard-chin/reversemerge-for-strongparameters
actionpack/lib/action_controller/metal/strong_parameters.rb
の修正です。
ActionController::Parameters
クラスにreverse_merge
及びreverse_merge!
メソッドを追加しています。
Add @takkanm credits in the changelog [ci skip]
actionpack/CHANGELOG.md
の修正です。
先のreverse_merge
、 reverse_merge!
メソッドの対応についてのエントリーのクレジットにtakkanm さんを追加しています。元々同じ内容のPRをtakkanmさんが出されていた為。
Fix indentation and formatting in CHANGELOGs [ci skip]
actionpack/CHANGELOG.md
、activesupport/CHANGELOG.md
の修正です。
各エントリーのフォーマット、インデントの修正を行っています。
[docs] remove unnecessary sentence
actionpack/lib/action_controller/api.rb
のdocの修正です。
ActionController::API
クラスのdoc内に不要な説明があったのを削除しています。