gman 4.7.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 306dd45e78cb3e72bc3a68479eea6dbbadfee91c
4
- data.tar.gz: dd3232370c8e0702b254b95a8989f3894ade8732
3
+ metadata.gz: 911bc8581d526d9b6d8f77431a66592b335ae6ee
4
+ data.tar.gz: 932a84049f9a8a5a4c1cefc0e78293debb353b19
5
5
  SHA512:
6
- metadata.gz: ffea8362edfc9c8e7d0c955e205f3766065e02e82e82a332363f9c305ce2031085df67d2b82a77ec8863fb7570a74e459f2149ee4c62f1a0598d9d71b02195dd
7
- data.tar.gz: ef38fcfb520b0268bb5c875627cac4913f33734b2fffaeb918bd374901d91651b9041bb1de0b5662bf860c0d02f58c7c5a9ad144c7b541e44e2b3cad4f7aeeec
6
+ metadata.gz: 533e2b2c2193a860320b957ae7d1833710c3678e79100d366a8baa458ac03978f56d6b48fbdc682cbaede35cce14fea24ff6b82c471cfa251a6f387b7f6378e4
7
+ data.tar.gz: 03568c75e5616451dc3246307f91880faa9c690c77c7f73e9cb42525f995ef4a5f8f59cbc6562f8139e3895567693602c8c5fa0ff3a7b82476d6fc681ccee70b
data/Gemfile CHANGED
@@ -3,4 +3,5 @@ gemspec
3
3
 
4
4
  group :development, :test do
5
5
  gem 'net-dns'
6
+ gem 'ruby-prof'
6
7
  end
data/bin/gman CHANGED
@@ -25,7 +25,7 @@ gman = Gman.new(domain)
25
25
 
26
26
  puts "Domain : #{gman.domain}"
27
27
 
28
- if gman.domain_parts.nil?
28
+ if gman.domain.nil?
29
29
  puts "Status : " + "Invalid domain".red
30
30
  exit 1
31
31
  end
data/config/domains.txt CHANGED
@@ -1089,7 +1089,6 @@ townofflatrock.com
1089
1089
  townofgambo.com
1090
1090
  townofgillam.com
1091
1091
  townofgrandbank.com
1092
- townofgrandfallswindsor.com
1093
1092
  townofhague.com
1094
1093
  townofhampton.ca
1095
1094
  townofhighprairie.com
@@ -1998,7 +1997,6 @@ aalburg.nl
1998
1997
  aalsmeer.nl
1999
1998
  aalten.nl
2000
1999
  achtkarspelen.nl
2001
- acvz.minbzk.nl
2002
2000
  adviesorgaan-rmo.nl
2003
2001
  agentschaptelecom.nl
2004
2002
  alblasserdam.nl
@@ -2060,7 +2058,6 @@ castricum.nl
2060
2058
  ccmo.nl
2061
2059
  ceg.nl
2062
2060
  cibg.nl
2063
- ciot.justid.nl
2064
2061
  coevorden.nl
2065
2062
  cpb.nl
2066
2063
  cranendonck.nl
@@ -2078,7 +2075,6 @@ destadsregio.nl
2078
2075
  deurne.nl
2079
2076
  deventer.nl
2080
2077
  dewolden.nl
2081
- dgv.minvenj.nl
2082
2078
  diemen.nl
2083
2079
  dinkelland.nl
2084
2080
  dlg.nl
@@ -2093,8 +2089,6 @@ drenthe.nl
2093
2089
  drimmelen.nl
2094
2090
  dronten.nl
2095
2091
  druten.nl
2096
- dtv.minbzk.nl
2097
- dtv.minjus.nl
2098
2092
  duiven.nl
2099
2093
  echt-susteren.nl
2100
2094
  edam-volendam.nl
@@ -2119,7 +2113,6 @@ franekeradeel.nl
2119
2113
  fryslan.nl
2120
2114
  fumo.nl
2121
2115
  gbtwente.nl
2122
- gdi.minvenj.nl
2123
2116
  geertruidenberg.nl
2124
2117
  gelderland.nl
2125
2118
  geldermalsen.nl
@@ -2211,8 +2204,6 @@ hvdgm.nl
2211
2204
  igsd-sw.nl
2212
2205
  igz.nl
2213
2206
  ijsselstein.nl
2214
- ind.minbzk.nl
2215
- ind.minjus.nl
2216
2207
  inspectiejz.nl
2217
2208
  inspectievenj.nl
2218
2209
  ipo.nl
@@ -2294,7 +2285,6 @@ nationaleombudsman.nl
2294
2285
  nederbetuwe.nl
2295
2286
  nederweert.nl
2296
2287
  neerijnen.nl
2297
- nfi.minvenj.nl
2298
2288
  nieuwegein.nl
2299
2289
  nieuwkoop.nl
2300
2290
  nijmegen.nl
@@ -2335,7 +2325,6 @@ overbetuwe.nl
2335
2325
  overheid.nl
2336
2326
  overijssel.nl
2337
2327
  overmaas.nl
2338
- p-direkt.minbzk.nl
2339
2328
  papendrecht.nl
2340
2329
  parkstad-limburg.nl
2341
2330
  pbl.nl
@@ -2369,7 +2358,6 @@ rekenkamer.nl
2369
2358
  renkum.nl
2370
2359
  renswoude.nl
2371
2360
  reuseldemierden.nl
2372
- rgd.minbzk.nl
2373
2361
  rheden.nl
2374
2362
  rhenen.nl
2375
2363
  ridderkerk.nl
@@ -2413,7 +2401,6 @@ smallingerland.nl
2413
2401
  soest.nl
2414
2402
  someren.nl
2415
2403
  sonenbreugel.nl
2416
- sr.rotterdam.nl
2417
2404
  sre.nl
2418
2405
  staatsbosbeheer.nl
2419
2406
  stadskanaal.nl
@@ -2465,8 +2452,6 @@ vianen.nl
2465
2452
  vlagtwedde.nl
2466
2453
  vlieland.nl
2467
2454
  vlissingen.nl
2468
- vno.minbzk.nl
2469
- vnw.minbzk.nl
2470
2455
  voerendaal.nl
2471
2456
  voorschoten.nl
2472
2457
  voorst.nl
@@ -2480,7 +2465,6 @@ vrzhz.nl
2480
2465
  vrzob.nl
2481
2466
  vught.nl
2482
2467
  vwa.nl
2483
- vz.minbzk.nl
2484
2468
  waalre.nl
2485
2469
  waalwijk.nl
2486
2470
  waddinxveen.nl
@@ -2514,7 +2498,6 @@ wpm.nl
2514
2498
  wrij.nl
