From d0ec4de69bf4a8b421ffda2e42181669b30ce01e Mon Sep 17 00:00:00 2001 From: Gonzalo Date: Sat, 29 Jan 2022 16:15:15 -0300 Subject: [PATCH] Bump gem version to v6.6.0 --- CHANGELOG.md | 16 ++++++++++++++++ lib/rack/attack/version.rb | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7fbfbf3..552aaac1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project will be documented in this file. +## [6.6.0] - 2022-01-29 + +### Added + +- Ability to have access to the `request` object instead of only `env` (still can access env with `request.env`) when +customizing throttle and blocklist responses with new methods `Rack::Attack.blocklisted_responder=` and +`Rack::Attack.throttled_responder=` which yield the request to your lambda. ([@NikolayRys]) + +### Deprecated + +- `Rack::Attack.blocklisted_response=` +- `Rack::Attack.throttled_response=` + ## [6.5.0] - 2021-02-07 ### Added @@ -251,6 +264,8 @@ so your custom code is less prone to race conditions ([#282](https://github.com/ - Remove unused variable - Extract mandatory options to constants + +[6.6.0]: https://github.com/rack/rack-attack/compare/v6.5.0...v6.6.0/ [6.5.0]: https://github.com/rack/rack-attack/compare/v6.4.0...v6.5.0/ [6.4.0]: https://github.com/rack/rack-attack/compare/v6.3.1...v6.4.0/ [6.3.1]: https://github.com/rack/rack-attack/compare/v6.3.0...v6.3.1/ @@ -286,3 +301,4 @@ so your custom code is less prone to race conditions ([#282](https://github.com/ [@fatkodima]: https://github.com/fatkodima [@rofreg]: https://github.com/rofreg +[@NikolayRys]: https://github.com/NikolayRys diff --git a/lib/rack/attack/version.rb b/lib/rack/attack/version.rb index 0c28e155..19defa79 100644 --- a/lib/rack/attack/version.rb +++ b/lib/rack/attack/version.rb @@ -2,6 +2,6 @@ module Rack class Attack - VERSION = '6.5.0' + VERSION = '6.6.0' end end