rack-attack 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef73037a3db9840b433aeb5a0d185f95edeef9be
4
- data.tar.gz: 98bbf2ea7bbad24f423ff21bf2da4ce4a4f13fc9
3
+ metadata.gz: 0d4400f3695de545e524a11ed1eaa0ae14a5f3d2
4
+ data.tar.gz: 76c98ade06cea2447a46de122ab23dbc858b8c1d
5
5
  SHA512:
6
- metadata.gz: 0c796ea400d3425a0111f16d78efc883113f1fd2a3f55ba624c089978b39235f4851ffe2b546da7b1fe4fce181eea3cff9644185dbb36c373ce22bff3011ddd3
7
- data.tar.gz: a89e8d96ba25124d062d6da2665827d85773876705310a364a6cc74c90e1349c3d5efed63065846770ffd1c0c537fd0a9756539c6d77f8473653c4d7e20f5940
6
+ metadata.gz: 44d33cd6011e99ec3ca5cbdd8d1bcdecb8f2463fbd55e22f0266f0b17d660416f68d7ce46ac6f318549edc25b937ea3f0f73df14e9865dcb26f0d935f43a3682
7
+ data.tar.gz: 1be320077b7533ad2edb48a7799ee9681641beeb4a0232d2079f664ac73494c3cd5c50f403405656177e70a377435834b1b8af7fc922ecbd3bc72165f8659bf5
@@ -68,9 +68,9 @@ class Rack::Attack
68
68
  end
69
69
  end
70
70
 
71
- def whitelisted?
71
+ def whitelisted?(req)
72
72
  warn "[DEPRECATION] 'Rack::Attack.whitelisted?' is deprecated. Please use 'safelisted?' instead."
73
- safelisted?
73
+ safelisted?(req)
74
74
  end
75
75
 
76
76
  def blocklisted?(req)
@@ -79,9 +79,9 @@ class Rack::Attack
79
79
  end
80
80
  end
81
81
 
82
- def blacklisted?
82
+ def blacklisted?(req)
83
83
  warn "[DEPRECATION] 'Rack::Attack.blacklisted?' is deprecated. Please use 'blocklisted?' instead."
84
- blocklisted?
84
+ blocklisted?(req)
85
85
  end
86
86
 
87
87
  def throttled?(req)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Attack
3
- VERSION = '5.0.0'
3
+ VERSION = '5.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-attack
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Suggs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-09 00:00:00.000000000 Z
11
+ date: 2016-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack