dansguardian_denied_action 1.0.0 → 1.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1502c15b2c9deabe4079e35f09fd24f7bd60d2a5
|
4
|
+
data.tar.gz: 59c74c329211f99c4f266be1ff7eabaa8e52dc2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2518c03bf762c93f4d60a82c4aed05848abad3ae6476096d6bad84b0cc92dc76f4a85e89d1626117016df61f643fa0760197f40a93a87a26fd2e2054c50e86bc
|
7
|
+
data.tar.gz: b0a3fb9d9af4509d213180fc11cefd7c1480190c103a08aebb3408e0963e3efa5f3106a0a308375bbe9be673f3c624c98e51808eb8754f8b9030ca91836af300
|
@@ -18,15 +18,12 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep( %r{^bin/} ) { |f| File.basename( f ) }
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.required_ruby_version = '>= 2.
|
21
|
+
spec.required_ruby_version = '>= 2.3.0'
|
22
22
|
|
23
|
-
spec.add_dependency 'filewatch'
|
24
|
-
spec.add_dependency 'activesupport'
|
23
|
+
spec.add_dependency 'filewatch', '~> 0.7'
|
25
24
|
|
26
25
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
27
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
28
27
|
spec.add_development_dependency 'rspec', '~> 3.3'
|
29
28
|
spec.add_development_dependency 'rspec-its'
|
30
|
-
spec.add_development_dependency 'fakefs'
|
31
|
-
spec.add_development_dependency 'byebug'
|
32
29
|
end
|
@@ -20,7 +20,7 @@ module DansguardianDeniedAction
|
|
20
20
|
@requesting_user = @parsed[1]
|
21
21
|
@requesting_ip = @parsed[2]
|
22
22
|
@requested_url = @parsed[3]
|
23
|
-
action_reason = @parsed[4]
|
23
|
+
action_reason = @parsed[4]&.split( '*' )&.reject!( &:empty? )&.map!( &:strip )
|
24
24
|
if action_reason
|
25
25
|
@actions = action_reason.first # TODO: This is not getting all the actions, but only the first!
|
26
26
|
@reason = action_reason.last
|
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dansguardian_denied_action
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Terry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: filewatch
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: activesupport
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
17
|
+
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
19
|
+
version: '0.7'
|
34
20
|
type: :runtime
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
|
-
- - "
|
24
|
+
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
26
|
+
version: '0.7'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,34 +80,6 @@ dependencies:
|
|
94
80
|
- - ">="
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: fakefs
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: byebug
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
83
|
description: Triggers a custom action when a site is blocked/denied. Works by monitoring
|
126
84
|
the access log of Dansguardian or e2guardian.
|
127
85
|
email:
|
@@ -160,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
118
|
requirements:
|
161
119
|
- - ">="
|
162
120
|
- !ruby/object:Gem::Version
|
163
|
-
version: 2.
|
121
|
+
version: 2.3.0
|
164
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
123
|
requirements:
|
166
124
|
- - ">="
|
@@ -168,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
126
|
version: '0'
|
169
127
|
requirements: []
|
170
128
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.5.1
|
172
130
|
signing_key:
|
173
131
|
specification_version: 4
|
174
132
|
summary: Dansguardian Denied Action
|