2515
2499
  wshd.nl
2516
2500
  wsrl.nl
2517
- wwi.minbzk.nl
2518
2501
  zaanstad.nl
2519
2502
  zaltbommel.nl
2520
2503
  zandvoort.nl
@@ -3075,11 +3058,7 @@ alaskarrt.org
3075
3058
  alaskaseafood.org
3076
3059
  aleutianseast.org
3077
3060
  apfc.org
3078
- borough.kenai.ak.us
3079
- borough.ketchikan.ak.us
3080
3061
  bristolbayboroughak.us
3081
- city.ketchikan.ak.us
3082
- city.kodiak.ak.us
3083
3062
  cityofbarrow.org
3084
3063
  cityofbethel.org
3085
3064
  cityofcordova.net
@@ -3296,6 +3275,7 @@ siloamsprings.com
3296
3275
  whitecountyar.org
3297
3276
 
3298
3277
  // usagovAS
3278
+ americansamoa.travel
3299
3279
  amsamoatourism.com
3300
3280
  asgteo.com
3301
3281
  doe.as
@@ -3401,7 +3381,6 @@ chico.ca.us
3401
3381
  chicorec.com
3402
3382
  chinohills.org
3403
3383
  citrusheights.net
3404
- city.fortbragg.com
3405
3384
  citybigbearlake.com
3406
3385
  citymb.info
3407
3386
  cityofacton.org
@@ -3752,6 +3731,7 @@ woodsidetown.org
3752
3731
  yolocounty.org
3753
3732
  yubacity.net
3754
3733
  yucaipa.org
3734
+ yucca-valley.org
3755
3735
 
3756
3736
  // usagovCO
3757
3737
  4thjudicialda.com
@@ -3764,7 +3744,6 @@ brushcolo.com
3764
3744
  burlingtoncolo.com
3765
3745
  c3gov.com
3766
3746
  cedaredgecolorado.com
3767
- centennialco.gov
3768
3747
  centennialcolorado.com
3769
3748
  chaffeecounty.org
3770
3749
  cherryhillsvillage.com
@@ -3828,6 +3807,7 @@ silverthorne.org
3828
3807
  springsgov.com
3829
3808
  steamboatsprings.net
3830
3809
  sterlingcolo.com
3810
+ strattoncolorado.com
3831
3811
  tosv.com
3832
3812
  townofbreckenridge.com
3833
3813
  townofeagle.org
@@ -3863,6 +3843,7 @@ cityofnewhaven.com
3863
3843
  cityofshelton.org
3864
3844
  cityofwesthaven.com
3865
3845
  clintonct.com
3846
+ clintonct.org
3866
3847
  columbiact.org
3867
3848
  connquest.com
3868
3849
  cornwallct.org
@@ -3985,6 +3966,194 @@ townofselbyville.com
3985
3966
  violade.com
3986
3967
  visitdelaware.com
3987
3968
 
3969
+ // usagovFED
3970
+ 18f.us
3971
+ academyadmissions.com
3972
+ adlnet.org
3973
+ afneurope.net
3974
+ afnpacific.net
3975
+ afpmb.org
3976
+ afreserve.com
3977
+ afthunderbirds.com
3978
+ agfirst.com
3979
+ agribank.com
3980
+ airdefenseartillery.com
3981
+ airforce.com
3982
+ airspacemag.com
3983
+ ajb.org
3984
+ alhurra.com
3985
+ amtrak.com
3986
+ amver.com
3987
+ annualcreditreport.com
3988
+ armedforcessports.com
3989
+ askjan.org
3990
+ auxpa.org
3991
+ aww.aww-sp.com
3992
+ benefeds.com
3993
+ bobber.info
3994
+ buyaccessible.net
3995
+ capmembers.com
3996
+ careerinfonet.org
3997
+ careeronestop.org
3998
+ cbp-ntep.info
3999
+ ccitoolsforfeds.org
4000
+ cdcnpin.org
4001
+ cfcnexus.org
4002
+ cfe-dmha.org
4003
+ cgaux.org
4004
+ cge.concursolutions.com
4005
+ cidi.org
4006
+ cipm.info
4007
+ clu-in.org
4008
+ cobank.com
4009
+ commissaries.com
4010
+ cooperativepatentclassification.org
4011
+ cooperhewitt.org
4012
+ d13cgaux.com
4013
+ deamuseum.org
4014
+ defensetv.tv
4015
+ dhs-summit.us
4016
+ digitalvaults.org
4017
+ docsteach.org
4018
+ dodccrp.org
4019
+ dodsbir.net
4020
+ dodstarbase.org
4021
+ dvbic.org
4022
+ dvidshub.net
4023
+ earthsystemcog.org
4024
+ earthsystemmodeling.org
4025
+ elcivicsonline.org
4026
+ eng.embassyusa.cn
4027
+ enviroflash.info
4028
+ fairhousingfirst.org
4029
+ fanniemae.com
4030
+ farmermac.com
4031
+ fcc.us
4032
+ fd.org
4033
+ federallabs.org
4034
+ federalreserveeducation.org
4035
+ fedrcc.us
4036
+ fhlb-of.com
4037
+ fhlbanks.com
4038
+ findtbresources.org
4039
+ firelab.org
4040
+ forestryimages.org
4041
+ freddiemac.com
4042
+ fsafeds.com
4043
+ getsmartaboutdrugs.com
4044
+ goang.com
4045
+ goarmy.com
4046
+ gocivilairpatrol.com
4047
+ gocoastguard.com
4048
+ godirect.org
4049
+ homelandsecurity.conferenceon.tv
4050
+ hsdl.org
4051
+ hubblesite.org
4052
+ hudhomestore.com
4053
+ hudhre.info
4054
+ hudnsphelp.info
4055
+ huduser.org
4056
+ igs.org
4057
+ insidevoa.com
4058
+ jamrs.org
4059
+ jfklibrary.org
4060
+ jlab.org
4061
+ kennedy-center.org
4062
+ knowitall.org
4063
+ knowyouroptions.com
4064
+ lbjlibrary.org
4065
+ leopold.wilderness.net
4066
+ lifeasamarine.com
4067
+ literacydirectory.org
4068
+ livingmemorialsproject.net
4069
+ mapaplanet.com
4070
+ mapaplanet.org
4071
+ marineforlife.org
4072
+ marinemarathon.com
4073
+ marines.com
4074
+ marshallcenter.org
4075
+ martinoticias.com
4076
+ mcmregistration.com
4077
+ micanaldepanama.com
4078
+ moneyfactory.com
4079
+ moon-cal.org
4080
+ myedaccount.com
4081
+ myfuture.com
4082
+ mymcx.com
4083
+ mynextmove.org
4084
+ myskillsmyfuture.org
4085
+ nagb.org
4086
+ nasa.orau.org
4087
+ nasarealworldinworld.org
4088
+ nationalatlas.com
4089
+ nationalatlas.net
4090
+ nationalatlas.org
4091
+ nationalguard.com
4092
+ nationalserviceresources.org
4093
+ nationalzoostore.tamretail.net
4094
+ navy.com
4095
+ navyreserve.com
4096
+ ncjrs.org
4097
+ nianet.org
4098
+ niapublications.org
4099
+ noradsanta.org
4100
+ nsopw.org
4101
+ onecpd.info
4102
+ onetonline.org
4103
+ opengovplatform.org
4104
+ pancanal.com
4105
+ pbgc.org
4106
+ pcaobus.org
4107
+ pepfar.net
4108
+ predict.org
4109
+ project-open-data.github.io
4110
+ psctool.us
4111
+ r3coastal.com
4112
+ radiosawa.com
4113
+ railroadersleep.org
4114
+ reaganfoundation.org
4115
+ reirs.com
4116
+ rewardsforjustice.net
4117
+ rfa.org
4118
+ rferl.org
4119
+ rkb.us
4120
+ smithsonian.com
4121
+ smithsonian.org
4122
+ smithsonianchannel.com
4123
+ smithsonianeducation.org
4124
+ smithsonianjourneys.org
4125
+ smithsonianmag.com
4126
+ smithsonianscience.org
4127
+ smithsonianstore.com
4128
+ smokeybear.com
4129
+ suicidepreventionlifeline.org
4130
+ supportportal.com
4131
+ t2health.org
4132
+ teexwmdcampus.com
4133
+ thecommunityguide.org
4134
+ todaysdocument.tumblr.com
4135
+ todaysmilitary.com
4136
+ trumanlibrary.org
4137
+ tva.com
4138
+ tvaed.com
4139
+ tvars.com
4140
+ us-mission.ch
4141
+ usafservices.com
4142
+ usarmyjrotc.com
4143
+ uscgaux.info
4144
+ uscgboating.org
4145
+ uscgnews.com
4146
+ usdirectexpress.com
4147
+ usembassy-china.org.cn
4148
+ usmc-mccs.org
4149
+ usps.com
4150
+ vasc.org
4151
+ vcn.org
4152
+ veteranscrisisline.net
4153
+ veteranshealthlibrary.org
4154
+ voanews.com
4155
+ voatour.com
4156
+
3988
4157
  // usagovFL
3989
4158
  abletrust.org
3990
4159
  alachuacounty.us
@@ -4046,6 +4215,7 @@ cityofpsl.com
4046
4215
  cityofrockledge.org
4047
4216
  cityofsafetyharbor.com
4048
4217
  cityofsebastian.org
4218
+ cityofstuart.com
4049
4219
  cityofstuart.us
4050
4220
  cityofwestpark.org
4051
4221
  cityofwinterpark.org
@@ -4261,7 +4431,6 @@ wiltonmanors.com
4261
4431
  winterspringsfl.org
4262
4432
  workforceflorida.com
4263
4433
  wpb.org
4264
- wrpc.cc
4265
4434
 
4266
4435
  // usagovFM
4267
4436
  fsmgov.org
@@ -4284,7 +4453,6 @@ bleckley.org
4284
4453
  bloomingdale-ga.com
4285
4454
  bostonga.com
4286
4455
  bowdon.net
4287
- brantleycountyga.blogspot.com
4288
4456
  braselton.net
4289
4457
  brooksga.com
4290
4458
  brunswickga.org
@@ -4376,6 +4544,7 @@ georgiamedicalcenterauthority.org
4376
4544
  georgiatrust.org
4377
4545
  glynncounty.org
4378
4546
  gnfa.com
4547
+ godr.org
4379
4548
  gordoncounty.org
4380
4549
  gsfc.org
4381
4550
  gwinnettcounty.com
@@ -4930,10 +5099,6 @@ vbg.org
4930
5099
  vernonhills.org
4931
5100
  vernontownship.com
4932
5101
  vhw.org
4933
- vi.wheeling.il.us
4934
- village.bartlett.il.us
4935
- village.homewood.il.us
4936
- village.rantoul.il.us
4937
5102
  villageofbeachpark.com
4938
5103
  villageofbloomingdale.org
4939
5104
  villageofbourbonnais.com
@@ -5283,6 +5448,7 @@ kentuckystatepolice.org
5283
5448
  kentuckytourism.com
5284
5449
  kfcyumcenter.com
5285
5450
  kheaa.com
5451
+ kltprc.info
5286
5452
  kyagr.com
5287
5453
  kyconvention.org
5288
5454
  kyepsb.net
@@ -5385,7 +5551,6 @@ lincolnparish.org
5385
5551
  lma.org
5386
5552
  loni.org
5387
5553
  loreauville.us
5388
- louisiana.gov
5389
5554
  louisianacda.com
5390
5555
  louisianaeconomicdevelopment.com
5391
5556
  louisianalottery.com
@@ -5409,6 +5574,8 @@ lsbwdd.org
5409
5574
  lsli.org
5410
5575
  lsp.org
5411
5576
  lsuagcenter.com
5577
+ lus.org
5578
+ lusfiber.com
5412
5579
  mindenusa.com
5413
5580
  muttshack.org
5414
5581
  mybossier.com
@@ -5438,13 +5605,11 @@ townofberwick.org
5438
5605
  townofblanchard.us
5439
5606
  townofchatham.org
5440
5607
  townoffranklinton.com
5441
- townofgoldenmeadow.com
5442
5608
  townoflivingston.com
5443
5609
  townoflockport.com
5444
5610
  townofwelsh.com
5445
5611
  tpcg.org
5446
5612
  trsl.org
5447
- volunteerlouisiana.gov
5448
5613
  washington-la.org
5449
5614
  wbrcouncil.org
5450
5615
  wppj.org
@@ -5472,6 +5637,7 @@ cityofwestfield.org
5472
5637
  cityofwoburn.com
5473
5638
  comm-pass.com
5474
5639
  concordnet.org
5640
+ detma.org
5475
5641
  douglasma.org
5476
5642
  doverma.org
5477
5643
  dukescounty.org
@@ -5611,6 +5777,7 @@ laytonsville.md.us
5611
5777
  manchestermd.org
5612
5778
  martinsadditions.org
5613
5779
  marylandtaxes.com
5780
+ md511.org
5614
5781
  mdhousing.org
5615
5782
  mdkidspage.org
5616
5783
  mdlottery.com
@@ -5728,7 +5895,6 @@ hermon.net
5728
5895
  holdenmaine.com
5729
5896
  hollismaine.org
5730
5897
  houlton-maine.com
5731
- hudsonmaine.wordpress.com
5732
5898
  jay-maine.org
5733
5899
  kennebeccounty.org
5734
5900
  kennebunkmaine.us
@@ -6018,10 +6184,12 @@ mersofmich.com
6018
6184
  michcfc.org
6019
6185
  michigan.org
6020
6186
  michiganhumanities.org
6187
+ michiganlottery.com
6021
6188
  micityoffraser.com
6022
6189
  midland-mi.org
6023
6190
  midnrreservations.com
6024
6191
  milfordtownship.com
6192
+ milotteryconnect.com
6025
6193
  miltontwp.org
6026
6194
  minationalguard.com
6027
6195
  missaukee.org
@@ -6115,6 +6283,7 @@ wyandotte.net
6115
6283
  // usagovMN
6116
6284
  albanytownship.com
6117
6285
  alexandriatownship.org
6286
+ anokacounty.us
6118
6287
  ardc.org
6119
6288
  athenstownship.com
6120
6289
  avontownship.org
@@ -6144,7 +6313,6 @@ canosiatownship.qwestoffice.net
6144
6313
  carlostownship.org
6145
6314
  castlerocktownship.com
6146
6315
  centervillemn.com
6147
- city.mankato.mn.us
6148
6316
  cityofalbertlea.org
6149
6317
  cityofardenhills.org
6150
6318
  cityofavonmn.com
@@ -6229,6 +6397,7 @@ fayaltwp.org
6229
6397
  fishlaketownship.com
6230
6398
  fordtownship.org
6231
6399
  fosston.com
6400
+ franklinmn.us
6232
6401
  frazeecity.com
6233
6402
  gemlakemn.org
6234
6403
  gilbertmn.org
@@ -6329,6 +6498,7 @@ rockvillecity.org
6329
6498
  royaltontownship.com
6330
6499
  sanfranciscotownship.com
6331
6500
  sartellmn.com
6501
+ sciotatownship-mn.us
6332
6502
  sidelake.org
6333
6503
  silverbay.com
6334
6504
  silverbrooktownship.org
@@ -6372,6 +6542,7 @@ wilmatownship.com
6372
6542
  windemeretownship.com
6373
6543
  windom-mn.com
6374
6544
  winthropminnesota.com
6545
+ woodlandmn.org
6375
6546
  wyomingmn.org
6376
6547
 
6377
6548
  // usagovMO
@@ -6406,7 +6577,6 @@ centraliamo.org
6406
6577
  chesterfield.mo.us
6407
6578
  chillicothecity.org
6408
6579
  city.fairgrove.org
6409
- city.winchester.mo.us
6410
6580
  cityofberkeley.us
6411
6581
  cityofblackjack.com
6412
6582
  cityofbn.com
@@ -6484,7 +6654,6 @@ gocolumbiamo.com
6484
6654
  goodmanmo.net
6485
6655
  grandview.org
6486
6656
  greenecountymo.org
6487
- hallsvillemissouri.wordpress.com
6488
6657
  hazelwoodmo.org
6489
6658
  hermannmo.com
6490
6659
  higginsville.org
@@ -6614,7 +6783,6 @@ willowspringsmo.com
6614
6783
  wrightcity.org
6615
6784
 
6616
6785
  // usagovMP
6617
- gov.mp
6618
6786
  mymarianas.com
6619
6787
 
6620
6788
  // usagovMS
@@ -6625,7 +6793,6 @@ brookhavenms.com
6625
6793
  burnsvillems.com
6626
6794
  byram-ms.us
6627
6795
  chickasawcoms.com
6628
- city.jackson.ms.us
6629
6796
  cityofamoryms.com
6630
6797
  cityofbaldwyn.com
6631
6798
  cityofbatesvillems.com
@@ -6707,7 +6874,6 @@ southaven.org
6707
6874
  terryms.org
6708
6875
  thecityofcolumbusms.org
6709
6876
  tishomingo.ms
6710
- townofcrosby.com
6711
6877
  townofedwards.com
6712
6878
  townofheidelberg.com
6713
6879
  townofprentiss.com
@@ -6730,7 +6896,6 @@ beaverheadcounty.org
6730
6896
  bozeman.net
6731
6897
  browningmontana.com
6732
6898
  cartercountymt.info
6733
- cfcwesternmontana.org
6734
6899
  cityofcolstrip.com
6735
6900
  cityofcolumbiafalls.org
6736
6901
  cityofcutbank.org
@@ -6847,7 +7012,6 @@ dunn-nc.org
6847
7012
  duplincountync.com
6848
7013
  eatsmartmovemorenc.com
6849
7014
  eenorthcarolina.org
6850
- elearningnc.gov
6851
7015
  elizabethtownnc.org
6852
7016
  elkinnc.org
6853
7017
  elmcitync.com
@@ -6926,13 +7090,10 @@ naturalsciences.org
6926
7090
  nc-ddc.org
6927
7091
  nc-educationlottery.org
6928
7092
  nc-sco.com
6929
- nc.gov
6930
- nc.ngb.army.mil
6931
7093
  ncabc.com
6932
7094
  ncacc.org
6933
7095
  ncadfp.org
6934
7096
  ncagfairs.org
6935
- ncagr.gov
6936
7097
  ncagrgis.com
6937
7098
  ncair.org
6938
7099
  ncalb.org
@@ -6979,11 +7140,8 @@ nccob.org
6979
7140
  nccommerce.com
6980
7141
  nccourts.org
6981
7142
  nccrimecontrol.org
6982
- ncdcr.gov
6983
- ncdenr.gov
6984
7143
  ncdenr.org
6985
7144
  ncdentalboard.org
6986
- ncdhhs.gov
6987
7145
  ncdiabetes.org
6988
7146
  ncdisasterrelief.org
6989
7147
  ncdjjdp.org
@@ -6991,7 +7149,6 @@ ncdmf.net
6991
7149
  ncdnpe.org
6992
7150
  ncdoi.com
6993
7151
  ncdoj.com
6994
- ncdot.gov
6995
7152
  ncdrought.org
6996
7153
  ncdsca.org
6997
7154
  ncecho.org
@@ -7049,10 +7206,8 @@ ncoah.com
7049
7206
  ncoes.net
7050
7207
  nconemap.com
7051
7208
  nconemap.net
7052
- ncopenbook.gov
7053
7209
  ncoptometry.org
