unswear 2.0.3 → 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.
- checksums.yaml +4 -4
- data/lib/unswear.rb +28 -22
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51ae0dcba92bb8b095071a1c07accd8cf47cb60c
|
4
|
+
data.tar.gz: 668ba5fb7545aaaa8988abd614f965241e5979b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8f9d31ac2625fa02a4fcb6b6b18adda3dfa58e15afb18ce6429c2b23cf0dd708c17e2f0867b4a3c205cce9ac77119e94683951f7b775e7ce6334a2767dc8c38
|
7
|
+
data.tar.gz: d0d794089285e60b93a0448bbb766fc57c164fea673b7037f1ad02ef0a7a39916e4e8ad9973d33a0fa19135c0a8bf333fec12708a5051beeb2ee0794bbf2f83a
|
data/lib/unswear.rb
CHANGED
@@ -33,32 +33,38 @@ class Unswear
|
|
33
33
|
"tard", "retard", "tit", "titfuck", "tit-fuck", "tits", "titties", "twats", "twats", "unclefucker",
|
34
34
|
"uncle-fucker", "va-j-j", "vag", "vajayjay", "vjayjay", "wank", "wank-job", "wankjob",
|
35
35
|
"whorebag", "whore-bag", "wetback", "wet-back", "wop"
|
36
|
-
|
37
36
|
]
|
38
37
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
38
|
+
def self.censor(input)
|
39
|
+
new = input
|
40
|
+
new = new.split " "
|
41
|
+
# do some magic
|
42
|
+
new.count.times do |i|
|
43
|
+
@curses.count.times do |c|
|
44
|
+
if new[i] == @curses[c]
|
45
|
+
new[i].gsub! "a", "*"
|
46
|
+
new[i].gsub! "e", "*"
|
47
|
+
new[i].gsub! "i", "*"
|
48
|
+
new[i].gsub! "o", "*"
|
49
|
+
new[i].gsub! "u", "*"
|
50
|
+
end
|
51
51
|
end
|
52
52
|
end
|
53
|
+
new = new.join(",")
|
54
|
+
new.gsub! ",", " "
|
55
|
+
#finally return new
|
56
|
+
puts new
|
53
57
|
end
|
54
|
-
new = new.join(",")
|
55
|
-
new.gsub! ",", " "
|
56
|
-
#finally return new
|
57
|
-
puts new
|
58
|
-
end
|
59
|
-
|
60
|
-
def self.list
|
61
|
-
puts @curses.sort_by(&:downcase).uniq
|
62
|
-
end
|
63
58
|
|
59
|
+
def self.list(x=0)
|
60
|
+
unless x != 0
|
61
|
+
puts @curses.sort_by(&:downcase).uniq
|
62
|
+
else
|
63
|
+
@curses.count.times do |m|
|
64
|
+
if @curses[m][0] == x
|
65
|
+
puts @curses[m]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
64
70
|
end
|