despamilator 2.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/despamilator.gemspec +2 -2
- data/lib/despamilator/filter/shouting.rb +1 -1
- data/lib/despamilator.rb +1 -1
- data/spec/filters/shouting_spec.rb +1 -0
- metadata +6 -6
data/despamilator.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{despamilator}
|
5
|
-
s.version = "2.0"
|
5
|
+
s.version = "2.0.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Stephen Hardisty"]
|
9
|
-
s.date = %q{2011-
|
9
|
+
s.date = %q{2011-08-11}
|
10
10
|
s.description = %q{Despamilator is a plugin based spam detector designed for use on your web forms borne out of two annoyances:
|
11
11
|
Spam being submitted in my web forms and CAPTCHAS being intrusive. Despamilator will apply
|
12
12
|
some commonly used heuristics from the world of anti-spam to help you decide whether your users are human or machine.}
|
data/lib/despamilator.rb
CHANGED
@@ -28,6 +28,7 @@ describe DespamilatorFilter::Shouting do
|
|
28
28
|
|
29
29
|
[
|
30
30
|
['this is a lowercased string', 0],
|
31
|
+
['This is a String with Capital Letters', 0],
|
31
32
|
['this lil string is 50 PERCENT SHOUTING', 0.25],
|
32
33
|
['THIS LIL STRING IS 100 PERCENT SHOUTING', 0.5]
|
33
34
|
].each do |string, expected_score|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: despamilator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-08-11 00:00:00.000000000 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubyforge
|
17
|
-
requirement: &
|
17
|
+
requirement: &2730850 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 2.0.4
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2730850
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: hoe
|
28
|
-
requirement: &
|
28
|
+
requirement: &2730610 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 2.7.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2730610
|
37
37
|
description: ! 'Despamilator is a plugin based spam detector designed for use on your
|
38
38
|
web forms borne out of two annoyances:
|
39
39
|
|