mollom 0.2.0 → 0.2.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -4,8 +4,8 @@ class Mollom
4
4
 
5
5
  Unknown = 0
6
6
  Ham = 1
7
- Unsure = 2
8
- Spam = 3
7
+ Spam = 2
8
+ Unsure = 3
9
9
 
10
10
  # This class should only be initialized from within the +check_content+ command.
11
11
  def initialize(hash)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mollom}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jan De Poorter"]
12
- s.date = %q{2010-03-10}
12
+ s.date = %q{2010-03-15}
13
13
  s.description = %q{Ruby class for easy interfacing with the mollom.com open API for spam detection and content quality assesment.}
14
14
  s.email = %q{mollom@openminds.be}
15
15
  s.extra_rdoc_files = [
@@ -4,7 +4,7 @@ require "mollom"
4
4
 
5
5
  class TestContentResponse < Test::Unit::TestCase
6
6
  def test_spam
7
- cr = Mollom::ContentResponse.new('spam' => 3, 'session_id' => '1', 'quality' => '10')
7
+ cr = Mollom::ContentResponse.new('spam' => 2, 'session_id' => '1', 'quality' => '10')
8
8
  assert cr.spam?
9
9
  assert !cr.ham?
10
10
  assert_equal 'spam', cr.to_s
@@ -25,7 +25,7 @@ class TestContentResponse < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  def test_unsure
28
- cr = Mollom::ContentResponse.new('spam' => 2, 'session_id' => '1', 'quality' => '10')
28
+ cr = Mollom::ContentResponse.new('spam' => 3, 'session_id' => '1', 'quality' => '10')
29
29
  assert cr.unsure?
30
30
  assert !cr.unknown?
31
31
  assert_equal 'unsure', cr.to_s
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan De Poorter
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-10 00:00:00 +01:00
17
+ date: 2010-03-15 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20