rack-attack/lib/rack/attack
Genadi Samokovarov d9a5587676 Allow throttle period option to be a proc
I need to filter requests on a period I need to get dynamically out of
information I have in the requests. Currently, I can work out the limit,
as it can be a `Proc`, however I can't do that with the period.

This PR adds support for that. Tried to do it in a way that doesn't
brake backwards compatibility, as periods are coerced to numbers during
`Rack::Throttle` initialization.
2014-09-19 19:32:39 +02:00
..
store_proxy Move individual proxy classes to separate files 2014-04-15 16:19:43 +01:00
allow2ban.rb Make Rack::Attack a class and Rack::Attack.new return an instance of that class, rather than Rack::Attack. 2014-03-28 14:53:51 +11:00
blacklist.rb Make Rack::Attack a class and Rack::Attack.new return an instance of that class, rather than Rack::Attack. 2014-03-28 14:53:51 +11:00
cache.rb Add 1 second buffer to expiry to correct throttles 2014-09-02 14:30:57 -04:00
check.rb Added limit and period options to track. Delegates [] to Throttle if they are present otherwise Check. 2014-05-19 11:11:01 -07:00
fail2ban.rb Make Rack::Attack a class and Rack::Attack.new return an instance of that class, rather than Rack::Attack. 2014-03-28 14:53:51 +11:00
request.rb Improve documentation of Rack::Attack::Request 2014-06-17 11:37:25 -07:00
store_proxy.rb Move individual proxy classes to separate files 2014-04-15 16:19:43 +01:00
throttle.rb Allow throttle period option to be a proc 2014-09-19 19:32:39 +02:00
track.rb Changed track checker to track filter. Made track filter tests more clear. 2014-05-22 10:11:23 -07:00
version.rb version 4.1.1 2014-09-08 21:34:28 -04:00
whitelist.rb Make Rack::Attack a class and Rack::Attack.new return an instance of that class, rather than Rack::Attack. 2014-03-28 14:53:51 +11:00