Merge pull request #198 from kickstarter/fix-deprecated-args

Fix args to deprecated methods
This commit is contained in:
Aaron Suggs 2016-08-11 13:58:26 -04:00 committed by GitHub
commit 68158ee133
2 changed files with 5 additions and 5 deletions

View file

@ -68,9 +68,9 @@ class Rack::Attack
end
end
def whitelisted?
def whitelisted?(req)
warn "[DEPRECATION] 'Rack::Attack.whitelisted?' is deprecated. Please use 'safelisted?' instead."
safelisted?
safelisted?(req)
end
def blocklisted?(req)
@ -79,9 +79,9 @@ class Rack::Attack
end
end
def blacklisted?
def blacklisted?(req)
warn "[DEPRECATION] 'Rack::Attack.blacklisted?' is deprecated. Please use 'blocklisted?' instead."
blocklisted?
blocklisted?(req)
end
def throttled?(req)

View file

@ -1,5 +1,5 @@
module Rack
class Attack
VERSION = '5.0.0'
VERSION = '5.0.1'
end
end