gman 4.2.1 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/domains.txt +2 -23
- data/lib/gman.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88ec1e113a71437c081c787db0ff776f77fcbcd6
|
4
|
+
data.tar.gz: 1f0fc7b93b106d0ecb015e4eaf3e957eaf5e0da5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f01a3735bc119ad123af2508e7af0cc9f63f3833d2e72a3dc3ea78f36f2a76a2fa693bbe4c61c12dc2f0fffd1d8d9d9e5b989b8312b7fd59259aa014e294b6cf
|
7
|
+
data.tar.gz: ac7b16f4d5370c28453624fc2ad22781bfdbb8c989bd8daf988f8456895eb12a6701420a7032efcbf01c08ac4714e75db3f2ca049e12577ebbcfeb8624ba7eff
|
data/config/domains.txt
CHANGED
@@ -329,7 +329,6 @@ fortymile.ab.ca
|
|
329
329
|
foxcreek.ca
|
330
330
|
fraserlake.ca
|
331
331
|
fredericton.ca
|
332
|
-
frederictonjunction.ca
|
333
332
|
frenchriver.ca
|
334
333
|
frontofyonge.com
|
335
334
|
galwaycavendishharvey.ca
|
@@ -420,7 +419,6 @@ inuvik.ca
|
|
420
419
|
invermere.net
|
421
420
|
iroquoisfalls.com
|
422
421
|
irricana.com
|
423
|
-
isle-aux-allumettes.com
|
424
422
|
isle-aux-grues.com
|
425
423
|
itaska.ca
|
426
424
|
jansen.ca
|
@@ -880,7 +878,6 @@ shuniah.org
|
|
880
878
|
sicamous.ca
|
881
879
|
sidney.ca
|
882
880
|
silverbeach.ca
|
883
|
-
silvercreek.ca
|
884
881
|
silverton.ca
|
885
882
|
siouxlookout.ca
|
886
883
|
sjdl.qc.ca
|
@@ -1253,7 +1250,6 @@ villageoflipton.com
|
|
1253
1250
|
villageoflougheed.com
|
1254
1251
|
villageoflove.ca
|
1255
1252
|
villageofminto.ca
|
1256
|
-
villageofpennant.com
|
1257
1253
|
villageofperdue.com
|
1258
1254
|
villageofpointedward.com
|
1259
1255
|
villageofportelgin.com
|
@@ -1456,6 +1452,7 @@ ontario.ca
|
|
1456
1452
|
saskatchewan.ca
|
1457
1453
|
|
1458
1454
|
// non-us gov
|
1455
|
+
!mail.gov.ua
|
1459
1456
|
admin.ch
|
1460
1457
|
dep.no
|
1461
1458
|
gob.bo
|
@@ -1518,7 +1515,6 @@ gov.hk
|
|
1518
1515
|
gov.ie
|
1519
1516
|
gov.im
|
1520
1517
|
gov.in
|
1521
|
-
nic.in
|
1522
1518
|
gov.iq
|
1523
1519
|
gov.ir
|
1524
1520
|
gov.is
|
@@ -1593,6 +1589,7 @@ gov.za
|
|
1593
1589
|
government.bg
|
1594
1590
|
govt.nz
|
1595
1591
|
gub.uy
|
1592
|
+
nic.in
|
1596
1593
|
|
1597
1594
|
// non-us mil
|
1598
1595
|
mil.ac
|
@@ -1826,7 +1823,6 @@ guntersvilleal.org
|
|
1826
1823
|
hamiltoncityal.org
|
1827
1824
|
hartselle.org
|
1828
1825
|
headlandalabama.org
|
1829
|
-
heartofalabamacfc.org
|
1830
1826
|
henrycountyal.com
|
1831
1827
|
hooveral.org
|
1832
1828
|
houstoncounty.org
|
@@ -1910,7 +1906,6 @@ cherokeevillage.org
|
|
1910
1906
|
cityofbryant.com
|
1911
1907
|
cityofconway.org
|
1912
1908
|
cityofdequeen.com
|
1913
|
-
cityofeurekasprings.us
|
1914
1909
|
cityofjacksonville.net
|
1915
1910
|
cityofmcgehee.com
|
1916
1911
|
cityofpinebluff.com
|
@@ -2440,7 +2435,6 @@ coloradonocall.com
|
|
2440
2435
|
coloradoriverrecovery.org
|
2441
2436
|
crgov.com
|
2442
2437
|
cripplecreekgov.com
|
2443
|
-
deertrailcolorado.org
|
2444
2438
|
deltacounty.com
|
2445
2439
|
denvergov.org
|
2446
2440
|
durangogov.org
|
@@ -3744,7 +3738,6 @@ porterco.org
|
|
3744
3738
|
portertownship.com
|
3745
3739
|
poseycountygov.org
|
3746
3740
|
ripleycounty.com
|
3747
|
-
seymourcity.com
|
3748
3741
|
shipshewana.org
|
3749
3742
|
stjohnin.com
|
3750
3743
|
stjosephcountyindiana.com
|
@@ -3981,7 +3974,6 @@ kyagr.com
|
|
3981
3974
|
kyconvention.org
|
3982
3975
|
kyepsb.net
|
3983
3976
|
kyfairexpo.org
|
3984
|
-
kyheritage.org
|
3985
3977
|
kylottery.com
|
3986
3978
|
kytreasury.com
|
3987
3979
|
laruecounty.org
|
@@ -4136,7 +4128,6 @@ townofberwick.org
|
|
4136
4128
|
townofblanchard.us
|
4137
4129
|
townofchatham.org
|
4138
4130
|
townoffranklinton.com
|
4139
|
-
townofgoldenmeadow.com
|
4140
4131
|
townofhornbeck.com
|
4141
4132
|
townoflivingston.com
|
4142
4133
|
townoflockport.com
|
@@ -4564,7 +4555,6 @@ barrycounty.org
|
|
4564
4555
|
baycitymi.org
|
4565
4556
|
baymills.org
|
4566
4557
|
bearlakemichigan.org
|
4567
|
-
beavertonmi.org
|
4568
4558
|
bedfordmi.org
|
4569
4559
|
bellairemichigan.com
|
4570
4560
|
berkleymich.org
|
@@ -4997,7 +4987,6 @@ independence.govoffice.com
|
|
4997
4987
|
ivanhoe-mn.com
|
4998
4988
|
janesville.govoffice.com
|
4999
4989
|
jordan.govoffice.com
|
5000
|
-
kabetogamatownship.org
|
5001
4990
|
kalmar.govoffice.com
|
5002
4991
|
kanabeccounty.org
|
5003
4992
|
keewatin.govoffice.com
|
@@ -5430,7 +5419,6 @@ cityoflongbeachms.com
|
|
5430
5419
|
cityoflucedale.com
|
5431
5420
|
cityofmacon.org
|
5432
5421
|
cityofmagee.com
|
5433
|
-
cityofmagnoliams.com
|
5434
5422
|
cityofpascagoula.com
|
5435
5423
|
cityofpearl.com
|
5436
5424
|
cityofsenatobia.com
|
@@ -5501,7 +5489,6 @@ townofedwards.com
|
|
5501
5489
|
townofheidelberg.com
|
5502
5490
|
townofprentiss.com
|
5503
5491
|
townofshannon.org
|
5504
|
-
townofshuqualak.com
|
5505
5492
|
townoftaylorsville.com
|
5506
5493
|
townofwalls.com
|
5507
5494
|
tunicacounty.com
|
@@ -5537,7 +5524,6 @@ dillonmt.org
|
|
5537
5524
|
easthelenamt.us
|
5538
5525
|
ennismontana.org
|
5539
5526
|
falloncounty.net
|
5540
|
-
froidmt.com
|
5541
5527
|
greatfallsmt.net
|
5542
5528
|
hardinmt.com
|
5543
5529
|
hillcounty.us
|
@@ -6502,7 +6488,6 @@ freeholdboro.org
|
|
6502
6488
|
frelinghuysen-nj.us
|
6503
6489
|
garfieldnj.org
|
6504
6490
|
garwood.org
|
6505
|
-
gibbsboro.com
|
6506
6491
|
gibbsborotownhall.com
|
6507
6492
|
glassboroonline.com
|
6508
6493
|
glengardnernj.org
|
@@ -6776,7 +6761,6 @@ totowanj.org
|
|
6776
6761
|
townofhammonton.org
|
6777
6762
|
townofharrison.com
|
6778
6763
|
townofmorristown.org
|
6779
|
-
township.clinton.nj.us
|
6780
6764
|
townshipofhillside.org
|
6781
6765
|
townshipoflower.org
|
6782
6766
|
townshipofocean.org
|
@@ -6873,7 +6857,6 @@ isletapueblo.com
|
|
6873
6857
|
jemezsprings.org
|
6874
6858
|
las-cruces.org
|
6875
6859
|
leacounty.net
|
6876
|
-
lincolncountynm.net
|
6877
6860
|
losalamosnm.us
|
6878
6861
|
lovington.org
|
6879
6862
|
newmexico.org
|
@@ -8003,7 +7986,6 @@ jeffersoncountyoh.com
|
|
8003
7986
|
kentohio.org
|
8004
7987
|
ketteringoh.org
|
8005
7988
|
kirtlandohio.com
|
8006
|
-
knoxcountyohio.org
|
8007
7989
|
lakecountyohio.org
|
8008
7990
|
lcounty.com
|
8009
7991
|
libertytwp.com
|
@@ -8187,7 +8169,6 @@ courthouse.kay.ok.us
|
|
8187
8169
|
creekcountyonline.com
|
8188
8170
|
custer.okcounties.org
|
8189
8171
|
davisokla.com
|
8190
|
-
delawareclerk.org
|
8191
8172
|
durant.org
|
8192
8173
|
edmondok.com
|
8193
8174
|
elkcity.com
|
@@ -9045,7 +9026,6 @@ townofbriarcliffe.us
|
|
9045
9026
|
townofcampobello.com
|
9046
9027
|
townofedistobeach.com
|
9047
9028
|
townofgraycourt.net
|
9048
|
-
townofheathsprings.org
|
9049
9029
|
townofhollywood.org
|
9050
9030
|
townofhoneapath.com
|
9051
9031
|
townofirmosc.com
|
@@ -10117,7 +10097,6 @@ kingcountycfc.org
|
|
10117
10097
|
kitsapgov.com
|
10118
10098
|
klickitatcounty.org
|
10119
10099
|
laconner.net
|
10120
|
-
lacrossewa.us
|
10121
10100
|
langleywa.org
|
10122
10101
|
lyndenwa.org
|
10123
10102
|
medical-lake.org
|
data/lib/gman.rb
CHANGED
@@ -44,9 +44,10 @@ class Gman < NaughtyOrNice
|
|
44
44
|
|
45
45
|
# check using public suffix's standard logic
|
46
46
|
rule = Gman.list.find domain
|
47
|
-
return true if !rule.nil? && rule.allow?(domain)
|
48
47
|
|
49
|
-
#
|
50
|
-
|
48
|
+
# domain is on the domain list and
|
49
|
+
# domain is not explicitly blacklisted and
|
50
|
+
# domain matches a standard public suffix list rule
|
51
|
+
!rule.nil? && rule.type != :exception && rule.allow?(".#{domain}")
|
51
52
|
end
|
52
53
|
end
|
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.
|
4
|
+
version: 4.3.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:
|
11
|
+
date: 2015-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: swot
|