From 9c4dccac48abeacb5bfb9178e8508f33e63a48ae Mon Sep 17 00:00:00 2001 From: Aaron Suggs Date: Mon, 6 Aug 2012 12:17:29 -0400 Subject: [PATCH] Make cache & notifier attr_accessors Easier config for non-rails apps --- lib/rack/attack.rb | 3 +-- lib/rack/attack/version.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/rack/attack.rb b/lib/rack/attack.rb index 77a9b53..3c90002 100644 --- a/lib/rack/attack.rb +++ b/lib/rack/attack.rb @@ -7,8 +7,7 @@ module Rack::Attack class << self - attr_reader :cache, :notifier - attr_accessor :blacklisted_response, :throttled_response + attr_accessor :cache, :notifier, :blacklisted_response, :throttled_response def whitelist(name, &block) self.whitelists[name] = Whitelist.new(name, block) diff --git a/lib/rack/attack/version.rb b/lib/rack/attack/version.rb index 90c6d1b..6d2484b 100644 --- a/lib/rack/attack/version.rb +++ b/lib/rack/attack/version.rb @@ -1,5 +1,5 @@ module Rack module Attack - VERSION = '1.0.0' + VERSION = '1.1.0' end end