Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Apr 14, 2014
2 parents d3f11f6 + d0be03e commit ed11077
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 5 additions & 8 deletions lib/domains.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// non-us gov
dep.no
gc.ca
gob.bo
gob.cl
Expand Down Expand Up @@ -184,6 +185,7 @@ mil.tz
mil.uy
mil.vc
mil.ve
mod.uk

// non-us sub-divisions
greatersudbury.ca
Expand Down Expand Up @@ -662,6 +664,7 @@ ci.marina.ca.us
ci.mendota.ca.us
ci.millbrae.ca.us
ci.modesto.ca.us
ci.monterey-park.ca.us
ci.moreno-valley.ca.us
ci.mt-shasta.ca.us
ci.mtnview.ca.us
Expand Down Expand Up @@ -969,7 +972,6 @@ mccsd.com
mcfarlandcity.org
menlopark.org
modestogov.com
modoccounty.us
mojaveindiantribe.com
monterey.org
montesereno.org
Expand Down Expand Up @@ -1140,7 +1142,6 @@ coloradonocall.com
coloradoriverrecovery.org
crgov.com
cripplecreekgov.com
deertrailcolorado.org
deltacounty.com
denvergov.org
durangogov.org
Expand Down Expand Up @@ -1843,7 +1844,6 @@ guamlegislature.com
guamsupremecourt.com
guamtax.com
investguam.com
justice.gov.gu
visitguam.org

// usagovHI
Expand Down Expand Up @@ -3196,6 +3196,7 @@ townofdresden.com
townofgreene.net
townofguilford.com
townofhartlandme.com
townofmadawaska.com
townofnaples.org
townofnorridgewock.com
townofnorthberwick.org
Expand Down Expand Up @@ -7679,6 +7680,7 @@ zelieboro.org
fajardopr.org
gobierno.pr
loteriaelectronicapr.com
mayaguez.pr
municipiocarolina.com
municipiodearecibo.com
municipiodebayamon.com
Expand Down Expand Up @@ -7969,7 +7971,6 @@ salemsd.com
sddot.com
sdhda.org
sdonecall.com
siouxempirecfc.org
siouxfalls.org
state.sd.us
sullycounty.net
Expand Down Expand Up @@ -8866,7 +8867,6 @@ townofcoeburn.com
townofgordonsville.org
townofhalifax.com
townofkilmarnockva.com
townoflacrosse.org
townofluray.com
townofmiddleburg.org
townoforangeva.org
Expand Down Expand Up @@ -8985,7 +8985,6 @@ newportvermont.org
northernnewenglandcfc.org
northherovt.com
norwich.vt.us
onioncity.com
pantonvt.us
peacham.net
pittsfieldvt.org
Expand Down Expand Up @@ -9808,7 +9807,6 @@ cheyennecity.org
ci.gillette.wy.us
city-of-torrington.org
city-sheridan-wy.com
cityofdouglaswy.com
cityofgreenriver.org
cityoflaramie.com
cityofworland.org
Expand Down Expand Up @@ -9970,7 +9968,6 @@ ncnhtf.org
ncoah.com
nconemap.net
ncopenbook.gov
ncpanbranch.com
ncparks.gov
ncports.com
ncpublications.com
Expand Down
4 changes: 3 additions & 1 deletion test/test_domains.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ def whitelisted?(domain)
end

should "only contain resolvable domains" do
unresolvables = []
Gman.list.each do |entry|
next if whitelisted? entry.name
resolves = Gman::Parser.domain_resolves?(entry.name)
assert_equal true, resolves, "Could not resolve #{entry.name}"
unresolvables.push entry.name unless resolves
end
assert_equal [], unresolvables
end

should "not contain any educational domains" do
Expand Down

0 comments on commit ed11077

Please sign in to comment.