Make cache & notifier attr_accessors

Easier config for non-rails apps
This commit is contained in:
Aaron Suggs 2012-08-06 12:17:29 -04:00
parent d50e779cdc
commit 9c4dccac48
2 changed files with 2 additions and 3 deletions

View file

@ -7,8 +7,7 @@ module Rack::Attack
class << self class << self
attr_reader :cache, :notifier attr_accessor :cache, :notifier, :blacklisted_response, :throttled_response
attr_accessor :blacklisted_response, :throttled_response
def whitelist(name, &block) def whitelist(name, &block)
self.whitelists[name] = Whitelist.new(name, block) self.whitelists[name] = Whitelist.new(name, block)

View file

@ -1,5 +1,5 @@
module Rack module Rack
module Attack module Attack
VERSION = '1.0.0' VERSION = '1.1.0'
end end
end end