swearjar 0.0.1 → 0.0.2
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/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/swearjar.rb +1 -1
- data/spec/swearjar_spec.rb +4 -0
- metadata +30 -15
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ begin
|
|
4
4
|
require 'jeweler'
|
5
5
|
Jeweler::Tasks.new do |s|
|
6
6
|
s.name = "swearjar"
|
7
|
-
s.description = s.summary = "Put another nickel in the swearjar."
|
7
|
+
s.description = s.summary = "Put another nickel in the swearjar. Simple profanity detection with content analysis."
|
8
8
|
s.email = "joshbuddy@gmail.com"
|
9
9
|
s.homepage = "http://github.com/joshbuddy/swearjar"
|
10
10
|
s.authors = "Joshua Hull"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/swearjar.rb
CHANGED
data/spec/swearjar_spec.rb
CHANGED
@@ -6,6 +6,10 @@ describe Swearjar do
|
|
6
6
|
Swearjar.default.profane?('fuck you jim henson').should be_true
|
7
7
|
end
|
8
8
|
|
9
|
+
it "should detect dirty words regardless of case" do
|
10
|
+
Swearjar.default.profane?('FuCk you jim henson').should be_true
|
11
|
+
end
|
12
|
+
|
9
13
|
it "should not detect non-dirty words" do
|
10
14
|
Swearjar.default.profane?('i love you jim henson').should be_false
|
11
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swearjar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Joshua Hull
|
@@ -9,30 +14,38 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-05-19 00:00:00 -04:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: fuzzyhash
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 0
|
30
|
+
- 11
|
23
31
|
version: 0.0.11
|
24
|
-
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: dirge
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
- 0
|
44
|
+
- 3
|
33
45
|
version: 0.0.3
|
34
|
-
|
35
|
-
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
description: Put another nickel in the swearjar. Simple profanity detection with content analysis.
|
36
49
|
email: joshbuddy@gmail.com
|
37
50
|
executables: []
|
38
51
|
|
@@ -63,21 +76,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
76
|
requirements:
|
64
77
|
- - ">="
|
65
78
|
- !ruby/object:Gem::Version
|
79
|
+
segments:
|
80
|
+
- 0
|
66
81
|
version: "0"
|
67
|
-
version:
|
68
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
83
|
requirements:
|
70
84
|
- - ">="
|
71
85
|
- !ruby/object:Gem::Version
|
86
|
+
segments:
|
87
|
+
- 0
|
72
88
|
version: "0"
|
73
|
-
version:
|
74
89
|
requirements: []
|
75
90
|
|
76
91
|
rubyforge_project:
|
77
|
-
rubygems_version: 1.3.
|
92
|
+
rubygems_version: 1.3.6
|
78
93
|
signing_key:
|
79
94
|
specification_version: 3
|
80
|
-
summary: Put another nickel in the swearjar.
|
95
|
+
summary: Put another nickel in the swearjar. Simple profanity detection with content analysis.
|
81
96
|
test_files:
|
82
97
|
- spec/spec_helper.rb
|
83
98
|
- spec/swearjar_spec.rb
|