Rack::Attack v6.0.0 Release Notes
Release Date: 2019-04-18 // about 5 years ago-
โ Added
#blocklist
and#safelist
name argument (the first one) is now optional.- โ Added support to subscribe only to specific event types via
ActiveSupport::Notifications
, e.g. subscribe to thethrottle.rack_attack
or theblocklist.rack_attack
event.
๐ Changed
- ๐ Changed
ActiveSupport::Notifications
event naming to comply with the recommended format. - ๐ Changed
ActiveSupport::Notifications
event so that the 5th yielded argument to the#subscribe
method is now aHash
instead of aRack::Attack::Request
, to comply withActiveSupport
s spec. The original request object is still accessible, being the value of the hash's:request
key.
๐ Deprecated
- ๐ Subscriptions via
ActiveSupport::Notifications
to the"rack.attack"
event will continue to work (receive event notifications), but it is going to be removed in a future version. Replace the event name with/rack_attack/
to continue to be subscribed to all events, or"throttle.rack_attack"
e.g. for specific type of events only.
โ Removed
- โ Removed support for ruby 2.2.
- โ Removed support for obsolete memcache-client as a cache store.
- โ Removed deprecated methods
#blacklist
and#whitelist
(use#blocklist
and#safelist
instead).