7054
7210
  ncpanbranch.com
7055
- ncparks.gov
7056
7211
  ncports.com
7057
7212
  ncprogress.org
7058
7213
  ncpsychologyboard.org
@@ -7080,7 +7235,6 @@ ncstrokeregistry.com
7080
7235
  ncsymphony.org
7081
7236
  nctobaccofreeschools.org
7082
7237
  nctopps.ncdmh.net
7083
- nctraining.ncgov.com
7084
7238
  nctrans.org
7085
7239
  nctreasurer.com
7086
7240
  ncveterans.com
@@ -7422,7 +7576,6 @@ canterbury-nh.org
7422
7576
  centerharbornh.org
7423
7577
  chesternh.org
7424
7578
  chichesternh.org
7425
- city.laconia.nh.us
7426
7579
  cityofportsmouth.com
7427
7580
  claremontnh.com
7428
7581
  colebrook-nh.com
@@ -7783,6 +7936,7 @@ lodi-nj.org
7783
7936
  logan-twp.org
7784
7937
  longbeachtownship.com
7785
7938
  longhillnj.org
7939
+ longport-nj.us
7786
7940
  lopatcongtwp.com
7787
7941
  lumbertontwp.com
7788
7942
  lyndhurstnj.org
@@ -7976,20 +8130,6 @@ townshipoflower.org
7976
8130
  townshipofocean.org
7977
8131
  trentonnj.org
7978
8132
  tuckertonborough.com
7979
- twp.berkeley.nj.us
7980
- twp.brick.nj.us
7981
- twp.burlington.nj.us
7982
- twp.evesham.nj.us
7983
- twp.fredon.nj.us
7984
- twp.freehold.nj.us
7985
- twp.howell.nj.us
7986
- twp.lakewood.nj.us
7987
- twp.maplewood.nj.us
7988
- twp.millburn.nj.us
7989
- twp.pennsauken.nj.us
7990
- twp.stafford.nj.us
7991
- twp.washington.nj.us
7992
- twp.woodbridge.nj.us
7993
8133
  twpofwashington.us
7994
8134
  ucnj.com
7995
8135
  ucnj.org
@@ -8291,7 +8431,6 @@ alleganyco.com
8291
8431
  altamontvillage.org
8292
8432
  amherst.ny.us
8293
8433
  amityville.com
8294
- angelica-ny.com
8295
8434
  ardsleyvillage.com
8296
8435
  argyleny.com
8297
8436
  arkport.com
@@ -8435,7 +8574,6 @@ greenegovernment.com
8435
8574
  greenfieldny.org
8436
8575
  greenwichny.org
8437
8576
  grotonny.org
8438
- halcottcenter.wordpress.com
8439
8577
  hamdenny.com
8440
8578
  hamiltoncounty.com
8441
8579
  hamlinny.org
@@ -8878,14 +9016,6 @@ valatievillage.com
8878
9016
  vchamplain.com
8879
9017
  vestalny.com
8880
9018
  victorny.org
8881
- village.boonville.ny.us
8882
- village.clinton.ny.us
8883
- village.croton-on-hudson.ny.us
8884
- village.herkimer.ny.us
8885
- village.holland-patent.ny.us
8886
- village.mamaroneck.ny.us
8887
- village.whitesboro.ny.us
8888
- village.williamsville.ny.us
8889
9019
  villageflowerhill.com
8890
9020
  villageflowerhill.org
8891
9021
  villagehohny.org
@@ -9023,6 +9153,7 @@ baltimoreohio.org
9023
9153
  bathtownship.org
9024
9154
  beachwoodohio.com
9025
9155
  beavercreektownship.org
9156
+ belmontcountyohio.org
9026
9157
  berkshiretwp.org
9027
9158
  betheltownship.org
9028
9159
  bexley.org
@@ -9040,7 +9171,6 @@ carrollcountyohio.net
9040
9171
  chagrin-falls.org
9041
9172
  chardon.cc
9042
9173
  cheviot.org
9043
- city.cleveland.oh.us
9044
9174
  cityofalliance.com
9045
9175
  cityofavon.com
9046
9176
  cityofbarberton.com
@@ -9152,7 +9282,6 @@ lovelandoh.com
9152
9282
  madeiracity.com
9153
9283
  madisontownship.org
9154
9284
  madisonvillage.org
9155
- mapleheights.cuyahogacounty.us
9156
9285
  marionohio.us
9157
9286
  marysvilleohio.org
9158
9287
  massillonohio.com
@@ -9423,7 +9552,6 @@ durham-oregon.us
9423
9552
  echo-oregon.com
9424
9553
  elkton-oregon.com
9425
9554
  fallscity.org
9426
- fallscityoregon.gov
9427
9555
  gduway.org
9428
9556
  getcollegefunds.org
9429
9557
  hermiston.or.us
@@ -9480,7 +9608,6 @@ ambridgeboro.org
9480
9608
  apollopa.org
9481
9609
  armstrongcounty.com
9482
9610
  armstrongtwp.org
9483
- arts.pa.gov
9484
9611
  aspinwallpa.com
9485
9612
  astontownship.net
9486
9613
  atglen.org
@@ -9501,15 +9628,6 @@ blairco.org
9501
9628
  bloomsburgpa.org
9502
9629
  blossburg.org
9503
9630
  boggstownship.org
9504
- boro.dormont.pa.us
9505
- boro.newtown.pa.us
9506
- borough.castle-shannon.pa.us
9507
- borough.chambersburg.pa.us
9508
- borough.emmaus.pa.us
9509
- borough.hanover.pa.us
9510
- borough.mountpocono.pa.us
9511
- borough.shippensburg.pa.us
9512
- borough.stroudsburg.pa.us
9513
9631
  boroughofambler.com
9514
9632
  boroughofavalon.org
9515
9633
  boroughofbridgeport.com
@@ -9562,7 +9680,6 @@ conshohockenpa.org
9562
9680
  coolbaughtwp.org
9563
9681
  coplayborough.org
9564
9682
  coraopolispa.com
9565
- county.allegheny.pa.us
9566
9683
  countyofindiana.org
9567
9684
  crafton.org
9568
9685
  cranberrytownship.org
@@ -9880,16 +9997,6 @@ trappeborough.com
9880
9997
  tredyffrin.org
9881
9998
  trumbauersville.org
9882
9999
  tunkboro.com
9883
- twp.antrim.pa.us
9884
- twp.bethel.pa.us
9885
- twp.concord.pa.us
9886
- twp.cranberry.pa.us
9887
- twp.fairview.pa.us
9888
- twp.ferguson.pa.us
9889
- twp.lancaster.pa.us
9890
- twp.marshall.pa.us
9891
- twp.newtown.pa.us
9892
- twp.pine.pa.us
9893
10000
  twpusc.org
