firewall_constraint 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
data/firewall_constraint.gemspec
CHANGED
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.rubyforge_project = "firewallconstraint"
|
16
16
|
|
17
|
-
s.add_development_dependency(%q<rails>, ["3.0
|
18
|
-
s.add_dependency(%q<rails>,
|
17
|
+
s.add_development_dependency(%q<rails>, ["3.2.0"])
|
18
|
+
s.add_dependency(%q<rails>, ">= 3.0.0", "<3.3.0")
|
19
19
|
s.add_dependency(%q<ipaddress>)
|
20
20
|
s.add_development_dependency(%q<shoulda>, "~> 3.0.0")
|
21
21
|
s.add_development_dependency(%q<rspec-rails>, ["~> 2.5.0"])
|
data/spec/rails_app/Gemfile
CHANGED
@@ -48,13 +48,11 @@ describe "dummy stuff" do
|
|
48
48
|
end
|
49
49
|
|
50
50
|
it 'should not vomit on an ipv4 rule' do
|
51
|
-
get '/dummy/blocked_by_block'
|
52
|
-
response.status.should eql 404
|
51
|
+
lambda { get '/dummy/blocked_by_block' }.should raise_error ActionController::RoutingError
|
53
52
|
end
|
54
53
|
|
55
54
|
it 'should block on an ipv6 rule' do
|
56
|
-
get '/dummy/blocked_by_ipv6'
|
57
|
-
response.status.should eql 404
|
55
|
+
lambda { get '/dummy/blocked_by_ipv6'}.should raise_error ActionController::RoutingError
|
58
56
|
end
|
59
57
|
end
|
60
58
|
|
@@ -63,8 +61,7 @@ describe "dummy stuff" do
|
|
63
61
|
get root_path, nil, "REMOTE_ADDR" => ipv6
|
64
62
|
open_session do |sess|
|
65
63
|
sess.remote_addr = ipv6
|
66
|
-
get '/dummy/blocked_by_block'
|
67
|
-
response.status.should eql 404
|
64
|
+
lambda {get '/dummy/blocked_by_block'}.should raise_error ActionController::RoutingError
|
68
65
|
end
|
69
66
|
end
|
70
67
|
|
@@ -98,28 +95,24 @@ describe "dummy stuff" do
|
|
98
95
|
end
|
99
96
|
|
100
97
|
it 'should not vomit on an ipv4 rule' do
|
101
|
-
get '/dummy/blocked_by_ipv6'
|
102
|
-
|
98
|
+
lambda {get '/dummy/blocked_by_ipv6'}.should raise_error ActionController::RoutingError
|
99
|
+
|
103
100
|
end
|
104
101
|
|
105
102
|
it 'should not get inline constraint' do
|
106
|
-
get '/dummy/blocked_by_inline'
|
107
|
-
response.status.should eql 404
|
103
|
+
lambda {get '/dummy/blocked_by_inline'}.should raise_error ActionController::RoutingError
|
108
104
|
end
|
109
105
|
|
110
106
|
it 'should not get procced constraint' do
|
111
|
-
get '/dummy/blocked_by_proc'
|
112
|
-
response.status.should eql 404
|
107
|
+
lambda {get '/dummy/blocked_by_proc'}.should raise_error ActionController::RoutingError
|
113
108
|
end
|
114
109
|
|
115
110
|
it 'should not get block constraint' do
|
116
|
-
get '/dummy/blocked_by_block'
|
117
|
-
response.status.should eql 404
|
111
|
+
lambda{get '/dummy/blocked_by_block'}.should raise_error ActionController::RoutingError
|
118
112
|
end
|
119
113
|
|
120
114
|
it 'should not get dynamic constraint' do
|
121
|
-
get '/dummy/blocked_by_dynamic'
|
122
|
-
response.status.should eql 404
|
115
|
+
lambda{get '/dummy/blocked_by_dynamic'}.should raise_error ActionController::RoutingError
|
123
116
|
end
|
124
117
|
end
|
125
118
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firewall_constraint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mike Auclair
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - "="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 15
|
29
29
|
segments:
|
30
30
|
- 3
|
31
|
+
- 2
|
31
32
|
- 0
|
32
|
-
|
33
|
-
version: 3.0.5
|
33
|
+
version: 3.2.0
|
34
34
|
type: :development
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
hash: 7
|
45
45
|
segments:
|
@@ -47,6 +47,14 @@ dependencies:
|
|
47
47
|
- 0
|
48
48
|
- 0
|
49
49
|
version: 3.0.0
|
50
|
+
- - <
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
hash: 11
|
53
|
+
segments:
|
54
|
+
- 3
|
55
|
+
- 3
|
56
|
+
- 0
|
57
|
+
version: 3.3.0
|
50
58
|
type: :runtime
|
51
59
|
version_requirements: *id002
|
52
60
|
- !ruby/object:Gem::Dependency
|