From c29e0f70ed1a520285c231b0ec1ee6a2052aabf5 Mon Sep 17 00:00:00 2001 From: Sebastiaan Pouyet Date: Fri, 26 Jun 2020 12:33:06 +0200 Subject: Mark "Remove `to_ary` from Response` as breaking Response `to_ary` was removed in commit 72959ebc2f300f3b2ccb7ae2aae9f199e611dfb6. This is a breaking change if the response is used for multiple assignment. Example (works for < 2.1.0): ``` status, headers, body = response ``` The value of `headers` will be `nil` in version > 2.1.0. To prevent this the response must be explicitly cast to an array with `to_a`. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ddf82d..f4faeef9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -173,7 +173,7 @@ All notable changes to this project will be documented in this file. For info on ### Removed -- Remove `to_ary` from Response ([@tenderlove](https://github.com/tenderlove)) +- BREAKING CHANGE: Remove `to_ary` from Response ([@tenderlove](https://github.com/tenderlove)) - Deprecate `Rack::Session::Memcache` in favor of `Rack::Session::Dalli` from dalli gem ([@fatkodima](https://github.com/fatkodima)) ### Fixed -- cgit v1.2.1