public_suffix 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/data/definitions.txt +47 -11
- data/lib/public_suffix/list.rb +1 -1
- data/lib/public_suffix/version.rb +1 -1
- data/public_suffix.gemspec +4 -4
- data/test/unit/list_test.rb +7 -0
- 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: c5e75fe3c5d642adeeae60366174f25b99844b90
|
4
|
+
data.tar.gz: 1dc35267a417747ab37e1997434d5e219839a391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05477a5b192b451131723a039815127c0c12cc89b2c911f3f162e1fc20a2a596cf7639d46f521d1a17fb7f1db7a9ad29d2181809e952a581d68f530369cdff54
|
7
|
+
data.tar.gz: 16bf8bf394f1efca171596991c4d3039a09b658932dc7c45c00277b0fb482a917b203a53f640d83185497f2bb6e535554f69333be777d36807e1cd7699e5d98c
|
data/CHANGELOG.md
CHANGED
data/data/definitions.txt
CHANGED
@@ -155,13 +155,6 @@ org.al
|
|
155
155
|
// am : http://en.wikipedia.org/wiki/.am
|
156
156
|
am
|
157
157
|
|
158
|
-
// an : http://www.una.an/an_domreg/default.asp
|
159
|
-
an
|
160
|
-
com.an
|
161
|
-
net.an
|
162
|
-
org.an
|
163
|
-
edu.an
|
164
|
-
|
165
158
|
// ao : http://en.wikipedia.org/wiki/.ao
|
166
159
|
// http://www.dns.ao/REGISTR.DOC
|
167
160
|
ao
|
@@ -4437,8 +4430,21 @@ gov.ng
|
|
4437
4430
|
mil.ng
|
4438
4431
|
mobi.ng
|
4439
4432
|
|
4440
|
-
// ni : http://www.nic.ni/
|
4441
|
-
|
4433
|
+
// ni : http://www.nic.ni/
|
4434
|
+
com.ni
|
4435
|
+
gob.ni
|
4436
|
+
edu.ni
|
4437
|
+
org.ni
|
4438
|
+
nom.ni
|
4439
|
+
net.ni
|
4440
|
+
mil.ni
|
4441
|
+
co.ni
|
4442
|
+
biz.ni
|
4443
|
+
web.ni
|
4444
|
+
int.ni
|
4445
|
+
ac.ni
|
4446
|
+
in.ni
|
4447
|
+
info.ni
|
4442
4448
|
|
4443
4449
|
// nl : http://en.wikipedia.org/wiki/.nl
|
4444
4450
|
// https://www.sidn.nl/
|
@@ -5783,7 +5789,6 @@ kms.ru
|
|
5783
5789
|
k-uralsk.ru
|
5784
5790
|
kustanai.ru
|
5785
5791
|
kuzbass.ru
|
5786
|
-
magnitka.ru
|
5787
5792
|
mytis.ru
|
5788
5793
|
nakhodka.ru
|
5789
5794
|
nkz.ru
|
@@ -6927,7 +6932,7 @@ web.za
|
|
6927
6932
|
*.zw
|
6928
6933
|
|
6929
6934
|
|
6930
|
-
// List of new gTLDs imported from https://newgtlds.icann.org/newgtlds.csv on 2015-
|
6935
|
+
// List of new gTLDs imported from https://newgtlds.icann.org/newgtlds.csv on 2015-11-12T22:43:48Z
|
6931
6936
|
|
6932
6937
|
// aaa : 2015-02-26 American Automobile Association, Inc.
|
6933
6938
|
aaa
|
@@ -7196,6 +7201,9 @@ barefoot
|
|
7196
7201
|
// bargains : 2013-11-14 Half Hallow, LLC
|
7197
7202
|
bargains
|
7198
7203
|
|
7204
|
+
// baseball : 2015-10-29 MLB Advanced Media DH, LLC
|
7205
|
+
baseball
|
7206
|
+
|
7199
7207
|
// basketball : 2015-08-20 Fédération Internationale de Basketball (FIBA)
|
7200
7208
|
basketball
|
7201
7209
|
|
@@ -7454,6 +7462,9 @@ casino
|
|
7454
7462
|
// catering : 2013-12-05 New Falls. LLC
|
7455
7463
|
catering
|
7456
7464
|
|
7465
|
+
// catholic : 2015-10-21 Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
|
7466
|
+
catholic
|
7467
|
+
|
7457
7468
|
// cba : 2014-06-26 COMMONWEALTH BANK OF AUSTRALIA
|
7458
7469
|
cba
|
7459
7470
|
|
@@ -7772,6 +7783,9 @@ discover
|
|
7772
7783
|
// dish : 2015-07-30 Dish DBS Corporation
|
7773
7784
|
dish
|
7774
7785
|
|
7786
|
+
// diy : 2015-11-05 Lifestyle Domain Holdings, Inc.
|
7787
|
+
diy
|
7788
|
+
|
7775
7789
|
// dnp : 2013-12-13 Dai Nippon Printing Co., Ltd.
|
7776
7790
|
dnp
|
7777
7791
|
|
@@ -9038,6 +9052,9 @@ ninja
|
|
9038
9052
|
// nissan : 2014-03-27 NISSAN MOTOR CO., LTD.
|
9039
9053
|
nissan
|
9040
9054
|
|
9055
|
+
// nissay : 2015-10-29 Nippon Life Insurance Company
|
9056
|
+
nissay
|
9057
|
+
|
9041
9058
|
// nokia : 2015-01-08 Nokia Corporation
|
9042
9059
|
nokia
|
9043
9060
|
|
@@ -9314,6 +9331,9 @@ prudential
|
|
9314
9331
|
// pub : 2013-12-12 United TLD Holdco Ltd.
|
9315
9332
|
pub
|
9316
9333
|
|
9334
|
+
// pwc : 2015-10-29 PricewaterhouseCoopers LLP
|
9335
|
+
pwc
|
9336
|
+
|
9317
9337
|
// qpon : 2013-11-14 dotCOOL, Inc.
|
9318
9338
|
qpon
|
9319
9339
|
|
@@ -9977,6 +9997,9 @@ ubs
|
|
9977
9997
|
// uconnect : 2015-07-30 FCA US LLC.
|
9978
9998
|
uconnect
|
9979
9999
|
|
10000
|
+
// unicom : 2015-10-15 China United Network Communications Corporation Limited
|
10001
|
+
unicom
|
10002
|
+
|
9980
10003
|
// university : 2014-03-06 Little Station, LLC
|
9981
10004
|
university
|
9982
10005
|
|
@@ -10253,6 +10276,9 @@ xin
|
|
10253
10276
|
// xn--80adxhks : 2013-12-19 Foundation for Assistance for Internet Technologies and Infrastructure Development (FAITID)
|
10254
10277
|
москва
|
10255
10278
|
|
10279
|
+
// xn--80aqecdr1a : 2015-10-21 Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
|
10280
|
+
католик
|
10281
|
+
|
10256
10282
|
// xn--80asehdb : 2013-07-14 CORE Association
|
10257
10283
|
онлайн
|
10258
10284
|
|
@@ -10388,6 +10414,9 @@ xin
|
|
10388
10414
|
// xn--mgbca7dzdo : 2015-07-30 Abu Dhabi Systems and Information Centre
|
10389
10415
|
ابوظبي
|
10390
10416
|
|
10417
|
+
// xn--mgbi4ecexp : 2015-10-21 Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
|
10418
|
+
كاثوليك
|
10419
|
+
|
10391
10420
|
// xn--mgbt3dhd : 2014-09-04 Asia Green IT System Bilgisayar San. ve Tic. Ltd. Sti.
|
10392
10421
|
همراه
|
10393
10422
|
|
@@ -10442,6 +10471,9 @@ xin
|
|
10442
10471
|
// xn--tckwe : 2015-01-15 VeriSign Sarl
|
10443
10472
|
コム
|
10444
10473
|
|
10474
|
+
// xn--tiq49xqyj : 2015-10-21 Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
|
10475
|
+
天主教
|
10476
|
+
|
10445
10477
|
// xn--unup4y : 2013-07-14 Spring Fields, LLC
|
10446
10478
|
游戏
|
10447
10479
|
|
@@ -11158,6 +11190,10 @@ bmoattachments.org
|
|
11158
11190
|
// Submitted by Trung Tran <Trung.Tran@neustar.biz> 2015-04-23
|
11159
11191
|
4u.com
|
11160
11192
|
|
11193
|
+
// ngrok : https://ngrok.com/
|
11194
|
+
// Submitted by Alan Shreve <alan@ngrok.com> 2015-11-10
|
11195
|
+
ngrok.io
|
11196
|
+
|
11161
11197
|
// NFSN, Inc. : https://www.NearlyFreeSpeech.NET/
|
11162
11198
|
// Submitted by Jeff Wheelhouse <support@nearlyfreespeech.net> 2014-02-02
|
11163
11199
|
nfshost.com
|
data/lib/public_suffix/list.rb
CHANGED
@@ -156,7 +156,6 @@ module PublicSuffix
|
|
156
156
|
#
|
157
157
|
def initialize(&block)
|
158
158
|
@rules = []
|
159
|
-
@indexes = {}
|
160
159
|
yield(self) if block_given?
|
161
160
|
create_index!
|
162
161
|
end
|
@@ -169,6 +168,7 @@ module PublicSuffix
|
|
169
168
|
# where Rule#labels.first is 'us' @indexes['us'] #=> [5,4], that way in
|
170
169
|
# select we can avoid mapping every single rule against the candidate domain.
|
171
170
|
def create_index!
|
171
|
+
@indexes = {}
|
172
172
|
@rules.map { |l| l.labels.first }.each_with_index do |elm, inx|
|
173
173
|
if !@indexes.has_key?(elm)
|
174
174
|
@indexes[elm] = [inx]
|
data/public_suffix.gemspec
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: public_suffix 1.5.
|
2
|
+
# stub: public_suffix 1.5.2 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "public_suffix"
|
6
|
-
s.version = "1.5.
|
6
|
+
s.version = "1.5.2"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
10
10
|
s.authors = ["Simone Carletti"]
|
11
|
-
s.date = "2015-
|
11
|
+
s.date = "2015-10-27"
|
12
12
|
s.description = "PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains."
|
13
13
|
s.email = "weppos@weppos.net"
|
14
14
|
s.files = [".gemtest", ".gitignore", ".ruby-gemset", ".travis.yml", ".yardopts", "CHANGELOG.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "data/definitions.txt", "lib/public_suffix.rb", "lib/public_suffix/domain.rb", "lib/public_suffix/errors.rb", "lib/public_suffix/list.rb", "lib/public_suffix/rule.rb", "lib/public_suffix/version.rb", "public_suffix.gemspec", "test/acceptance_test.rb", "test/test_helper.rb", "test/unit/domain_test.rb", "test/unit/errors_test.rb", "test/unit/list_test.rb", "test/unit/public_suffix_test.rb", "test/unit/rule_test.rb"]
|
15
15
|
s.homepage = "http://simonecarletti.com/code/publicsuffix"
|
16
16
|
s.licenses = ["MIT"]
|
17
17
|
s.required_ruby_version = Gem::Requirement.new(">= 2.0")
|
18
|
-
s.rubygems_version = "2.4.
|
18
|
+
s.rubygems_version = "2.4.7"
|
19
19
|
s.summary = "Domain name parser based on the Public Suffix List."
|
20
20
|
s.test_files = ["test/acceptance_test.rb", "test/test_helper.rb", "test/unit/domain_test.rb", "test/unit/errors_test.rb", "test/unit/list_test.rb", "test/unit/public_suffix_test.rb", "test/unit/rule_test.rb"]
|
21
21
|
|
data/test/unit/list_test.rb
CHANGED
@@ -54,6 +54,13 @@ class PublicSuffix::ListTest < Minitest::Unit::TestCase
|
|
54
54
|
assert_equal PublicSuffix::Rule.factory("net"), @list.find("google.net")
|
55
55
|
end
|
56
56
|
|
57
|
+
def test_add_should_not_duplicate_indices
|
58
|
+
@list = PublicSuffix::List.parse("com")
|
59
|
+
@list.add(PublicSuffix::Rule.factory("net"))
|
60
|
+
|
61
|
+
assert_equal @list.indexes["com"], [0]
|
62
|
+
end
|
63
|
+
|
57
64
|
def test_empty?
|
58
65
|
assert @list.empty?
|
59
66
|
@list.add(PublicSuffix::Rule.factory(""))
|
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: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|