public_suffix 3.0.0 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop_defaults.yml +8 -0
- data/.travis.yml +10 -11
- data/CHANGELOG.md +11 -0
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/data/list.txt +174 -29
- data/lib/public_suffix.rb +1 -1
- data/lib/public_suffix/domain.rb +1 -1
- data/lib/public_suffix/errors.rb +1 -1
- data/lib/public_suffix/list.rb +5 -7
- data/lib/public_suffix/rule.rb +2 -2
- data/lib/public_suffix/version.rb +2 -2
- data/test/acceptance_test.rb +1 -1
- data/test/psl_test.rb +1 -1
- data/test/unit/list_test.rb +10 -10
- data/test/unit/public_suffix_test.rb +6 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4c8980f87838c3a993c86fa8b00c194ef18cdd419f68fe40c486bea6b672c477
|
4
|
+
data.tar.gz: 96760921509fb9f583d3b67b563942f4e10ba6958724c15edb3743f3467cd12a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 102914deff3f3d3df37c70b8c00e6e5b51565e1ae299e997983c2bf28a27af19c845b85b891162cc9f4e1f8949140fb675affc8e1d308f54f97321fdaa50da78
|
7
|
+
data.tar.gz: f37fc7151833326077e178e66e0727be1b4cb5ffc3a004ca4b0a4feceb7fbd5dc929a9300fd4fb9bd55d09b188fda625b9235671da340b022d64636dec93ee88
|
data/.rubocop_defaults.yml
CHANGED
@@ -105,6 +105,11 @@ Layout/EmptyLineBetweenDefs:
|
|
105
105
|
Style/FormatString:
|
106
106
|
Enabled: false
|
107
107
|
|
108
|
+
# Annotated tokens (like %<foo>s) are a good thing, but in most cases we don't need them.
|
109
|
+
# %s is a simpler and straightforward version that works in almost all cases. So don't complain.
|
110
|
+
Style/FormatStringToken:
|
111
|
+
Enabled: false
|
112
|
+
|
108
113
|
# Prefer the latest Hash syntax
|
109
114
|
Style/HashSyntax:
|
110
115
|
Exclude:
|
@@ -113,6 +118,9 @@ Style/HashSyntax:
|
|
113
118
|
# that looks nicer with the old rocket syntax.
|
114
119
|
- 'Rakefile'
|
115
120
|
|
121
|
+
Style/RescueStandardError:
|
122
|
+
Enabled: false
|
123
|
+
|
116
124
|
# Array indentation should be considered like MultilineMethodCallIndentation indentation
|
117
125
|
# and use 4 spaces instead of 2.
|
118
126
|
Layout/IndentArray:
|
data/.travis.yml
CHANGED
@@ -3,24 +3,23 @@ language: ruby
|
|
3
3
|
rvm:
|
4
4
|
- 2.1
|
5
5
|
- 2.2
|
6
|
-
- 2.3
|
7
|
-
- 2.4
|
6
|
+
- 2.3
|
7
|
+
- 2.4
|
8
|
+
- 2.5
|
9
|
+
- jruby-9.1.5.0
|
8
10
|
- ruby-head
|
9
|
-
- jruby-9.0.5.0
|
10
|
-
- jruby-9.1.0.0
|
11
11
|
|
12
|
-
|
13
|
-
-
|
14
|
-
- gem install bundler
|
12
|
+
env:
|
13
|
+
- COVERALL=1
|
15
14
|
|
16
15
|
cache:
|
17
16
|
- bundler
|
18
17
|
|
19
|
-
env:
|
20
|
-
- COVERALL=1
|
21
|
-
|
22
18
|
matrix:
|
23
19
|
allow_failures:
|
24
20
|
- rvm: ruby-head
|
25
|
-
- rvm: jruby-9.0.5.0
|
26
21
|
- rvm: jruby-9.1.0.0
|
22
|
+
|
23
|
+
before_install:
|
24
|
+
- rvm get latest
|
25
|
+
- gem install bundler
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
3
|
|
4
|
+
#### Release 3.0.2
|
5
|
+
|
6
|
+
- CHANGED: Updated definitions.
|
7
|
+
|
8
|
+
|
9
|
+
#### Release 3.0.1
|
10
|
+
|
11
|
+
- CHANGED: Updated definitions.
|
12
|
+
- CHANGED: Improve performance and avoid allocation (GH-146). [Thanks @robholland]
|
13
|
+
|
14
|
+
|
4
15
|
#### Release 3.0.0
|
5
16
|
|
6
17
|
This new version includes a major redesign of the library internals, with the goal to drastically
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
## Requirements
|
9
9
|
|
10
|
-
- Ruby >= 2.
|
10
|
+
- Ruby >= 2.1
|
11
11
|
|
12
12
|
For an older versions of Ruby use a previous release.
|
13
13
|
|
@@ -197,6 +197,6 @@ See the [CHANGELOG.md](CHANGELOG.md) file for details.
|
|
197
197
|
|
198
198
|
## License
|
199
199
|
|
200
|
-
Copyright (c) 2009-
|
200
|
+
Copyright (c) 2009-2018 Simone Carletti. This is Free Software distributed under the MIT license.
|
201
201
|
|
202
202
|
The [Public Suffix List source](https://publicsuffix.org/list/) is subject to the terms of the Mozilla Public License, v. 2.0.
|
data/data/list.txt
CHANGED
@@ -384,39 +384,86 @@ org.bm
|
|
384
384
|
// bn : https://en.wikipedia.org/wiki/.bn
|
385
385
|
*.bn
|
386
386
|
|
387
|
-
// bo :
|
387
|
+
// bo : https://nic.bo/delegacion2015.php#h-1.10
|
388
388
|
bo
|
389
389
|
com.bo
|
390
390
|
edu.bo
|
391
|
-
gov.bo
|
392
391
|
gob.bo
|
393
392
|
int.bo
|
394
393
|
org.bo
|
395
394
|
net.bo
|
396
395
|
mil.bo
|
397
396
|
tv.bo
|
397
|
+
web.bo
|
398
|
+
// Social Domains
|
399
|
+
academia.bo
|
400
|
+
agro.bo
|
401
|
+
arte.bo
|
402
|
+
blog.bo
|
403
|
+
bolivia.bo
|
404
|
+
ciencia.bo
|
405
|
+
cooperativa.bo
|
406
|
+
democracia.bo
|
407
|
+
deporte.bo
|
408
|
+
ecologia.bo
|
409
|
+
economia.bo
|
410
|
+
empresa.bo
|
411
|
+
indigena.bo
|
412
|
+
industria.bo
|
413
|
+
info.bo
|
414
|
+
medicina.bo
|
415
|
+
movimiento.bo
|
416
|
+
musica.bo
|
417
|
+
natural.bo
|
418
|
+
nombre.bo
|
419
|
+
noticias.bo
|
420
|
+
patria.bo
|
421
|
+
politica.bo
|
422
|
+
profesional.bo
|
423
|
+
plurinacional.bo
|
424
|
+
pueblo.bo
|
425
|
+
revista.bo
|
426
|
+
salud.bo
|
427
|
+
tecnologia.bo
|
428
|
+
tksat.bo
|
429
|
+
transporte.bo
|
430
|
+
wiki.bo
|
398
431
|
|
399
432
|
// br : http://registro.br/dominio/categoria.html
|
400
433
|
// Submitted by registry <fneves@registro.br>
|
401
434
|
br
|
435
|
+
9guacu.br
|
436
|
+
abc.br
|
402
437
|
adm.br
|
403
438
|
adv.br
|
404
439
|
agr.br
|
440
|
+
aju.br
|
405
441
|
am.br
|
442
|
+
anani.br
|
443
|
+
aparecida.br
|
406
444
|
arq.br
|
407
445
|
art.br
|
408
446
|
ato.br
|
409
447
|
b.br
|
410
448
|
belem.br
|
449
|
+
bhz.br
|
411
450
|
bio.br
|
412
451
|
blog.br
|
413
452
|
bmd.br
|
453
|
+
boavista.br
|
454
|
+
bsb.br
|
455
|
+
campinagrande.br
|
456
|
+
campinas.br
|
457
|
+
caxias.br
|
414
458
|
cim.br
|
415
459
|
cng.br
|
416
460
|
cnt.br
|
417
461
|
com.br
|
462
|
+
contagem.br
|
418
463
|
coop.br
|
419
464
|
cri.br
|
465
|
+
cuiaba.br
|
466
|
+
curitiba.br
|
420
467
|
def.br
|
421
468
|
ecn.br
|
422
469
|
eco.br
|
@@ -427,14 +474,18 @@ esp.br
|
|
427
474
|
etc.br
|
428
475
|
eti.br
|
429
476
|
far.br
|
477
|
+
feira.br
|
430
478
|
flog.br
|
431
479
|
floripa.br
|
432
480
|
fm.br
|
433
481
|
fnd.br
|
482
|
+
fortal.br
|
434
483
|
fot.br
|
484
|
+
foz.br
|
435
485
|
fst.br
|
436
486
|
g12.br
|
437
487
|
ggf.br
|
488
|
+
goiania.br
|
438
489
|
gov.br
|
439
490
|
// gov.br 26 states + df https://en.wikipedia.org/wiki/States_of_Brazil
|
440
491
|
ac.gov.br
|
@@ -464,42 +515,72 @@ sc.gov.br
|
|
464
515
|
se.gov.br
|
465
516
|
sp.gov.br
|
466
517
|
to.gov.br
|
518
|
+
gru.br
|
467
519
|
imb.br
|
468
520
|
ind.br
|
469
521
|
inf.br
|
522
|
+
jab.br
|
470
523
|
jampa.br
|
524
|
+
jdf.br
|
525
|
+
joinville.br
|
471
526
|
jor.br
|
472
527
|
jus.br
|
473
528
|
leg.br
|
474
529
|
lel.br
|
530
|
+
londrina.br
|
531
|
+
macapa.br
|
532
|
+
maceio.br
|
533
|
+
manaus.br
|
534
|
+
maringa.br
|
475
535
|
mat.br
|
476
536
|
med.br
|
477
537
|
mil.br
|
538
|
+
morena.br
|
478
539
|
mp.br
|
479
540
|
mus.br
|
541
|
+
natal.br
|
480
542
|
net.br
|
543
|
+
niteroi.br
|
481
544
|
*.nom.br
|
482
545
|
not.br
|
483
546
|
ntr.br
|
484
547
|
odo.br
|
485
548
|
org.br
|
549
|
+
osasco.br
|
550
|
+
palmas.br
|
486
551
|
poa.br
|
487
552
|
ppg.br
|
488
553
|
pro.br
|
489
554
|
psc.br
|
490
555
|
psi.br
|
556
|
+
pvh.br
|
491
557
|
qsl.br
|
492
558
|
radio.br
|
493
559
|
rec.br
|
494
560
|
recife.br
|
561
|
+
ribeirao.br
|
562
|
+
rio.br
|
563
|
+
riobranco.br
|
564
|
+
riopreto.br
|
565
|
+
salvador.br
|
566
|
+
sampa.br
|
567
|
+
santamaria.br
|
568
|
+
santoandre.br
|
569
|
+
saobernardo.br
|
570
|
+
saogonca.br
|
571
|
+
sjc.br
|
495
572
|
slg.br
|
573
|
+
slz.br
|
574
|
+
sorocaba.br
|
496
575
|
srv.br
|
497
576
|
taxi.br
|
498
577
|
teo.br
|
578
|
+
the.br
|
499
579
|
tmp.br
|
500
580
|
trd.br
|
501
581
|
tur.br
|
502
582
|
tv.br
|
583
|
+
udi.br
|
503
584
|
vet.br
|
504
585
|
vix.br
|
505
586
|
vlog.br
|
@@ -3456,8 +3537,17 @@ uenohara.yamanashi.jp
|
|
3456
3537
|
yamanakako.yamanashi.jp
|
3457
3538
|
yamanashi.yamanashi.jp
|
3458
3539
|
|
3459
|
-
// ke : http://www.kenic.or.ke/index.php
|
3460
|
-
|
3540
|
+
// ke : http://www.kenic.or.ke/index.php/en/ke-domains/ke-domains
|
3541
|
+
ke
|
3542
|
+
ac.ke
|
3543
|
+
co.ke
|
3544
|
+
go.ke
|
3545
|
+
info.ke
|
3546
|
+
me.ke
|
3547
|
+
mobi.ke
|
3548
|
+
ne.ke
|
3549
|
+
or.ke
|
3550
|
+
sc.ke
|
3461
3551
|
|
3462
3552
|
// kg : http://www.domain.kg/dmn_n.html
|
3463
3553
|
kg
|
@@ -6472,6 +6562,17 @@ lib.wy.us
|
|
6472
6562
|
pvt.k12.ma.us
|
6473
6563
|
chtr.k12.ma.us
|
6474
6564
|
paroch.k12.ma.us
|
6565
|
+
// Merit Network, Inc. maintains the registry for =~ /(k12|cc|lib).mi.us/ and the following
|
6566
|
+
// see also: http://domreg.merit.edu
|
6567
|
+
// see also: whois -h whois.domreg.merit.edu help
|
6568
|
+
ann-arbor.mi.us
|
6569
|
+
cog.mi.us
|
6570
|
+
dst.mi.us
|
6571
|
+
eaton.mi.us
|
6572
|
+
gen.mi.us
|
6573
|
+
mus.mi.us
|
6574
|
+
tec.mi.us
|
6575
|
+
washtenaw.mi.us
|
6475
6576
|
|
6476
6577
|
// uy : http://www.nic.org.uy/
|
6477
6578
|
uy
|
@@ -7473,9 +7574,6 @@ cheap
|
|
7473
7574
|
// chintai : 2015-06-11 CHINTAI Corporation
|
7474
7575
|
chintai
|
7475
7576
|
|
7476
|
-
// chloe : 2014-10-16 Richemont DNS Inc.
|
7477
|
-
chloe
|
7478
|
-
|
7479
7577
|
// christmas : 2013-11-21 Uniregistry, Corp.
|
7480
7578
|
christmas
|
7481
7579
|
|
@@ -8346,9 +8444,6 @@ how
|
|
8346
8444
|
// hsbc : 2014-10-24 HSBC Holdings PLC
|
8347
8445
|
hsbc
|
8348
8446
|
|
8349
|
-
// htc : 2015-04-02 HTC corporation
|
8350
|
-
htc
|
8351
|
-
|
8352
8447
|
// hughes : 2015-07-30 Hughes Satellite Systems Corporation
|
8353
8448
|
hughes
|
8354
8449
|
|
@@ -8802,12 +8897,6 @@ mattel
|
|
8802
8897
|
// mba : 2015-04-02 Lone Hollow, LLC
|
8803
8898
|
mba
|
8804
8899
|
|
8805
|
-
// mcd : 2015-07-30 McDonald’s Corporation
|
8806
|
-
mcd
|
8807
|
-
|
8808
|
-
// mcdonalds : 2015-07-30 McDonald’s Corporation
|
8809
|
-
mcdonalds
|
8810
|
-
|
8811
8900
|
// mckinsey : 2015-07-31 McKinsey Holdings, Inc.
|
8812
8901
|
mckinsey
|
8813
8902
|
|
@@ -8898,9 +8987,6 @@ money
|
|
8898
8987
|
// monster : 2015-09-11 Monster Worldwide, Inc.
|
8899
8988
|
monster
|
8900
8989
|
|
8901
|
-
// montblanc : 2014-06-23 Richemont DNS Inc.
|
8902
|
-
montblanc
|
8903
|
-
|
8904
8990
|
// mopar : 2015-07-30 FCA US LLC.
|
8905
8991
|
mopar
|
8906
8992
|
|
@@ -9132,9 +9218,6 @@ ovh
|
|
9132
9218
|
// page : 2014-12-04 Charleston Road Registry Inc.
|
9133
9219
|
page
|
9134
9220
|
|
9135
|
-
// pamperedchef : 2015-02-05 The Pampered Chef, Ltd.
|
9136
|
-
pamperedchef
|
9137
|
-
|
9138
9221
|
// panasonic : 2015-07-30 Panasonic Corporation
|
9139
9222
|
panasonic
|
9140
9223
|
|
@@ -10556,6 +10639,12 @@ cc.ua
|
|
10556
10639
|
inf.ua
|
10557
10640
|
ltd.ua
|
10558
10641
|
|
10642
|
+
// AgileBits Inc : https://agilebits.com
|
10643
|
+
// Submitted by Roustem Karimov <roustem@agilebits.com>
|
10644
|
+
1password.ca
|
10645
|
+
1password.com
|
10646
|
+
1password.eu
|
10647
|
+
|
10559
10648
|
// Agnat sp. z o.o. : https://domena.pl
|
10560
10649
|
// Submitted by Przemyslaw Plewa <it-admin@domena.pl>
|
10561
10650
|
beep.pl
|
@@ -10567,7 +10656,7 @@ beep.pl
|
|
10567
10656
|
|
10568
10657
|
// alwaysdata : https://www.alwaysdata.com
|
10569
10658
|
// Submitted by Cyril <admin@alwaysdata.com>
|
10570
|
-
|
10659
|
+
alwaysdata.net
|
10571
10660
|
|
10572
10661
|
// Amazon CloudFront : https://aws.amazon.com/cloudfront/
|
10573
10662
|
// Submitted by Donavan Miller <donavanm@amazon.com>
|
@@ -10582,8 +10671,24 @@ us-east-1.amazonaws.com
|
|
10582
10671
|
|
10583
10672
|
// Amazon Elastic Beanstalk : https://aws.amazon.com/elasticbeanstalk/
|
10584
10673
|
// Submitted by Luke Wells <psl-maintainers@amazon.com>
|
10585
|
-
|
10586
|
-
|
10674
|
+
cn-north-1.eb.amazonaws.com.cn
|
10675
|
+
elasticbeanstalk.com
|
10676
|
+
ap-northeast-1.elasticbeanstalk.com
|
10677
|
+
ap-northeast-2.elasticbeanstalk.com
|
10678
|
+
ap-south-1.elasticbeanstalk.com
|
10679
|
+
ap-southeast-1.elasticbeanstalk.com
|
10680
|
+
ap-southeast-2.elasticbeanstalk.com
|
10681
|
+
ca-central-1.elasticbeanstalk.com
|
10682
|
+
eu-central-1.elasticbeanstalk.com
|
10683
|
+
eu-west-1.elasticbeanstalk.com
|
10684
|
+
eu-west-2.elasticbeanstalk.com
|
10685
|
+
eu-west-3.elasticbeanstalk.com
|
10686
|
+
sa-east-1.elasticbeanstalk.com
|
10687
|
+
us-east-1.elasticbeanstalk.com
|
10688
|
+
us-east-2.elasticbeanstalk.com
|
10689
|
+
us-gov-west-1.elasticbeanstalk.com
|
10690
|
+
us-west-1.elasticbeanstalk.com
|
10691
|
+
us-west-2.elasticbeanstalk.com
|
10587
10692
|
|
10588
10693
|
// Amazon Elastic Load Balancing : https://aws.amazon.com/elasticloadbalancing/
|
10589
10694
|
// Submitted by Luke Wells <psl-maintainers@amazon.com>
|
@@ -10602,6 +10707,7 @@ s3-ca-central-1.amazonaws.com
|
|
10602
10707
|
s3-eu-central-1.amazonaws.com
|
10603
10708
|
s3-eu-west-1.amazonaws.com
|
10604
10709
|
s3-eu-west-2.amazonaws.com
|
10710
|
+
s3-eu-west-3.amazonaws.com
|
10605
10711
|
s3-external-1.amazonaws.com
|
10606
10712
|
s3-fips-us-gov-west-1.amazonaws.com
|
10607
10713
|
s3-sa-east-1.amazonaws.com
|
@@ -10615,6 +10721,7 @@ s3.cn-north-1.amazonaws.com.cn
|
|
10615
10721
|
s3.ca-central-1.amazonaws.com
|
10616
10722
|
s3.eu-central-1.amazonaws.com
|
10617
10723
|
s3.eu-west-2.amazonaws.com
|
10724
|
+
s3.eu-west-3.amazonaws.com
|
10618
10725
|
s3.us-east-2.amazonaws.com
|
10619
10726
|
s3.dualstack.ap-northeast-1.amazonaws.com
|
10620
10727
|
s3.dualstack.ap-northeast-2.amazonaws.com
|
@@ -10625,6 +10732,7 @@ s3.dualstack.ca-central-1.amazonaws.com
|
|
10625
10732
|
s3.dualstack.eu-central-1.amazonaws.com
|
10626
10733
|
s3.dualstack.eu-west-1.amazonaws.com
|
10627
10734
|
s3.dualstack.eu-west-2.amazonaws.com
|
10735
|
+
s3.dualstack.eu-west-3.amazonaws.com
|
10628
10736
|
s3.dualstack.sa-east-1.amazonaws.com
|
10629
10737
|
s3.dualstack.us-east-1.amazonaws.com
|
10630
10738
|
s3.dualstack.us-east-2.amazonaws.com
|
@@ -10641,6 +10749,7 @@ s3-website.ap-south-1.amazonaws.com
|
|
10641
10749
|
s3-website.ca-central-1.amazonaws.com
|
10642
10750
|
s3-website.eu-central-1.amazonaws.com
|
10643
10751
|
s3-website.eu-west-2.amazonaws.com
|
10752
|
+
s3-website.eu-west-3.amazonaws.com
|
10644
10753
|
s3-website.us-east-2.amazonaws.com
|
10645
10754
|
|
10646
10755
|
// Amune : https://amune.org/
|
@@ -10829,6 +10938,11 @@ cloudns.us
|
|
10829
10938
|
co.nl
|
10830
10939
|
co.no
|
10831
10940
|
|
10941
|
+
// Combell.com : https://www.combell.com
|
10942
|
+
// Submitted by Thomas Wouters <thomas.wouters@combellgroup.com>
|
10943
|
+
webhosting.be
|
10944
|
+
hosting-cluster.nl
|
10945
|
+
|
10832
10946
|
// COSIMO GmbH : http://www.cosimo.de
|
10833
10947
|
// Submitted by Rene Marticke <rmarticke@cosimo.de>
|
10834
10948
|
dyn.cosidns.de
|
@@ -10871,6 +10985,10 @@ firm.dk
|
|
10871
10985
|
reg.dk
|
10872
10986
|
store.dk
|
10873
10987
|
|
10988
|
+
// Debian : https://www.debian.org/
|
10989
|
+
// Submitted by Peter Palfrader / Debian Sysadmin Team <dsa-publicsuffixlist@debian.org>
|
10990
|
+
debian.net
|
10991
|
+
|
10874
10992
|
// deSEC : https://desec.io/
|
10875
10993
|
// Submitted by Peter Thomassen <peter@desec.io>
|
10876
10994
|
dedyn.io
|
@@ -11398,6 +11516,10 @@ vladikavkaz.su
|
|
11398
11516
|
vladimir.su
|
11399
11517
|
vologda.su
|
11400
11518
|
|
11519
|
+
// Fancy Bits, LLC : http://getchannels.com
|
11520
|
+
// Submitted by Aman Gupta <aman@getchannels.com>
|
11521
|
+
channelsdvr.net
|
11522
|
+
|
11401
11523
|
// Fastly Inc. : http://www.fastly.com/
|
11402
11524
|
// Submitted by Fastly Security <security@fastly.com>
|
11403
11525
|
fastlylb.net
|
@@ -11419,6 +11541,8 @@ fhapp.xyz
|
|
11419
11541
|
fedorainfracloud.org
|
11420
11542
|
fedorapeople.org
|
11421
11543
|
cloud.fedoraproject.org
|
11544
|
+
app.os.fedoraproject.org
|
11545
|
+
app.os.stg.fedoraproject.org
|
11422
11546
|
|
11423
11547
|
// Filegear Inc. : https://www.filegear.com
|
11424
11548
|
// Submitted by Jason Zhu <jason@owtware.com>
|
@@ -11442,12 +11566,9 @@ fbxos.fr
|
|
11442
11566
|
freebox-os.fr
|
11443
11567
|
freeboxos.fr
|
11444
11568
|
|
11445
|
-
// Fusion Intranet : https://www.fusion-intranet.com
|
11446
|
-
// Submitted by Matthias Burtscher <matthias.burtscher@fusonic.net>
|
11447
|
-
myfusion.cloud
|
11448
|
-
|
11449
11569
|
// Futureweb OG : http://www.futureweb.at
|
11450
11570
|
// Submitted by Andreas Schnederle-Wagner <schnederle@futureweb.at>
|
11571
|
+
*.futurecms.at
|
11451
11572
|
futurehosting.at
|
11452
11573
|
futuremailing.at
|
11453
11574
|
*.ex.ortsinfo.at
|
@@ -11630,6 +11751,10 @@ se.leg.br
|
|
11630
11751
|
sp.leg.br
|
11631
11752
|
to.leg.br
|
11632
11753
|
|
11754
|
+
// intermetrics GmbH : https://pixolino.com/
|
11755
|
+
// Submitted by Wolfgang Schwarz <admin@intermetrics.de>
|
11756
|
+
pixolino.com
|
11757
|
+
|
11633
11758
|
// IPiFony Systems, Inc. : https://www.ipifony.com/
|
11634
11759
|
// Submitted by Matthew Hardeman <mhardeman@ipifony.com>
|
11635
11760
|
ipifony.net
|
@@ -11726,6 +11851,10 @@ netlify.com
|
|
11726
11851
|
// Submitted by Alan Shreve <alan@ngrok.com>
|
11727
11852
|
ngrok.io
|
11728
11853
|
|
11854
|
+
// Nimbus Hosting Ltd. : https://www.nimbushosting.co.uk/
|
11855
|
+
// Submitted by Nicholas Ford <nick@nimbushosting.co.uk>
|
11856
|
+
nh-serv.co.uk
|
11857
|
+
|
11729
11858
|
// NFSN, Inc. : https://www.NearlyFreeSpeech.NET/
|
11730
11859
|
// Submitted by Jeff Wheelhouse <support@nearlyfreespeech.net>
|
11731
11860
|
nfshost.com
|
@@ -11953,6 +12082,7 @@ protonet.io
|
|
11953
12082
|
// Publication Presse Communication SARL : https://ppcom.fr
|
11954
12083
|
// Submitted by Yaacov Akiba Slama <admin@chirurgiens-dentistes-en-france.fr>
|
11955
12084
|
chirurgiens-dentistes-en-france.fr
|
12085
|
+
byen.site
|
11956
12086
|
|
11957
12087
|
// QA2
|
11958
12088
|
// Submitted by Daniel Dent (https://www.danieldent.com/)
|
@@ -11982,6 +12112,11 @@ rackmaze.net
|
|
11982
12112
|
// Submitted by Tim Kramer <tkramer@rhcloud.com>
|
11983
12113
|
rhcloud.com
|
11984
12114
|
|
12115
|
+
// Resin.io : https://resin.io
|
12116
|
+
// Submitted by Tim Perry <tim@resin.io>
|
12117
|
+
resindevice.io
|
12118
|
+
devices.resinstaging.io
|
12119
|
+
|
11985
12120
|
// RethinkDB : https://www.rethinkdb.com/
|
11986
12121
|
// Submitted by Chris Kastorff <info@rethinkdb.com>
|
11987
12122
|
hzc.io
|
@@ -12001,6 +12136,10 @@ sandcats.io
|
|
12001
12136
|
logoip.de
|
12002
12137
|
logoip.com
|
12003
12138
|
|
12139
|
+
// Scry Security : http://www.scrysec.com
|
12140
|
+
// Submitted by Shante Adam <shante@skyhat.io>
|
12141
|
+
scrysec.com
|
12142
|
+
|
12004
12143
|
// Securepoint GmbH : https://www.securepoint.de
|
12005
12144
|
// Submitted by Erik Anders <erik.anders@securepoint.de>
|
12006
12145
|
firewall-gateway.com
|
@@ -12016,6 +12155,7 @@ spdns.org
|
|
12016
12155
|
|
12017
12156
|
// SensioLabs, SAS : https://sensiolabs.com/
|
12018
12157
|
// Submitted by Fabien Potencier <fabien.potencier@sensiolabs.com>
|
12158
|
+
*.s5y.io
|
12019
12159
|
*.sensiosite.cloud
|
12020
12160
|
|
12021
12161
|
// Service Online LLC : http://drs.ua/
|
@@ -12180,10 +12320,15 @@ lib.de.us
|
|
12180
12320
|
// Submitted by Simon Kissel <hostmaster@viprinet.com>
|
12181
12321
|
router.management
|
12182
12322
|
|
12323
|
+
// Virtual-Info : https://www.virtual-info.info/
|
12324
|
+
// Submitted by Adnan RIHAN <hostmaster@v-info.info>
|
12325
|
+
v-info.info
|
12326
|
+
|
12183
12327
|
// WeDeploy by Liferay, Inc. : https://www.wedeploy.com
|
12184
12328
|
// Submitted by Henrique Vicente <security@wedeploy.com>
|
12185
12329
|
wedeploy.io
|
12186
12330
|
wedeploy.me
|
12331
|
+
wedeploy.sh
|
12187
12332
|
|
12188
12333
|
// Western Digital Technologies, Inc : https://www.wdc.com
|
12189
12334
|
// Submitted by Jung Jin <jungseok.jin@wdc.com>
|
data/lib/public_suffix.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# Domain name parser based on the Public Suffix List.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2009-
|
5
|
+
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
|
6
6
|
|
7
7
|
require_relative "public_suffix/domain"
|
8
8
|
require_relative "public_suffix/version"
|
data/lib/public_suffix/domain.rb
CHANGED
data/lib/public_suffix/errors.rb
CHANGED
data/lib/public_suffix/list.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# Domain name parser based on the Public Suffix List.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2009-
|
5
|
+
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
|
6
6
|
|
7
7
|
module PublicSuffix
|
8
8
|
|
@@ -51,9 +51,7 @@ module PublicSuffix
|
|
51
51
|
|
52
52
|
# Sets the default rule list to +value+.
|
53
53
|
#
|
54
|
-
# @param [PublicSuffix::List]
|
55
|
-
# The new rule list.
|
56
|
-
#
|
54
|
+
# @param value [PublicSuffix::List] the new list
|
57
55
|
# @return [PublicSuffix::List]
|
58
56
|
def self.default=(value)
|
59
57
|
@default = value
|
@@ -63,9 +61,9 @@ module PublicSuffix
|
|
63
61
|
#
|
64
62
|
# See http://publicsuffix.org/format/ for more details about input format.
|
65
63
|
#
|
66
|
-
# @param string [#each_line]
|
67
|
-
# @param private_domains [Boolean] whether to ignore the private domains section
|
68
|
-
# @return [
|
64
|
+
# @param string [#each_line] the list to parse
|
65
|
+
# @param private_domains [Boolean] whether to ignore the private domains section
|
66
|
+
# @return [PublicSuffix::List]
|
69
67
|
def self.parse(input, private_domains: true)
|
70
68
|
comment_token = "//".freeze
|
71
69
|
private_token = "===BEGIN PRIVATE DOMAINS===".freeze
|
data/lib/public_suffix/rule.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# Domain name parser based on the Public Suffix List.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2009-
|
5
|
+
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
|
6
6
|
|
7
7
|
module PublicSuffix
|
8
8
|
|
@@ -165,7 +165,7 @@ module PublicSuffix
|
|
165
165
|
# we need to properly walk the input and skip parts according
|
166
166
|
# to wildcard component.
|
167
167
|
diff = name.chomp(value)
|
168
|
-
diff.empty? || diff
|
168
|
+
diff.empty? || diff.end_with?(DOT)
|
169
169
|
end
|
170
170
|
|
171
171
|
# @abstract
|
@@ -2,9 +2,9 @@
|
|
2
2
|
#
|
3
3
|
# Domain name parser based on the Public Suffix List.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2009-
|
5
|
+
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
|
6
6
|
|
7
7
|
module PublicSuffix
|
8
8
|
# The current library version.
|
9
|
-
VERSION = "3.0.
|
9
|
+
VERSION = "3.0.2".freeze
|
10
10
|
end
|
data/test/acceptance_test.rb
CHANGED
@@ -32,7 +32,7 @@ class AcceptanceTest < Minitest::Test
|
|
32
32
|
|
33
33
|
|
34
34
|
INVALID_CASES = [
|
35
|
-
["nic.
|
35
|
+
["nic.bd", PublicSuffix::DomainNotAllowed],
|
36
36
|
[nil, PublicSuffix::DomainInvalid],
|
37
37
|
["", PublicSuffix::DomainInvalid],
|
38
38
|
[" ", PublicSuffix::DomainInvalid],
|
data/test/psl_test.rb
CHANGED
data/test/unit/list_test.rb
CHANGED
@@ -28,10 +28,10 @@ class PublicSuffix::ListTest < Minitest::Test
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def test_each_without_block
|
31
|
-
list = PublicSuffix::List.parse(<<
|
31
|
+
list = PublicSuffix::List.parse(<<LIST)
|
32
32
|
alpha
|
33
33
|
beta
|
34
|
-
|
34
|
+
LIST
|
35
35
|
|
36
36
|
assert_kind_of Enumerator, list.each
|
37
37
|
assert_equal 2, list.each.count
|
@@ -39,10 +39,10 @@ EOS
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def test_each_with_block
|
42
|
-
list = PublicSuffix::List.parse(<<
|
42
|
+
list = PublicSuffix::List.parse(<<LIST)
|
43
43
|
alpha
|
44
44
|
beta
|
45
|
-
|
45
|
+
LIST
|
46
46
|
|
47
47
|
entries = []
|
48
48
|
list.each { |r| entries << r }
|
@@ -90,7 +90,7 @@ EOS
|
|
90
90
|
|
91
91
|
|
92
92
|
def test_find
|
93
|
-
list = PublicSuffix::List.parse(<<
|
93
|
+
list = PublicSuffix::List.parse(<<LIST)
|
94
94
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
95
95
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
96
96
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
@@ -116,7 +116,7 @@ io
|
|
116
116
|
blogspot.com
|
117
117
|
|
118
118
|
// ===END PRIVATE DOMAINS===
|
119
|
-
|
119
|
+
LIST
|
120
120
|
|
121
121
|
# match IANA
|
122
122
|
assert_equal PublicSuffix::Rule.factory("com"), list.find("example.com")
|
@@ -186,7 +186,7 @@ EOS
|
|
186
186
|
end
|
187
187
|
|
188
188
|
def test_self_parse
|
189
|
-
list = PublicSuffix::List.parse(<<
|
189
|
+
list = PublicSuffix::List.parse(<<LIST)
|
190
190
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
191
191
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
192
192
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
@@ -207,7 +207,7 @@ com
|
|
207
207
|
blogspot.com
|
208
208
|
|
209
209
|
// ===END PRIVATE DOMAINS===
|
210
|
-
|
210
|
+
LIST
|
211
211
|
|
212
212
|
assert_instance_of PublicSuffix::List, list
|
213
213
|
assert_equal 4, list.size
|
@@ -224,7 +224,7 @@ EOS
|
|
224
224
|
private
|
225
225
|
|
226
226
|
def list
|
227
|
-
@_list ||= PublicSuffix::List.parse(<<
|
227
|
+
@_list ||= PublicSuffix::List.parse(<<LIST)
|
228
228
|
// com : http://en.wikipedia.org/wiki/.com
|
229
229
|
com
|
230
230
|
|
@@ -233,7 +233,7 @@ com
|
|
233
233
|
*.sch.uk
|
234
234
|
!bl.uk
|
235
235
|
!british-library.uk
|
236
|
-
|
236
|
+
LIST
|
237
237
|
end
|
238
238
|
|
239
239
|
end
|
@@ -87,8 +87,8 @@ class PublicSuffixTest < Minitest::Test
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def test_self_parse_with_unallowed_domain
|
90
|
-
error = assert_raises(PublicSuffix::DomainNotAllowed) { PublicSuffix.parse("example.
|
91
|
-
assert_match(/example\.
|
90
|
+
error = assert_raises(PublicSuffix::DomainNotAllowed) { PublicSuffix.parse("example.bd") }
|
91
|
+
assert_match(/example\.bd/, error.message)
|
92
92
|
end
|
93
93
|
|
94
94
|
def test_self_parse_with_uri
|
@@ -128,7 +128,7 @@ class PublicSuffixTest < Minitest::Test
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def test_self_domain_with_unallowed_name
|
131
|
-
assert_nil PublicSuffix.domain("example.
|
131
|
+
assert_nil PublicSuffix.domain("example.bd")
|
132
132
|
end
|
133
133
|
|
134
134
|
def test_self_domain_with_blank_sld
|
@@ -156,7 +156,7 @@ class PublicSuffixTest < Minitest::Test
|
|
156
156
|
nil,
|
157
157
|
"",
|
158
158
|
" ",
|
159
|
-
].each do |input
|
159
|
+
].each do |input|
|
160
160
|
error = PublicSuffix.normalize(input)
|
161
161
|
assert_instance_of PublicSuffix::DomainInvalid, error
|
162
162
|
assert_equal "Name is blank", error.message
|
@@ -166,7 +166,7 @@ class PublicSuffixTest < Minitest::Test
|
|
166
166
|
def test_normalize_scheme
|
167
167
|
[
|
168
168
|
"https://google.com",
|
169
|
-
].each do |input
|
169
|
+
].each do |input|
|
170
170
|
error = PublicSuffix.normalize(input)
|
171
171
|
assert_instance_of PublicSuffix::DomainInvalid, error
|
172
172
|
assert_match(/scheme/, error.message)
|
@@ -176,7 +176,7 @@ class PublicSuffixTest < Minitest::Test
|
|
176
176
|
def test_normalize_leading_dot
|
177
177
|
[
|
178
178
|
".google.com",
|
179
|
-
].each do |input
|
179
|
+
].each do |input|
|
180
180
|
error = PublicSuffix.normalize(input)
|
181
181
|
assert_instance_of PublicSuffix::DomainInvalid, error
|
182
182
|
assert_match "Name starts with a dot", error.message
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: public_suffix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.7.3
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Domain name parser based on the Public Suffix List.
|