dancroak-webster 0.3.3 → 0.3.4

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.
Files changed (4) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/words +0 -30
  3. data/test/webster_test.rb +20 -0
  4. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- patch: 3
2
+ patch: 4
3
3
  major: 0
4
4
  minor: 3
data/lib/words CHANGED
@@ -5116,8 +5116,6 @@ anuria
5116
5116
  anuric
5117
5117
  anurous
5118
5118
  anury
5119
- anusim
5120
- anusvara
5121
5119
  anvasser
5122
5120
  anvil
5123
5121
  anxietude
@@ -24957,7 +24955,6 @@ dammara
24957
24955
  damme
24958
24956
  dammer
24959
24957
  dammish
24960
- damnously
24961
24958
  damoclean
24962
24959
  damocles
24963
24960
  damoetas
@@ -27397,7 +27394,6 @@ dilation
27397
27394
  dilative
27398
27395
  dilator
27399
27396
  dilatory
27400
- dildo
27401
27397
  dilection
27402
27398
  dilemi
27403
27399
  dilemite
@@ -27415,7 +27411,6 @@ dilling
27415
27411
  dillseed
27416
27412
  dillue
27417
27413
  dilluer
27418
- dillweed
27419
27414
  dilly
27420
27415
  dillyman
27421
27416
  dilogy
@@ -27512,7 +27507,6 @@ dingle
27512
27507
  dingly
27513
27508
  dingmaul
27514
27509
  dingo
27515
- dingus
27516
27510
  dingwall
27517
27511
  dingy
27518
27512
  dinheiro
@@ -27525,7 +27519,6 @@ dinitrile
27525
27519
  dinitro
27526
27520
  dinka
27527
27521
  dinkey
27528
- dinkum
27529
27522
  dinky
27530
27523
  dinmont
27531
27524
  dinner
@@ -43772,7 +43765,6 @@ hemionus
43772
43765
  hemiope
43773
43766
  hemiopia
43774
43767
  hemiopic
43775
- hemipenis
43776
43768
  hemipic
43777
43769
  hemiplane
43778
43770
  hemiplegy
@@ -69563,8 +69555,6 @@ penide
69563
69555
  penile
69564
69556
  peninsula
69565
69557
  penintime
69566
- penis
69567
- penistone
69568
69558
  penitence
69569
69559
  penitent
69570
69560
  penkeeper
@@ -76207,7 +76197,6 @@ pushtu
76207
76197
  pusscat
76208
76198
  pussley
76209
76199
  pusslike
76210
- pussy
76211
76200
  pussycat
76212
76201
  pussyfoot
76213
76202
  pussytoe
@@ -94735,7 +94724,6 @@ swoosh
94735
94724
  sword
94736
94725
  swordbill
94737
94726
  swordfish
94738
- swordick
94739
94727
  swording
94740
94728
  swordless
94741
94729
  swordlet
@@ -107833,17 +107821,6 @@ vagarist
107833
107821
  vagarity
107834
107822
  vagary
107835
107823
  vagas
107836
- vagiform
107837
- vagile
107838
- vagina
107839
- vaginal
107840
- vaginant
107841
- vaginate
107842
- vaginated
107843
- vaginitis
107844
- vaginula
107845
- vaginule
107846
- vagitus
107847
107824
  vagnera
107848
107825
  vagogram
107849
107826
  vagolysis
@@ -111190,13 +111167,6 @@ whoosh
111190
111167
  whopper
111191
111168
  whopping
111192
111169
  whorage
111193
- whore
111194
- whoredom
111195
- whorelike
111196
- whoreship
111197
- whoreson
111198
- whorish
111199
- whorishly
111200
111170
  whorl
111201
111171
  whorled
111202
111172
  whorly
data/test/webster_test.rb CHANGED
@@ -7,6 +7,26 @@ require File.join(File.dirname(__FILE__), "..", "lib", "webster")
7
7
 
8
8
  class WebsterTest < Test::Unit::TestCase
9
9
 
10
+ context "#dictionary" do
11
+ setup do
12
+ @webster = Webster.new
13
+ @dictionary = @webster.dictionary
14
+ @blacklist = %w(bastaard bastard bastardly bastardy bedamn bitch damnable damnably damnation
15
+ damnatory damned damner damnify damnii damning damningly damnonii damnous damnously
16
+ shita shitepoke shother shittah shittim undamned undamning undamn
17
+ assman whore whoredom whorelike whoreship whoreson whorish whorishly
18
+ hemipenis penis penistone vagina vaginal vaginant vaginate vaginated
19
+ vagina vaginal vaginant vaginate vaginated dildo dillweed dingus dinkum
20
+ swordick pussy anusim anusvara)
21
+ end
22
+
23
+ should "not contain offensive words or offensive-sounding words" do
24
+ @blacklist.each do |word|
25
+ assert !@dictionary.include?(word), "The blacklist word, #{word}, is in the dictionary."
26
+ end
27
+ end
28
+ end
29
+
10
30
  context "#random" do
11
31
  setup do
12
32
  @webster = Webster.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dancroak-webster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak