despamilator 0.7 → 0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +10 -1
- data/despamilator.gemspec +1 -1
- data/lib/despamilator/filter/naughty_words.rb +9 -0
- data/lib/despamilator/filter/urls.rb +1 -1
- data/lib/despamilator.rb +1 -1
- data/spec/filters/urls_spec.rb +3 -3
- metadata +3 -3
data/History.txt
CHANGED
@@ -22,4 +22,13 @@
|
|
22
22
|
|
23
23
|
=== 0.5 2010-08-31
|
24
24
|
|
25
|
-
* Added Rails validation sugar (despamilator/validation).
|
25
|
+
* Added Rails validation sugar (despamilator/validation).
|
26
|
+
|
27
|
+
=== 0.6 2010-08-31
|
28
|
+
|
29
|
+
* Corrected Rails validation sugar to work with Passenger!
|
30
|
+
|
31
|
+
=== 0.7 2010-09-01
|
32
|
+
|
33
|
+
* Corrected typo in project home page. Big stuff.
|
34
|
+
|
data/despamilator.gemspec
CHANGED
data/lib/despamilator.rb
CHANGED
data/spec/filters/urls_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../spec_helper.rb'
|
|
3
3
|
describe "Url" do
|
4
4
|
it "should return a score for 1 url" do
|
5
5
|
dspam = Despamilator.new('http://www.blah.com')
|
6
|
-
dspam.score.should == 0.
|
6
|
+
dspam.score.should == 0.2
|
7
7
|
end
|
8
8
|
|
9
9
|
describe 'attributes' do
|
@@ -28,12 +28,12 @@ describe "Url" do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
it "should have a score" do
|
31
|
-
@filter.score.should == 0.
|
31
|
+
@filter.score.should == 0.2
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
it "should score more for 2 misplaced urls" do
|
36
36
|
dspam = Despamilator.new('http://www.blah.com http://www.poop.com')
|
37
|
-
dspam.score.to_s.should == 0.
|
37
|
+
dspam.score.to_s.should == 0.4.to_s
|
38
38
|
end
|
39
39
|
end
|
metadata
CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
version: "0.
|
7
|
+
- 8
|
8
|
+
version: "0.8"
|
9
9
|
platform: ruby
|
10
10
|
authors:
|
11
11
|
- Stephen Hardisty
|
@@ -13,7 +13,7 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date: 2010-09-
|
16
|
+
date: 2010-09-25 00:00:00 +10:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|