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 +4 -4
- data/lib/rack/attack.rb +4 -4
- data/lib/rack/attack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d4400f3695de545e524a11ed1eaa0ae14a5f3d2
|
4
|
+
data.tar.gz: 76c98ade06cea2447a46de122ab23dbc858b8c1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44d33cd6011e99ec3ca5cbdd8d1bcdecb8f2463fbd55e22f0266f0b17d660416f68d7ce46ac6f318549edc25b937ea3f0f73df14e9865dcb26f0d935f43a3682
|
7
|
+
data.tar.gz: 1be320077b7533ad2edb48a7799ee9681641beeb4a0232d2079f664ac73494c3cd5c50f403405656177e70a377435834b1b8af7fc922ecbd3bc72165f8659bf5
|
data/lib/rack/attack.rb
CHANGED
@@ -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)
|
data/lib/rack/attack/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|