README.md in improved-rack-throttle-0.8.0 vs README.md in improved-rack-throttle-0.9.0
- old
+ new
@@ -64,10 +64,16 @@
### Enforcing a minimum 3-second interval between requests
use Rack::Throttle::Interval, :min => 3.0
+### Allowing a maximum of 100 requests per hour, for the foo basic auth
+user
+
+ use Rack::Throttle::Hourly, :max => 100, :rules => {:basic_auth =>
+/foo/}
+
### Allowing a maximum of 100 requests per hour
use Rack::Throttle::Hourly, :max => 100
### Allowing a maximum of 1,000 requests per day
@@ -198,9 +204,10 @@
* {Rack::Throttle::SlidingWindow}
* {Rack::Throttle::Matcher}
* {Rack::Throttle::MethodMatcher}
* {Rack::Throttle::UrlMatcher}
* {Rack::Throttle::UserAgentMatcher}
+ * {Rack::Throttle::BasicAuthMatcher}
Dependencies
------------
* [Rack](http://rubygems.org/gems/rack) (>= 1.0.0)