decuss 0.1.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.
- checksums.yaml +7 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/decuss.rb +14 -0
- data/lib/decuss/config/rudewords.yml +532 -0
- data/lib/decuss/string.rb +44 -0
- data/lib/decuss/version.rb +3 -0
- metadata +79 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: c7a52855efe69892d949824b298afbe9f0de770d
|
|
4
|
+
data.tar.gz: 0332ad823ebb1afc4bd4ec3542d6cf96f02221d7
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: c423fc2bbc2837321fa582dd809a08ff5ef98092e8242b8fd1d4fd24e831663ec27e775ced8cdaac576ef798e3be9a8959ec7073431bcd2aa64536ca247b7884
|
|
7
|
+
data.tar.gz: dd99b06a53b652045635e5c31b2d135c2ff979f49e3721adfce02e6e3a3145ba01d12d3c34927a6c03380c46d684dbe51801d12714d24187220124441bab086d
|
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "decuss"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/decuss.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'yaml'
|
|
2
|
+
require_relative 'decuss/version'
|
|
3
|
+
require_relative 'decuss/string'
|
|
4
|
+
|
|
5
|
+
module Decuss
|
|
6
|
+
extend self
|
|
7
|
+
|
|
8
|
+
# Find all swear words from a list of rude words
|
|
9
|
+
def words
|
|
10
|
+
path = File.join(__dir__, 'decuss/config/rudewords.yml')
|
|
11
|
+
yaml = YAML.load_file(path)
|
|
12
|
+
return yaml
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
---
|
|
2
|
+
- gobshite
|
|
3
|
+
- feck
|
|
4
|
+
- fecking
|
|
5
|
+
- fecker
|
|
6
|
+
- fecked
|
|
7
|
+
- adick
|
|
8
|
+
- arse
|
|
9
|
+
- ass
|
|
10
|
+
- assbandit
|
|
11
|
+
- assclown
|
|
12
|
+
- asscrack
|
|
13
|
+
- assed out
|
|
14
|
+
- assface
|
|
15
|
+
- asshole
|
|
16
|
+
- asswhacker
|
|
17
|
+
- asswipe
|
|
18
|
+
- bastard
|
|
19
|
+
- bat shit
|
|
20
|
+
- batshit
|
|
21
|
+
- bearded clam
|
|
22
|
+
- bearded taco
|
|
23
|
+
- beardedclam
|
|
24
|
+
- beardedtaco
|
|
25
|
+
- beavershot
|
|
26
|
+
- beeatch
|
|
27
|
+
- beener
|
|
28
|
+
- biatch
|
|
29
|
+
- bigballer
|
|
30
|
+
- bimbo
|
|
31
|
+
- bitch
|
|
32
|
+
- bite me
|
|
33
|
+
- biteme
|
|
34
|
+
- blewinski
|
|
35
|
+
- blood fart
|
|
36
|
+
- bloodfart
|
|
37
|
+
- blow job
|
|
38
|
+
- blow me
|
|
39
|
+
- blow my pole
|
|
40
|
+
- blowjob
|
|
41
|
+
- blowme
|
|
42
|
+
- blue ball
|
|
43
|
+
- blue balls
|
|
44
|
+
- blueball
|
|
45
|
+
- blueballs
|
|
46
|
+
- boner
|
|
47
|
+
- bull dike
|
|
48
|
+
- bull shit
|
|
49
|
+
- bulldike
|
|
50
|
+
- bullshit
|
|
51
|
+
- bung hole
|
|
52
|
+
- bunghole
|
|
53
|
+
- butt bandit
|
|
54
|
+
- butt banger
|
|
55
|
+
- butt buddy
|
|
56
|
+
- butt crust
|
|
57
|
+
- butt nugger
|
|
58
|
+
- butt pirate
|
|
59
|
+
- butt plug
|
|
60
|
+
- buttbandit
|
|
61
|
+
- buttbanger
|
|
62
|
+
- buttcrack
|
|
63
|
+
- buttfuck
|
|
64
|
+
- buttfucker
|
|
65
|
+
- butthump
|
|
66
|
+
- buttnugger
|
|
67
|
+
- buttpirate
|
|
68
|
+
- buttplug
|
|
69
|
+
- buttporn
|
|
70
|
+
- c0ck
|
|
71
|
+
- camel jockey
|
|
72
|
+
- camel toe
|
|
73
|
+
- cameltoe
|
|
74
|
+
- carpet eater
|
|
75
|
+
- carpeteater
|
|
76
|
+
- cherry popper
|
|
77
|
+
- cherrypopper
|
|
78
|
+
- chinc
|
|
79
|
+
- chink
|
|
80
|
+
- choad
|
|
81
|
+
- chode
|
|
82
|
+
- choke my chicken
|
|
83
|
+
- choking the chicken
|
|
84
|
+
- cocaine
|
|
85
|
+
- cock jockey
|
|
86
|
+
- cock knocker
|
|
87
|
+
- cock lord
|
|
88
|
+
- cock ring
|
|
89
|
+
- cock smoker
|
|
90
|
+
- cock sucker
|
|
91
|
+
- cock tease
|
|
92
|
+
- cockass
|
|
93
|
+
- cockblocker
|
|
94
|
+
- cockjockey
|
|
95
|
+
- cocklord
|
|
96
|
+
- cocknocker
|
|
97
|
+
- cockring
|
|
98
|
+
- cocksmoker
|
|
99
|
+
- cocksucker
|
|
100
|
+
- cocktease
|
|
101
|
+
- condom
|
|
102
|
+
- coochie
|
|
103
|
+
- coon
|
|
104
|
+
- cootch
|
|
105
|
+
- cooze
|
|
106
|
+
- corn hole
|
|
107
|
+
- cornhole
|
|
108
|
+
- crack ho
|
|
109
|
+
- crack spackler
|
|
110
|
+
- crackbitch
|
|
111
|
+
- cracker
|
|
112
|
+
- crackspacker
|
|
113
|
+
- crackspackler
|
|
114
|
+
- crakker
|
|
115
|
+
- crap
|
|
116
|
+
- crap face
|
|
117
|
+
- crap head
|
|
118
|
+
- crapface
|
|
119
|
+
- craphead
|
|
120
|
+
- crapper
|
|
121
|
+
- cum
|
|
122
|
+
- cum belch
|
|
123
|
+
- cum belcher
|
|
124
|
+
- cum bubble
|
|
125
|
+
- cum dumpster
|
|
126
|
+
- cum guzzle
|
|
127
|
+
- cum guzzler
|
|
128
|
+
- cum lapper
|
|
129
|
+
- cum licker
|
|
130
|
+
- cum stain
|
|
131
|
+
- cum sucker
|
|
132
|
+
- cumbelch
|
|
133
|
+
- cumbelcher
|
|
134
|
+
- cumbeltch
|
|
135
|
+
- cumbeltcher
|
|
136
|
+
- cumbubble
|
|
137
|
+
- cumdumpster
|
|
138
|
+
- cumguzzle
|
|
139
|
+
- cumguzzler
|
|
140
|
+
- cumlapper
|
|
141
|
+
- cumlicker
|
|
142
|
+
- cumm
|
|
143
|
+
- cumm bubble
|
|
144
|
+
- cumm dumpster
|
|
145
|
+
- cumm guzzler
|
|
146
|
+
- cumm stain
|
|
147
|
+
- cumm sucker
|
|
148
|
+
- cummbubble
|
|
149
|
+
- cummdumpster
|
|
150
|
+
- cummguzzler
|
|
151
|
+
- cummstain
|
|
152
|
+
- cummsucker
|
|
153
|
+
- cumstain
|
|
154
|
+
- cumsucker
|
|
155
|
+
- cumsuker
|
|
156
|
+
- cumwad
|
|
157
|
+
- cunt
|
|
158
|
+
- cunt hair
|
|
159
|
+
- cunt whisker
|
|
160
|
+
- cunthair
|
|
161
|
+
- cuntwhisker
|
|
162
|
+
- cuntwisker
|
|
163
|
+
- cuze
|
|
164
|
+
- d i c k
|
|
165
|
+
- daisy chain
|
|
166
|
+
- daisy gang
|
|
167
|
+
- dangelberry
|
|
168
|
+
- dangleberry
|
|
169
|
+
- deez nuts
|
|
170
|
+
- devil
|
|
171
|
+
- dick breath
|
|
172
|
+
- dick fiend
|
|
173
|
+
- dick head
|
|
174
|
+
- dick nose
|
|
175
|
+
- dick wad
|
|
176
|
+
- dick weed
|
|
177
|
+
- dickbreath
|
|
178
|
+
- dickface
|
|
179
|
+
- dickfiend
|
|
180
|
+
- dickhead
|
|
181
|
+
- dicknose
|
|
182
|
+
- dickwad
|
|
183
|
+
- dickweed
|
|
184
|
+
- dik breath
|
|
185
|
+
- dik fiend
|
|
186
|
+
- dik head
|
|
187
|
+
- dikbreath
|
|
188
|
+
- dike
|
|
189
|
+
- dikfiend
|
|
190
|
+
- dikhead
|
|
191
|
+
- dildo
|
|
192
|
+
- dingelberry
|
|
193
|
+
- dingleberry
|
|
194
|
+
- dipstick
|
|
195
|
+
- douche
|
|
196
|
+
- douche bag
|
|
197
|
+
- drain the lizard
|
|
198
|
+
- drugs
|
|
199
|
+
- dune coon
|
|
200
|
+
- dunecoon
|
|
201
|
+
- earning red wings
|
|
202
|
+
- eat me
|
|
203
|
+
- eat my shorts
|
|
204
|
+
- eatme
|
|
205
|
+
- ecstacy
|
|
206
|
+
- eggplant
|
|
207
|
+
- ejaculate
|
|
208
|
+
- fagg
|
|
209
|
+
- faggot
|
|
210
|
+
- faghump
|
|
211
|
+
- fagmunch
|
|
212
|
+
- felch
|
|
213
|
+
- felcher
|
|
214
|
+
- feltch
|
|
215
|
+
- feltcher
|
|
216
|
+
- finger bang
|
|
217
|
+
- finger banged
|
|
218
|
+
- finger banger
|
|
219
|
+
- finger fuck
|
|
220
|
+
- fingerbang
|
|
221
|
+
- fingerbanged
|
|
222
|
+
- fingerbanger
|
|
223
|
+
- fingerfuck
|
|
224
|
+
- flamer
|
|
225
|
+
- fritz
|
|
226
|
+
- flip
|
|
227
|
+
- flogging the bishop
|
|
228
|
+
- fore skin
|
|
229
|
+
- foreskin
|
|
230
|
+
- fuck
|
|
231
|
+
- fuck face
|
|
232
|
+
- fucked
|
|
233
|
+
- fucker
|
|
234
|
+
- fuckers
|
|
235
|
+
- fuckface
|
|
236
|
+
- fucking
|
|
237
|
+
- fuckin
|
|
238
|
+
- fucknut
|
|
239
|
+
- fucknuts
|
|
240
|
+
- fucks
|
|
241
|
+
- fuckshit
|
|
242
|
+
- fuckstick
|
|
243
|
+
- fudge packer
|
|
244
|
+
- fudgepacker
|
|
245
|
+
- fuk
|
|
246
|
+
- fuk you
|
|
247
|
+
- fuker
|
|
248
|
+
- fukkhead
|
|
249
|
+
- fur burger
|
|
250
|
+
- furbuger
|
|
251
|
+
- furry burger
|
|
252
|
+
- fury burger
|
|
253
|
+
- fvck
|
|
254
|
+
- fvck you
|
|
255
|
+
- fvcker
|
|
256
|
+
- fvckface
|
|
257
|
+
- fvcking
|
|
258
|
+
- fvcknut
|
|
259
|
+
- fvcknuts
|
|
260
|
+
- gang bang
|
|
261
|
+
- gangbang
|
|
262
|
+
- genocide
|
|
263
|
+
- gniga
|
|
264
|
+
- gook
|
|
265
|
+
- hairy hatchet wound
|
|
266
|
+
- hairy taco
|
|
267
|
+
- hairyhatchetwound
|
|
268
|
+
- hairytaco
|
|
269
|
+
- half breed
|
|
270
|
+
- halfbreed
|
|
271
|
+
- hardon
|
|
272
|
+
- hell
|
|
273
|
+
- hermaphrodite
|
|
274
|
+
- herpes
|
|
275
|
+
- ho
|
|
276
|
+
- hoes
|
|
277
|
+
- hommo
|
|
278
|
+
- homo
|
|
279
|
+
- honkey
|
|
280
|
+
- honky
|
|
281
|
+
- hoochie mama
|
|
282
|
+
- hooker
|
|
283
|
+
- horse shit
|
|
284
|
+
- horseshit
|
|
285
|
+
- hot beef injection
|
|
286
|
+
- incest
|
|
287
|
+
- jacking off
|
|
288
|
+
- jap
|
|
289
|
+
- jerking off
|
|
290
|
+
- jiz
|
|
291
|
+
- jiz muffin
|
|
292
|
+
- jiz sandwich
|
|
293
|
+
- jizer
|
|
294
|
+
- jizm
|
|
295
|
+
- jizmuffin
|
|
296
|
+
- jizz
|
|
297
|
+
- jizz muffin
|
|
298
|
+
- jizz sandwich
|
|
299
|
+
- jizzer
|
|
300
|
+
- jizzm
|
|
301
|
+
- jizzmuffin
|
|
302
|
+
- jungle bunny
|
|
303
|
+
- junglebunny
|
|
304
|
+
- kike
|
|
305
|
+
- kill
|
|
306
|
+
- koochie
|
|
307
|
+
- koochy
|
|
308
|
+
- kootch
|
|
309
|
+
- kootchie
|
|
310
|
+
- kootchy
|
|
311
|
+
- kum
|
|
312
|
+
- kumm
|
|
313
|
+
- lesbo
|
|
314
|
+
- lettuce picker
|
|
315
|
+
- lettucepicker
|
|
316
|
+
- lezbo
|
|
317
|
+
- lick my nuts
|
|
318
|
+
- lickcock
|
|
319
|
+
- licknipple
|
|
320
|
+
- limpdick
|
|
321
|
+
- love canal
|
|
322
|
+
- lsd
|
|
323
|
+
- man whore
|
|
324
|
+
- mangina
|
|
325
|
+
- manwhore
|
|
326
|
+
- marijuana
|
|
327
|
+
- masturbate
|
|
328
|
+
- mick
|
|
329
|
+
- monkeydick
|
|
330
|
+
- monkeyhumper
|
|
331
|
+
- mooli
|
|
332
|
+
- mother fucker
|
|
333
|
+
- motherfucker
|
|
334
|
+
- mud people
|
|
335
|
+
- mud person
|
|
336
|
+
- mudpeople
|
|
337
|
+
- mudperson
|
|
338
|
+
- muff
|
|
339
|
+
- muff diver
|
|
340
|
+
- muffdiver
|
|
341
|
+
- muli
|
|
342
|
+
- murder
|
|
343
|
+
- nazi
|
|
344
|
+
- niger
|
|
345
|
+
- nigga
|
|
346
|
+
- niggah
|
|
347
|
+
- nigger
|
|
348
|
+
- nip
|
|
349
|
+
- nipple
|
|
350
|
+
- nutted
|
|
351
|
+
- nutter
|
|
352
|
+
- nutting
|
|
353
|
+
- one way pipe cleaner
|
|
354
|
+
- panocha
|
|
355
|
+
- pcp
|
|
356
|
+
- pecker
|
|
357
|
+
- pecker head
|
|
358
|
+
- pecker nose
|
|
359
|
+
- peckerhead
|
|
360
|
+
- peckernose
|
|
361
|
+
- pedophile
|
|
362
|
+
- penis breath
|
|
363
|
+
- penisbreath
|
|
364
|
+
- phelch
|
|
365
|
+
- phelcher
|
|
366
|
+
- pheltch
|
|
367
|
+
- pheltcher
|
|
368
|
+
- phlip
|
|
369
|
+
- pillow biter
|
|
370
|
+
- pillowbiter
|
|
371
|
+
- pimp
|
|
372
|
+
- pinis wrinkle
|
|
373
|
+
- piniswrinkle
|
|
374
|
+
- pipe hitter
|
|
375
|
+
- pipehitter
|
|
376
|
+
- piss
|
|
377
|
+
- pissdrinker
|
|
378
|
+
- pisslicker
|
|
379
|
+
- pito
|
|
380
|
+
- pole sitter
|
|
381
|
+
- pole smoker
|
|
382
|
+
- polesitter
|
|
383
|
+
- polesmoker
|
|
384
|
+
- polish the bishop
|
|
385
|
+
- polishing the torpedo
|
|
386
|
+
- polock
|
|
387
|
+
- poon tang
|
|
388
|
+
- poontang
|
|
389
|
+
- poop chute
|
|
390
|
+
- poop stain
|
|
391
|
+
- poopchute
|
|
392
|
+
- poopstain
|
|
393
|
+
- popped cherry
|
|
394
|
+
- poppedcherry
|
|
395
|
+
- prick
|
|
396
|
+
- psilocybin
|
|
397
|
+
- pu55y
|
|
398
|
+
- pussie
|
|
399
|
+
- pussy
|
|
400
|
+
- pussy juice
|
|
401
|
+
- pussy juiced
|
|
402
|
+
- pussy juicer
|
|
403
|
+
- pussy juicing
|
|
404
|
+
- pussy pounder
|
|
405
|
+
- pussy pounding
|
|
406
|
+
- pussy whipped
|
|
407
|
+
- pussy whipper
|
|
408
|
+
- pussy wiped
|
|
409
|
+
- pussyjuice
|
|
410
|
+
- pussyjuicer
|
|
411
|
+
- pussywhipped
|
|
412
|
+
- pussywhipper
|
|
413
|
+
- pussywiped
|
|
414
|
+
- puta
|
|
415
|
+
- pv55ie
|
|
416
|
+
- pv55y
|
|
417
|
+
- rag head
|
|
418
|
+
- raghead
|
|
419
|
+
- rectal
|
|
420
|
+
- rectum
|
|
421
|
+
- redneck
|
|
422
|
+
- retard
|
|
423
|
+
- retarded
|
|
424
|
+
- rim job
|
|
425
|
+
- rimjob
|
|
426
|
+
- rug munch
|
|
427
|
+
- rug munched
|
|
428
|
+
- rug muncher
|
|
429
|
+
- rugmuncher
|
|
430
|
+
- rump ranger
|
|
431
|
+
- rumpranger
|
|
432
|
+
- rumpshaker
|
|
433
|
+
- sachamo
|
|
434
|
+
- sambo
|
|
435
|
+
- sand niggah
|
|
436
|
+
- sand nigger
|
|
437
|
+
- sandniggah
|
|
438
|
+
- sandnigger
|
|
439
|
+
- satanic
|
|
440
|
+
- schlong
|
|
441
|
+
- scrubbing the carrot
|
|
442
|
+
- shit
|
|
443
|
+
- shits
|
|
444
|
+
- shit eater
|
|
445
|
+
- shit face
|
|
446
|
+
- shit faced
|
|
447
|
+
- shit head
|
|
448
|
+
- shit kicker
|
|
449
|
+
- shit pusher
|
|
450
|
+
- shit shover
|
|
451
|
+
- shiteater
|
|
452
|
+
- shitface
|
|
453
|
+
- shitfaced
|
|
454
|
+
- shitfucker
|
|
455
|
+
- shithead
|
|
456
|
+
- shitkicker
|
|
457
|
+
- shitpusher
|
|
458
|
+
- shitshover
|
|
459
|
+
- skank
|
|
460
|
+
- skin flute
|
|
461
|
+
- skullfuck
|
|
462
|
+
- skullfucked
|
|
463
|
+
- skullfucker
|
|
464
|
+
- skullfucks
|
|
465
|
+
- slap the salami
|
|
466
|
+
- slaping the sausage
|
|
467
|
+
- slit licker
|
|
468
|
+
- slitlicker
|
|
469
|
+
- slope
|
|
470
|
+
- slut
|
|
471
|
+
- slut bag
|
|
472
|
+
- slutbag
|
|
473
|
+
- smegma
|
|
474
|
+
- snog
|
|
475
|
+
- sodomise
|
|
476
|
+
- sodomised
|
|
477
|
+
- sodomiser
|
|
478
|
+
- sodomite
|
|
479
|
+
- sodomize
|
|
480
|
+
- sodomized
|
|
481
|
+
- sodomizer
|
|
482
|
+
- sodomy
|
|
483
|
+
- spank the monkey
|
|
484
|
+
- sphincter boy
|
|
485
|
+
- sphincter face
|
|
486
|
+
- sphincterboy
|
|
487
|
+
- sphincterface
|
|
488
|
+
- spic
|
|
489
|
+
- spick
|
|
490
|
+
- spik
|
|
491
|
+
- spunk monkey
|
|
492
|
+
- suicide
|
|
493
|
+
- taint
|
|
494
|
+
- tar baby
|
|
495
|
+
- tarbaby
|
|
496
|
+
- tard
|
|
497
|
+
- testes
|
|
498
|
+
- testicles
|
|
499
|
+
- testicular
|
|
500
|
+
- tip polisher
|
|
501
|
+
- tit
|
|
502
|
+
- tit fuck
|
|
503
|
+
- tit fucker
|
|
504
|
+
- titfuck
|
|
505
|
+
- titfucker
|
|
506
|
+
- tits
|
|
507
|
+
- titty
|
|
508
|
+
- titty twisted
|
|
509
|
+
- titty twister
|
|
510
|
+
- titty twisters
|
|
511
|
+
- titty twisting
|
|
512
|
+
- tity
|
|
513
|
+
- towel head
|
|
514
|
+
- towelhead
|
|
515
|
+
- trailer trash
|
|
516
|
+
- trailertrash
|
|
517
|
+
- transsexual
|
|
518
|
+
- transvestite
|
|
519
|
+
- twat
|
|
520
|
+
- uncle tom
|
|
521
|
+
- uplay wid dix
|
|
522
|
+
- vag
|
|
523
|
+
- vagina licker
|
|
524
|
+
- welfare rat
|
|
525
|
+
- wet back
|
|
526
|
+
- wetback
|
|
527
|
+
- whacking off
|
|
528
|
+
- white trash
|
|
529
|
+
- whore
|
|
530
|
+
- wop
|
|
531
|
+
- wrapping the weasel
|
|
532
|
+
- yclit
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
class String
|
|
2
|
+
|
|
3
|
+
# Cleans up any rude words in a string
|
|
4
|
+
def censor
|
|
5
|
+
input = self.split
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
result = []
|
|
9
|
+
input.each do |uncensored|
|
|
10
|
+
if Decuss.words.include?(uncensored)
|
|
11
|
+
censored = uncensored.tr("aeiou", "*")
|
|
12
|
+
result.push(censored)
|
|
13
|
+
else
|
|
14
|
+
result.push(uncensored)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Join the string together and remove commas
|
|
19
|
+
if result.length > 1
|
|
20
|
+
result = result.join(",").gsub! ",", " "
|
|
21
|
+
else
|
|
22
|
+
result = result.first
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Return input with cleaned up words
|
|
26
|
+
return result
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# censor method
|
|
30
|
+
def censor!
|
|
31
|
+
replace(censor)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Method to check if string contains rude
|
|
35
|
+
def rude?
|
|
36
|
+
isRude = false
|
|
37
|
+
Decuss.words.each do |word|
|
|
38
|
+
isRude = true if self.downcase.include? word
|
|
39
|
+
end
|
|
40
|
+
# Return if string contains rude or not
|
|
41
|
+
return isRude
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: decuss
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Dara
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.10'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.10'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
41
|
+
description: A gem to stop your users from using profanities
|
|
42
|
+
email:
|
|
43
|
+
- daraclare@gmail.com
|
|
44
|
+
executables: []
|
|
45
|
+
extensions: []
|
|
46
|
+
extra_rdoc_files: []
|
|
47
|
+
files:
|
|
48
|
+
- bin/console
|
|
49
|
+
- bin/setup
|
|
50
|
+
- lib/decuss.rb
|
|
51
|
+
- lib/decuss/config/rudewords.yml
|
|
52
|
+
- lib/decuss/string.rb
|
|
53
|
+
- lib/decuss/version.rb
|
|
54
|
+
homepage: https://github.com/daraclare/decuss.git
|
|
55
|
+
licenses:
|
|
56
|
+
- MIT
|
|
57
|
+
metadata: {}
|
|
58
|
+
post_install_message:
|
|
59
|
+
rdoc_options: []
|
|
60
|
+
require_paths:
|
|
61
|
+
- lib
|
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
- - ">="
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: '0'
|
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
|
+
requirements:
|
|
69
|
+
- - ">="
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
version: '0'
|
|
72
|
+
requirements: []
|
|
73
|
+
rubyforge_project:
|
|
74
|
+
rubygems_version: 2.4.5
|
|
75
|
+
signing_key:
|
|
76
|
+
specification_version: 4
|
|
77
|
+
summary: Decuss cleans up user text
|
|
78
|
+
test_files: []
|
|
79
|
+
has_rdoc:
|