9894
10001
  tyroneboropa.com
9895
10002
  umtownship.org
@@ -9971,6 +10078,10 @@ municipiodebayamon.com
9971
10078
  sanjuanciudadpatria.com
9972
10079
  seepuertorico.com
9973
10080
 
10081
+ // usagovPW
10082
+ palaugov.org
10083
+ palausupremecourt.net
10084
+
9974
10085
  // usagovRI
9975
10086
  bristolri.us
9976
10087
  burrillville.org
@@ -10130,6 +10241,7 @@ scemd.org
10130
10241
  scfirststeps.org
10131
10242
  scgovernorsmansion.org
10132
10243
  scgssm.org
10244
+ scguard.com
10133
10245
  scilconline.org
10134
10246
  scpcf.com
10135
10247
  scsdb.org
@@ -10151,7 +10263,6 @@ sumtercountysc.org
10151
10263
  surfsidebeach.org
10152
10264
  swanseatown.net
10153
10265
  tegacaysc.org
10154
- thetownofsixmile.wordpress.com
10155
10266
  tompsc.com
10156
10267
  townofandrews.org
10157
10268
  townofatlanticbeachsc.com
@@ -10379,6 +10490,7 @@ canyon-tx.com
10379
10490
  canyontx.com
10380
10491
  carthagetexas.com
10381
10492
  cctexas.com
10493
+ cedarhilltx.com
10382
10494
  cedarhilltxgov.org
10383
10495
  cedarparktx.us
10384
10496
  centraltexascfc.org
@@ -10389,6 +10501,7 @@ chandlertx.com
10389
10501
  ci.donna.lib.tx.us
10390
10502
  city-of-muleshoe.com
10391
10503
  cityofallen.org
10504
+ cityofalpine.com
10392
10505
  cityofalvarado.org
10393
10506
  cityofandrews.org
10394
10507
  cityofazle.org
@@ -10409,6 +10522,7 @@ cityofdelrio.com
10409
10522
  cityofdenison.com
10410
10523
  cityofdenton.com
10411
10524
  cityofdevine.com
10525
+ cityofdonna.org
10412
10526
  cityofedinburg.com
10413
10527
  cityofelcampo.org
10414
10528
  cityofgalveston.org
@@ -10422,6 +10536,7 @@ cityofkennedale.com
10422
10536
  cityofkingsville.com
10423
10537
  cityofkyle.com
10424
10538
  cityoflakeway.com
10539
+ cityoflaredo.com
10425
10540
  cityoflewisville.com
10426
10541
  cityoflg.com
10427
10542
  cityoflivingston-tx.com
@@ -10500,6 +10615,7 @@ graniteshoals.org
10500
10615
  gunbarrelcity.net
10501
10616
  haltomcitytx.com
10502
10617
  hamiltoncountytx.org
10618
+ harrisoncountytexas.org
10503
10619
  hcdistrictclerk.com
10504
10620
  hctx.net
10505
10621
  henderson-county.com
@@ -10669,6 +10785,7 @@ genola.org
10669
10785
  grandcountyutah.net
10670
10786
  greenriverutah.com
10671
10787
  gunnisoncity.org
10788
+ hanksville.us
10672
10789
  helpercity.net
10673
10790
  heneferutah.org
10674
10791
  herriman.org
@@ -10804,7 +10921,6 @@ farmvilleva.com
10804
10921
  fcva.us
10805
10922
  floydcova.org
10806
10923
  fluvannacounty.org
10807
- franklincountyva.gov
10808
10924
  franklincountyva.org
10809
10925
  franklinva.com
10810
10926
  frontroyalva.com
@@ -10825,7 +10941,6 @@ lancova.com
10825
10941
  lawrencevilleweb.com
10826
10942
  leesburgva.org
10827
10943
  lenowisco.org
10828
- lexingtonva.gov
10829
10944
  louisacounty.com
10830
10945
  louisatown.org
10831
10946
  manassascity.org
@@ -10844,7 +10959,6 @@ onancock.com
10844
10959
  parksley.org
10845
10960
  pearisburg.org
10846
10961
  petersburg-va.org
10847
- petersburgva.gov
10848
10962
  pittgov.org
10849
10963
  portofvirginia.com
10850
10964
  potomaccfc.org
@@ -10959,6 +11073,7 @@ clarendonvt.org
10959
11073
  concordvt.us
10960
11074
  corinthvt.org
10961
11075
  cornwallvt.com
11076
+ danvillevermont.org
10962
11077
  danvillevt.com
10963
11078
  derbyvt.org
10964
11079
  dorsetvt.org
@@ -10977,6 +11092,7 @@ ferrisburghvt.org
10977
11092
  franklinvermont.com
10978
11093
  goshenvt.org
10979
11094
  grandislevt.org
11095
+ granvillevermont.org
10980
11096
  greensborovt.org
10981
11097
  grotonvt.com
10982
11098
  guilfordvt.net
@@ -11022,7 +11138,6 @@ proctorvermont.com
11022
11138
  putneyvt.org
11023
11139
  richfordvt.com
11024
11140
  richmondvt.com
11025
- riptonvt.org
11026
11141
  rochestervermont.org
11027
11142
  rockbf.org
11028
11143
  royaltonvt.com
@@ -11038,6 +11153,7 @@ shorehamvt.org
11038
11153
  shrewsburyvt.org
11039
11154
  stalbanstown.com
11040
11155
  stalbansvt.com
11156
+ starksborovt.org
11041
11157
  stgeorgevt.com
11042
11158
  stjvt.com
11043
11159
  swcrpc.org
@@ -11085,7 +11201,6 @@ worcestervt.org
11085
11201
 
11086
11202
  // usagovWA
11087
11203
  aberdeeninfo.com
11088
- aberdeenwa.gov
11089
11204
  bingenwashington.org
11090
11205
  bridgeportwashington.net
11091
11206
  bucoda.us
@@ -11264,6 +11379,8 @@ westrichland.org
11264
11379
  whefa.org
11265
11380
  whitmancounty.org
11266
11381
  wilburwa.com
11382
+ winthropwashington.com
11383
+ wscc.com
11267
11384
  wscpr.org
11268
11385
  wsctc.com
11269
11386
  wshfc.org
@@ -11298,7 +11415,6 @@ buffalocounty.com
11298
11415
  burnettcounty.com
11299
11416
  caledoniawi.com
11300
11417
  chip-howard-wi.org
11301
- city.fitchburg.wi.us
11302
11418
  cityhoriconwi.us
