summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiaan Pouyet <srpouyet@users.noreply.github.com>2020-06-26 12:33:06 +0200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-06-29 14:14:24 +1200
commitc29e0f70ed1a520285c231b0ec1ee6a2052aabf5 (patch)
treec84675433523eb73c33c7ff0c8df068700437a72
parent1245e423fabeb04cc493b3eaddbd2625f7331b7f (diff)
downloadrack-c29e0f70ed1a520285c231b0ec1ee6a2052aabf5.tar.gz
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`.
-rw-r--r--CHANGELOG.md2
1 files changed, 1 insertions, 1 deletions
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