unswear 2.2 → 3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/unswear.rb +67 -56
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e90ccbbd50b69aa104c500d7ddabc1eb8c985b6d
4
- data.tar.gz: f02b7d7723a9e53f737dc18487083ea6675ce4e1
3
+ metadata.gz: 7794dbde85b47f403e7201f21871b47e68cee3b0
4
+ data.tar.gz: bb2bef63faf7004bb7b6ee8624afd008565e7e9d
5
5
  SHA512:
6
- metadata.gz: 0588110daf9929bd2765a52b3adf1ca6588648e2aa63c1fab4400a8e43ba662381220e96f3f828c943719b02372aa404e0b9a5ca9128b371e7a2490c5f7f4ba1
7
- data.tar.gz: e0811664f7648118888816723f7d09eb2715b2581f06492c2bdbac16ca87602214b4514b90a823c9f3c6b73a4571da63dd4cca0cef3753f8b3f3e9934608fa01
6
+ metadata.gz: c13bf59b4d0930d8094b8a48c0b1deb2e56c174052ae306207d8a51f9b51d526d7d2c26de7086fb35ab8be3d280e07273935f5022e56eb7057d4c969fdb343ab
7
+ data.tar.gz: 9d37e82dd991bb948fc78a5cbe2fc2677bcf997cfec30f75cd53fd8acbb02f7a8f352d23b3cb5763464151df0015754372bb4d656e5cff4f8a934ea996a183f7
data/lib/unswear.rb CHANGED
@@ -1,70 +1,81 @@
1
- class Unswear
1
+ VERSION = '3.0'
2
2
 
3
- @curses = %w(
4
- fuck fucking fucker fuckin nigger nigga cunt shit
5
- ass asshole bitch piss dick pussy pussay chink
6
- bastard fag faggot cock slut slutty sluttish whore
7
- whorish arse arsehole ass-jabber assjabber assbag
8
- assclown asscracker assface assfuck assfuck ass-nigger
9
- assfucker ass-fucker asshat ass-hat assnigger ass-pirate
10
- asspirate assshit ass-shit axwound beaner bitches
11
- bitchass bitch-ass blowjob blow-job bitchy bitchtits
12
- bollox boner brother-fucker brotherfucker butt-plug buttplug
13
- bullshit bull-shit bumblefuck buttfucker butt-fucker
14
- butt-fucka buttfucka camel-toe choad clit chinc
15
- chesticle clitface clit-face clit-fuck clitfuck cock-muncher
16
- cockass cock-ass cock-fucker cockfucker cockmuncher
17
- cockwaffle cock-waffle cracker cum cumguzzler cum-guzzler
18
- cooter cunt-face cuntface cuntslut cunt-slut dick-bag dickbag
19
- dago damn deggo dick-bag dickbag dickface dick-face dickhead
20
- dick-head dick-juice dickjuice dicks dickslap dick-slap dick-sucker
21
- dicksucker dickwad dick-wad douchebag dumbass dumb-ass dumb-fuck
22
- dumbfuck dumbshit dumb-shit dyke fatass flamer fuckbrain fuck-brain
23
- fucked fuckface fuck-face fuckoff fuck-off fucktard fuck-tard
24
- jackass jack-ass jap jigaboo jizz gaylord gay-lord goddamn
25
- goddamn goddamnit gook gooch gringo guido hard-on heeb hoe
26
- honkey hump humping kike koocher kooch kraut kunt kyke
27
- lameass lardass lame-ass lard-ass lesbo lezzie pecker pissed
28
- poon poontang poonany poonany prick pussies pussylicking puto
29
- mcfagget motherfucker motherfucking motherfuck niglet renob shitbreath
30
- shit-breath shitcunt shit-cunt shithead shit-head shitting shittiest
31
- queer rimjob ruski sandnigger schlong shitbrains shit-brains shitty
32
- skank skanky skankiest slutbag cumbag slut-bag cum-bag splooge
33
- tard retard tit titfuck tit-fuck tits titties twats twats unclefucker
34
- uncle-fucker va-j-j vag vajayjay vjayjay wank wank-job wankjob
35
- whorebag whore-bag wetback wet-back wop
36
- )
3
+ $curses = %w(
4
+ fuck fucking fucker fuckin nigger nigga cunt shit
5
+ ass asshole bitch piss dick pussy pussay chink
6
+ bastard fag faggot cock slut slutty sluttish whore
7
+ whorish arse arsehole ass-jabber assjabber assbag
8
+ assclown asscracker assface assfuck assfuck ass-nigger
9
+ assfucker ass-fucker asshat ass-hat assnigger ass-pirate
10
+ asspirate assshit ass-shit axwound beaner bitches
11
+ bitchass bitch-ass blowjob blow-job bitchy bitchtits
12
+ bollox boner brother-fucker brotherfucker butt-plug buttplug
13
+ bullshit bull-shit bumblefuck buttfucker butt-fucker
14
+ butt-fucka buttfucka camel-toe choad clit chinc
15
+ chesticle clitface clit-face clit-fuck clitfuck cock-muncher
16
+ cockass cock-ass cock-fucker cockfucker cockmuncher
17
+ cockwaffle cock-waffle cracker cum cumguzzler cum-guzzler
18
+ cooter cunt-face cuntface cuntslut cunt-slut dick-bag dickbag
19
+ dago damn deggo dick-bag dickbag dickface dick-face dickhead
20
+ dick-head dick-juice dickjuice dicks dickslap dick-slap dick-sucker
21
+ dicksucker dickwad dick-wad douchebag dumbass dumb-ass dumb-fuck
22
+ dumbfuck dumbshit dumb-shit dyke fatass flamer fuckbrain fuck-brain
23
+ fucked fuckface fuck-face fuckoff fuck-off fucktard fuck-tard
24
+ jackass jack-ass jap jigaboo jizz gaylord gay-lord goddamn
25
+ goddamn goddamnit gook gooch gringo guido hard-on heeb hoe
26
+ honkey hump humping kike koocher kooch kraut kunt kyke
27
+ lameass lardass lame-ass lard-ass lesbo lezzie pecker pissed
28
+ poon poontang poonany poonany prick pussies pussylicking puto
29
+ mcfagget motherfucker motherfucking motherfuck niglet renob shitbreath
30
+ shit-breath shitcunt shit-cunt shithead shit-head shitting shittiest
31
+ queer rimjob ruski sandnigger schlong shitbrains shit-brains shitty
32
+ skank skanky skankiest slutbag cumbag slut-bag cum-bag splooge
33
+ tard retard tit titfuck tit-fuck tits titties twats twats unclefucker
34
+ uncle-fucker va-j-j vag vajayjay vjayjay wank wank-job wankjob
35
+ whorebag whore-bag wetback wet-back wop
36
+ )
37
37
 
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
38
+
39
+ class String
40
+
41
+ def censor
42
+ new = self
43
+ new = new.split " "
44
+ # do some magic
45
+ new.count.times do |i|
46
+ $curses.count.times do |c|
47
+ if new[i] == $curses[c]
48
+ new[i].gsub! "a", "*"
49
+ new[i].gsub! "e", "*"
50
+ new[i].gsub! "i", "*"
51
+ new[i].gsub! "o", "*"
52
+ new[i].gsub! "u", "*"
51
53
  end
52
54
  end
53
- new = new.join(",")
54
- new.gsub! ",", " "
55
- #finally return new
56
- puts new
57
55
  end
56
+ new = new.join(",")
57
+ new.gsub! ",", " "
58
+ #finally return new
59
+ puts new
60
+ end
61
+ end
62
+
63
+ class Unswear
58
64
 
59
65
  def self.list(x=0)
60
66
  unless x != 0
61
- puts @curses.sort_by(&:downcase).uniq
67
+ puts $curses.sort_by(&:downcase).uniq
62
68
  else
63
- @curses.count.times do |m|
64
- if @curses[m][0] == x
65
- puts @curses[m]
69
+ $curses.count.times do |m|
70
+ if $curses[m][0] == x
71
+ puts $curses[m]
66
72
  end
67
73
  end
68
74
  end
69
75
  end
76
+
77
+ def self.version
78
+ puts "unswear v#{VERSION}"
79
+ end
80
+
70
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unswear
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.2'
4
+ version: '3.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-25 00:00:00.000000000 Z
11
+ date: 2014-05-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Censor swear words in a string
14
14
  email: joshception@icloud.com