11303
11419
  citymedfordwi.com
11304
11420
  cityofaugusta.org
@@ -11540,19 +11656,7 @@ travelwisconsin.com
11540
11656
  tremplocounty.com
11541
11657
  two-rivers.org
11542
11658
  valders.org
11543
- vi.deforest.wi.us
11544
- vi.hewitt.wi.us
11545
11659
  vienna-wis.com
11546
- village.bayside.wi.us
11547
- village.belgium.wi.us
11548
- village.cottage-grove.wi.us
11549
- village.fredonia.wi.us
11550
- village.germantown.wi.us
11551
- village.grafton.wi.us
11552
- village.newburg.wi.us
11553
- village.saukville.wi.us
11554
- village.sussex.wi.us
11555
- village.thiensville.wi.us
11556
11660
  villageofallouez.com
11557
11661
  villageofbaldwin.com
11558
11662
  villageofbellevue.org
@@ -11612,7 +11716,6 @@ cityofripley.org
11612
11716
  cityofspencer.com
11613
11717
  cityofweirton.com
11614
11718
  epcfc.org
11615
- fairmontwv.gov
11616
11719
  harrisoncountywv.com
11617
11720
  hedgesvillewv.us
11618
11721
  jeffersoncountywv.org
@@ -11683,4 +11786,4 @@ townofjackson.com
11683
11786
  uintacounty.com
11684
11787
  wrightwyoming.com
11685
11788
  wyomingbusiness.org
11686
- wyomingtourism.org
11789
+ wyomingtourism.org
data/gman.gemspec CHANGED
@@ -1,8 +1,10 @@
1
+ require File.expand_path "./lib/gman/version", File.dirname(__FILE__)
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = "gman"
3
5
  s.summary = "Check if a given domain or email address belong to a governemnt entity"
4
6
  s.description = "A ruby gem to check if the owner of a given email address is working for THE MAN."
5
- s.version = '4.7.1'
7
+ s.version = Gman::VERSION
6
8
  s.authors = ["Ben Balter"]
7
9
  s.email = "ben.balter@github.com"
8
10
  s.homepage = "https://github.com/benbalter/gman"
@@ -16,9 +18,9 @@ Gem::Specification.new do |s|
16
18
  s.require_paths = ["lib"]
17
19
  s.required_ruby_version = '~> 2.0'
18
20
 
19
- s.add_dependency( "swot", '~> 0.4.2' )
21
+ s.add_dependency( "swot", '~> 1.0' )
20
22
  s.add_dependency( "iso_country_codes", "~> 0.6" )
21
- s.add_dependency( "naughty_or_nice", "~> 0.0.2" )
23
+ s.add_dependency( "naughty_or_nice", "~> 2.0" )
22
24
  s.add_dependency( "colorize", "~> 0.7" )
23
25
 
24
26
  s.add_development_dependency( "rake" )
data/lib/gman.rb CHANGED
@@ -2,14 +2,17 @@ require 'naughty_or_nice'
2
2
  require 'swot'
3
3
  require 'iso_country_codes'
4
4
  require 'csv'
5
+ require_relative 'gman/version'
5
6
  require_relative 'gman/country_codes'
6
7
  require_relative 'gman/locality'
7
8
  require_relative 'gman/identifier'
8
9
  require_relative 'gman/sanctions'
9
10
 
10
- class Gman < NaughtyOrNice
11
- class << self
11
+ class Gman
12
+
13
+ include NaughtyOrNice
12
14
 
15
+ class << self
13
16
  # returns an instance of our custom public suffix list
14
17
  # list behaves like PublicSuffix::List but is limited to our whitelisted domains
15
18
  def list
@@ -35,7 +38,7 @@ class Gman < NaughtyOrNice
35
38
  # Returns boolean true if a government domain
36
39
  def valid?
37
40
  # Ensure it's a valid domain
38
- return false unless PublicSuffix.valid?(".#{domain}")
41
+ return false unless domain && domain.valid?
39
42
 
40
43
  # Ensure non-edu
41
44
  return false if Swot::is_academic?(domain)
@@ -44,7 +47,7 @@ class Gman < NaughtyOrNice
44
47
  return true if locality?
45
48
 
46
49
  # check using public suffix's standard logic
47
- rule = Gman.list.find domain
50
+ rule = Gman.list.find(to_s)
48
51
 
49
52
  # domain is on the domain list and
50
53
  # domain is not explicitly blacklisted and
@@ -1,4 +1,4 @@
1
- class Gman < NaughtyOrNice
1
+ class Gman
2
2
 
3
3
  # Map last part of TLD to alpha2 country code
