swearjar 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/swearjar/version.rb +1 -1
- data/spec/swearjar_spec.rb +5 -5
- data/swearjar.gemspec +3 -4
- metadata +10 -23
data/lib/swearjar/version.rb
CHANGED
data/spec/swearjar_spec.rb
CHANGED
@@ -10,11 +10,6 @@ describe Swearjar do
|
|
10
10
|
Swearjar.default.profane?('FuCk you jim henson').should be_true
|
11
11
|
end
|
12
12
|
|
13
|
-
it "should detect simple dirty plurals" do
|
14
|
-
Swearjar.default.profane?('jim henson had two dicks').should be_true
|
15
|
-
Swearjar.default.profane?('jim henson has two asses').should be_true
|
16
|
-
end
|
17
|
-
|
18
13
|
it "should not detect non-dirty words" do
|
19
14
|
Swearjar.default.profane?('i love you jim henson').should be_false
|
20
15
|
end
|
@@ -31,6 +26,11 @@ describe Swearjar do
|
|
31
26
|
Swearjar.default.scorecard('jim henson has a hard ons').should == {'sexual'=>1}
|
32
27
|
end
|
33
28
|
|
29
|
+
it "should detect simple dirty plurals" do
|
30
|
+
Swearjar.default.profane?('jim henson had two dicks').should be_true
|
31
|
+
Swearjar.default.profane?('jim henson has two asses').should be_true
|
32
|
+
end
|
33
|
+
|
34
34
|
it "should censor a string" do
|
35
35
|
Swearjar.default.censor('jim henson has a massive hard on he is gonna use to fuck everybody').should == 'jim henson has a massive **** ** he is gonna use to **** everybody'
|
36
36
|
end
|
data/swearjar.gemspec
CHANGED
@@ -20,10 +20,9 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.rubyforge_project = 'swearjar'
|
21
21
|
|
22
22
|
# dependencies
|
23
|
-
s.add_runtime_dependency 'fuzzyhash',
|
24
|
-
s.add_development_dependency '
|
25
|
-
s.add_development_dependency '
|
26
|
-
s.add_development_dependency 'rspec', '~> 1.3.0'
|
23
|
+
s.add_runtime_dependency 'fuzzyhash', '~> 0.0.11'
|
24
|
+
s.add_development_dependency 'rake', '~> 0.8.7'
|
25
|
+
s.add_development_dependency 'rspec', '~> 1.3.0'
|
27
26
|
|
28
27
|
if s.respond_to? :specification_version then
|
29
28
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swearjar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fuzzyhash
|
16
|
-
requirement: &
|
16
|
+
requirement: &70251065583700 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,21 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.0.11
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: bundler
|
27
|
-
requirement: &70298428457400 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 1.0.0
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *70298428457400
|
24
|
+
version_requirements: *70251065583700
|
36
25
|
- !ruby/object:Gem::Dependency
|
37
26
|
name: rake
|
38
|
-
requirement: &
|
27
|
+
requirement: &70251065583240 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
29
|
requirements:
|
41
30
|
- - ~>
|
@@ -43,10 +32,10 @@ dependencies:
|
|
43
32
|
version: 0.8.7
|
44
33
|
type: :development
|
45
34
|
prerelease: false
|
46
|
-
version_requirements: *
|
35
|
+
version_requirements: *70251065583240
|
47
36
|
- !ruby/object:Gem::Dependency
|
48
37
|
name: rspec
|
49
|
-
requirement: &
|
38
|
+
requirement: &70251065582780 !ruby/object:Gem::Requirement
|
50
39
|
none: false
|
51
40
|
requirements:
|
52
41
|
- - ~>
|
@@ -54,7 +43,7 @@ dependencies:
|
|
54
43
|
version: 1.3.0
|
55
44
|
type: :development
|
56
45
|
prerelease: false
|
57
|
-
version_requirements: *
|
46
|
+
version_requirements: *70251065582780
|
58
47
|
description: Put another nickel in the swearjar. Simple profanity detection with content
|
59
48
|
analysis.
|
60
49
|
email: joshbuddy@gmail.com
|
@@ -89,9 +78,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
78
|
- - ! '>='
|
90
79
|
- !ruby/object:Gem::Version
|
91
80
|
version: '0'
|
92
|
-
segments:
|
93
|
-
- 0
|
94
|
-
hash: -2399529509977720211
|
95
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
82
|
none: false
|
97
83
|
requirements:
|
@@ -100,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
86
|
version: '0'
|
101
87
|
requirements: []
|
102
88
|
rubyforge_project: swearjar
|
103
|
-
rubygems_version: 1.8.
|
89
|
+
rubygems_version: 1.8.11
|
104
90
|
signing_key:
|
105
91
|
specification_version: 3
|
106
92
|
summary: Put another nickel in the swearjar. Simple profanity detection with content
|
@@ -110,3 +96,4 @@ test_files:
|
|
110
96
|
- spec/spec.opts
|
111
97
|
- spec/spec_helper.rb
|
112
98
|
- spec/swearjar_spec.rb
|
99
|
+
has_rdoc:
|