4
4
  ALPHA2_MAP = {
@@ -21,8 +21,8 @@ class Gman < NaughtyOrNice
21
21
  #
22
22
  # e.g., United States = US, United Kingdom = GB
23
23
  def alpha2
24
- return unless domain_parts
25
- alpha2 = domain_parts.tld.split('.').last
24
+ return unless domain
25
+ alpha2 = domain.tld.split('.').last
26
26
  if ALPHA2_MAP[alpha2.to_sym]
27
27
  ALPHA2_MAP[alpha2.to_sym]
28
28
  else
@@ -1,4 +1,4 @@
1
- class Gman < NaughtyOrNice
1
+ class Gman
2
2
  class DomainList
3
3
 
4
4
  attr_accessor :list
@@ -1,4 +1,4 @@
1
- class Gman < NaughtyOrNice
1
+ class Gman
2
2
 
3
3
  def type
4
4
  if state?
@@ -42,7 +42,7 @@ class Gman < NaughtyOrNice
42
42
  end
43
43
 
44
44
  def dotgov?
45
- domain_parts.tld == "gov"
45
+ domain.tld == "gov"
46
46
  end
47
47
 
48
48
  def federal?
@@ -85,7 +85,7 @@ class Gman < NaughtyOrNice
85
85
 
86
86
  def list_category
87
87
  @list_category ||= begin
88
- if match = Gman.list.find(domain)
88
+ if match = Gman.list.find(domain.to_s)
89
89
  regex = Regexp.new "\/\/ ([^\\n]+)\\n?[^\/\/]*\\n#{Regexp.escape(match.name)}\\n", "im"
90
90
  matches = Gman.list_contents.match(regex)
91
91
  matches[1] if matches
@@ -94,7 +94,7 @@ class Gman < NaughtyOrNice
94
94
  end
95
95
 
96
96
  def matches
97
- @matches ||= domain.match(LOCALITY_REGEX)
97
+ @matches ||= domain.to_s.match(LOCALITY_REGEX)
98
98
  end
99
99
 
100
100
  def self.dotgov_list_path
@@ -106,6 +106,6 @@ class Gman < NaughtyOrNice
106
106
  end
107
107
 
108
108
  def dotgov_listing
109
- @dotgov_listing ||= Gman.dotgov_list.find { |d| d["Domain Name"].downcase == "#{domain_parts.sld}.gov" } if dotgov?
109
+ @dotgov_listing ||= Gman.dotgov_list.find { |d| d["Domain Name"].downcase == "#{domain.sld}.gov" } if dotgov?
110
110
  end
111
111
  end
data/lib/gman/importer.rb CHANGED
@@ -7,7 +7,7 @@ require 'net/dns/resolver'
7
7
  require_relative '../gman'
8
8
  require_relative './domain_list'
9
9
 
10
- class Gman < NaughtyOrNice
10
+ class Gman
11
11
  class Importer
12
12
 
13
13
  attr_accessor :domains
@@ -59,14 +59,21 @@ class Gman < NaughtyOrNice
59
59
  return reject(domain, "user. regex") if domain =~ /^users?\./
60
60
  return reject(domain, "sites. regex") if domain =~ /^sites?\./
61
61
  return reject(domain, "weebly") if domain =~ /weebly\.com$/
62
+ return reject(domain, "wordpress") if domain =~ /wordpress\.com$/
62
63
  return reject(domain, "govoffice") if domain =~ /govoffice\d?\.com$/
63
64
  return reject(domain, "homestead") if domain =~ /homestead\.com$/
64
65
  return reject(domain, "wix.com") if domain =~ /wix\.com$/
66
+ return reject(domain, "blogspot.com") if domain =~ /blogspot\.com$/
65
67
  return reject(domain, "locality") if domain =~ Gman::LOCALITY_REGEX
66
68
  return reject(domain, "blacklist") if BLACKLIST.include?(domain)
67
69
  return reject(domain, "duplicate") if !options[:skip_dupe] && current.domains.include?(domain)
68
70
  return reject(domain, "invalid") unless PublicSuffix.valid?(".#{domain}")
69
71
  return reject(domain, "academic") if Swot::is_academic?(domain)
72
+
73
+ if !options[:skip_dupe] && subdomain = current.domains.find { |c| domain =~ /\.#{Regexp.escape(c)}$/}
74
+ return reject(domain, "subdomain of #{subdomain}")
75
+ end
76
+
70
77
  return reject(domain, "unresolvable") if !options[:skip_resolve] && !domain_resolves?(domain)
71
78
  true
72
79
  end
@@ -128,7 +135,7 @@ class Gman < NaughtyOrNice
128
135
  end
129
136
  end
130
137
 
131
- class Gman < NaughtyOrNice
138
+ class Gman
132
139
  def self.import(hash)
133
140
  Gman::Importer.new(hash).import
134
141
  end
data/lib/gman/locality.rb CHANGED
@@ -1,10 +1,10 @@
1
- class Gman < NaughtyOrNice
1
+ class Gman
2
2
 
3
3
  LOCALITY_REGEX = %r{
4
4
  (
5
5
  (state|dst|cog)
6
6
  |
7
- (ci|town|vil|co)\.[a-z-]+
7
+ (ci|co|borough|boro|city|county|parish|town|twp|vi|vil|village)\.[a-z-]+
8
8
  )
9
9
  \.(ak|al|ar|az|ca|co|ct|dc|de|fl|ga|hi|ia|id|il|in|ks|ky|la|ma|md|me|mi|mn|mo|ms|mt|nc|nd|ne|nh|nj|nm|nv|ny|oh|ok|or|pa|ri|sc|sd|tn|tx|um|ut|va|vt|wa|wi|wv|wy)
10
10
  \.us
@@ -23,6 +23,6 @@ class Gman < NaughtyOrNice
23
23
  # * k12.il.us
24
24
  # * ci.foo.zx.us
25
25
  def locality?
26
- !!(domain =~ LOCALITY_REGEX)
26
+ !!(domain.to_s =~ LOCALITY_REGEX)
27
27
  end
28
28
  end
@@ -0,0 +1,3 @@
1
+ class Gman
2
+ VERSION = '5.0.0'
3
+ end
data/script/profile ADDED
@@ -0,0 +1,17 @@
1
+ #! /usr/bin/env ruby
2
+
3
+ require 'ruby-prof'
4
+ require './lib/gman'
5
+
6
+ # Pick N random domains directly, without pre-loading the Gman list for an accurate benchmark
7
+ count = (ARGV[0] || 100).to_i
8
+ domains = File.readlines("./config/domains.txt").select { |l| l =~ /^[a-z0-9]/i }.sample(count)
9
+
10
+ RubyProf.start
11
+ domains.each do |domain|
12
+ Gman.new("foo@bar.#{domain}").valid?
13
+ end
14
+
15
+ result = RubyProf.stop
16
+ printer = RubyProf::FlatPrinter.new(result)
17
+ printer.print(STDOUT)
data/script/vendor-us CHANGED
@@ -13,7 +13,7 @@
13
13
  require './lib/gman/importer'
14
14
 
15
15
  source = "https://raw.githubusercontent.com/GSA/govt-urls/master/government-urls.yaml"
16
- blacklist = ["usagovQUASI", "usagovFED", "usagovPW"]
16
+ blacklist = ["usagovQUASI"]
17
17
 
18
18
  data = open(source).read
19
19
  domains = YAML.load(data)
data/test/test_gman.rb CHANGED
@@ -8,12 +8,12 @@ VALID = [ "foo.gov",
8
8
  "foo@ci.champaign.il.us",
9
9
  "foo.bar.baz.gov.au",
10
10
  "foo@bar.gov.uk",
11
- ".gov",
11
+ "foo.gov",
12
12
  "foo.fed.us",
13
13
  "foo.state.il.us",
14
14
  "state.il.us",
15
15
  "foo@af.mil",
16
- "gov.in"
16
+ "foo.gov.in"
17
17
  ]
18
18
 
19
19
  INVALID = [ "foo.bar.com",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gman
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-19 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: swot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.2
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.2
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: iso_country_codes
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.2
47
+ version: '2.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.2
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: colorize
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -193,10 +193,12 @@ files:
193
193
  - lib/gman/importer.rb
194
194
  - lib/gman/locality.rb
195
195
  - lib/gman/sanctions.rb
196
+ - lib/gman/version.rb
196
197
  - script/alphabetize
197
198
  - script/cibuild
198
199
  - script/console
199
200
  - script/dedupe
201
+ - script/profile
200
202
  - script/prune
201
203
  - script/release
202
204
  - script/vendor-federal-de