public_suffix 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -0
- data/.travis.yml +4 -5
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -1
- data/README.md +2 -2
- data/Rakefile +3 -60
- data/data/list.txt +109 -5
- data/lib/public_suffix/version.rb +1 -1
- data/public_suffix.gemspec +18 -32
- data/test/test_helper.rb +5 -3
- data/test/unit/list_test.rb +2 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66eee3e9df58f80b2de00e3925a813c7e5e901c3
|
4
|
+
data.tar.gz: 88ecfd74d37e3018d4ca271e936f923c2d60a41d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 537f5069099036d9de8aed92f098214befde27d26819861b35327c5bee811e96a920f5583e50e92a38d70a23ccde4a8a1bb5f7d5b619cd941741667b50d5ff49
|
7
|
+
data.tar.gz: a388c3cd997aa7a9bfc0ac2ba03e41325fd2a708cb40f296d661dd776e678d138d77bb4393ba57da38ea90ba315047efe2f3b46aedc861eca3d7d97f136349fe
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
inherit_from:
|
2
2
|
- .rubocop_defaults.yml
|
3
3
|
|
4
|
+
AllCops:
|
5
|
+
Exclude:
|
6
|
+
# Exclude .gemspec files because they are generally auto-generated
|
7
|
+
- '*.gemspec'
|
8
|
+
# Exclude vendored folders
|
9
|
+
- 'tmp/**/*'
|
10
|
+
- 'vendor/**/*'
|
11
|
+
# Exclude artifacts
|
12
|
+
- 'pkg/**/*'
|
13
|
+
|
4
14
|
Style/ClassAndModuleChildren:
|
5
15
|
Exclude:
|
6
16
|
- 'spec/**/*_spec.rb'
|
data/.travis.yml
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
language: ruby
|
2
|
+
|
2
3
|
rvm:
|
3
4
|
- 2.0
|
4
5
|
- 2.1
|
@@ -7,17 +8,15 @@ rvm:
|
|
7
8
|
- jruby-9.0.5.0
|
8
9
|
- ruby-head
|
9
10
|
|
10
|
-
|
11
|
+
before_install:
|
12
|
+
- gem install bundler
|
13
|
+
|
11
14
|
cache:
|
12
15
|
- bundler
|
13
16
|
|
14
17
|
env:
|
15
18
|
- COVERALL=1
|
16
19
|
|
17
|
-
notifications:
|
18
|
-
recipients:
|
19
|
-
- weppos@weppos.net
|
20
|
-
|
21
20
|
matrix:
|
22
21
|
allow_failures:
|
23
22
|
- rvm: ruby-head
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,59 +1,8 @@
|
|
1
|
-
require "
|
2
|
-
require "bundler"
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__) + "/lib")
|
5
|
-
require "public_suffix"
|
6
|
-
|
1
|
+
require "bundler/gem_tasks"
|
7
2
|
|
8
3
|
# By default, run tests and linter.
|
9
4
|
task default: [:test, :rubocop]
|
10
5
|
|
11
|
-
spec = Gem::Specification.new do |s|
|
12
|
-
s.name = "public_suffix"
|
13
|
-
s.version = PublicSuffix::VERSION
|
14
|
-
s.summary = "Domain name parser based on the Public Suffix List."
|
15
|
-
s.description = "PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains."
|
16
|
-
|
17
|
-
s.required_ruby_version = ">= 2.0"
|
18
|
-
|
19
|
-
s.author = "Simone Carletti"
|
20
|
-
s.email = "weppos@weppos.net"
|
21
|
-
s.homepage = "https://simonecarletti.com/code/publicsuffix-ruby"
|
22
|
-
s.license = "MIT"
|
23
|
-
|
24
|
-
s.files = `git ls-files`.split("\n")
|
25
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
26
|
-
s.require_paths = %w( lib )
|
27
|
-
|
28
|
-
s.add_development_dependency("rake")
|
29
|
-
s.add_development_dependency("mocha")
|
30
|
-
s.add_development_dependency("yard")
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
require "rubygems/package_task"
|
35
|
-
|
36
|
-
Gem::PackageTask.new(spec) do |pkg|
|
37
|
-
pkg.gem_spec = spec
|
38
|
-
end
|
39
|
-
|
40
|
-
desc "Build the gemspec file #{spec.name}.gemspec"
|
41
|
-
task :gemspec do
|
42
|
-
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
|
43
|
-
File.open(file, "w") { |f| f << spec.to_ruby }
|
44
|
-
end
|
45
|
-
|
46
|
-
desc "Remove any temporary products, including gemspec"
|
47
|
-
task clean: [:clobber] do
|
48
|
-
rm "#{spec.name}.gemspec" if File.file?("#{spec.name}.gemspec")
|
49
|
-
end
|
50
|
-
|
51
|
-
desc "Remove any generated file"
|
52
|
-
task clobber: [:clobber_package]
|
53
|
-
|
54
|
-
desc "Package the library and generates the gemspec"
|
55
|
-
task package: [:gemspec]
|
56
|
-
|
57
6
|
|
58
7
|
require "rake/testtask"
|
59
8
|
|
@@ -69,19 +18,13 @@ require "rubocop/rake_task"
|
|
69
18
|
RuboCop::RakeTask.new
|
70
19
|
|
71
20
|
|
72
|
-
require "yard"
|
73
21
|
require "yard/rake/yardoc_task"
|
74
22
|
|
75
23
|
YARD::Rake::YardocTask.new(:yardoc) do |y|
|
76
|
-
y.options =
|
24
|
+
y.options = ["--output-dir", "yardoc"]
|
77
25
|
end
|
78
26
|
|
79
|
-
|
80
|
-
task :clobber do
|
81
|
-
rm_r "yardoc" rescue nil
|
82
|
-
end
|
83
|
-
end
|
84
|
-
task clobber: ["yardoc:clobber"]
|
27
|
+
CLOBBER.include "yardoc"
|
85
28
|
|
86
29
|
|
87
30
|
desc "Open an irb session preloaded with this library"
|
data/data/list.txt
CHANGED
@@ -704,7 +704,9 @@ org.cw
|
|
704
704
|
cx
|
705
705
|
gov.cx
|
706
706
|
|
707
|
-
// cy :
|
707
|
+
// cy : http://www.nic.cy/
|
708
|
+
// Submitted by registry Panayiotou Fotia <cydns@ucy.ac.cy>
|
709
|
+
cy
|
708
710
|
ac.cy
|
709
711
|
biz.cy
|
710
712
|
com.cy
|
@@ -4367,9 +4369,17 @@ edu.my
|
|
4367
4369
|
mil.my
|
4368
4370
|
name.my
|
4369
4371
|
|
4370
|
-
// mz : http://www.
|
4371
|
-
|
4372
|
-
|
4372
|
+
// mz : http://www.uem.mz/
|
4373
|
+
// Submitted by registry <antonio@uem.mz>
|
4374
|
+
mz
|
4375
|
+
ac.mz
|
4376
|
+
adv.mz
|
4377
|
+
co.mz
|
4378
|
+
edu.mz
|
4379
|
+
gov.mz
|
4380
|
+
mil.mz
|
4381
|
+
net.mz
|
4382
|
+
org.mz
|
4373
4383
|
|
4374
4384
|
// na : http://www.na-nic.com.na/
|
4375
4385
|
// http://www.info.na/domain/
|
@@ -10644,6 +10654,10 @@ beep.pl
|
|
10644
10654
|
*.compute.estate
|
10645
10655
|
*.alces.network
|
10646
10656
|
|
10657
|
+
// alwaysdata : https://www.alwaysdata.com
|
10658
|
+
// Submitted by Cyril <admin@alwaysdata.com>
|
10659
|
+
*.alwaysdata.net
|
10660
|
+
|
10647
10661
|
// Amazon CloudFront : https://aws.amazon.com/cloudfront/
|
10648
10662
|
// Submitted by Donavan Miller <donavanm@amazon.com>
|
10649
10663
|
cloudfront.net
|
@@ -10825,6 +10839,20 @@ r.cdn77.net
|
|
10825
10839
|
rsc.cdn77.org
|
10826
10840
|
ssl.origin.cdn77-secure.org
|
10827
10841
|
|
10842
|
+
// Cloud DNS Ltd : http://www.cloudns.net
|
10843
|
+
// Submitted by Aleksander Hristov <noc@cloudns.net>
|
10844
|
+
cloudns.asia
|
10845
|
+
cloudns.biz
|
10846
|
+
cloudns.club
|
10847
|
+
cloudns.cc
|
10848
|
+
cloudns.eu
|
10849
|
+
cloudns.in
|
10850
|
+
cloudns.info
|
10851
|
+
cloudns.org
|
10852
|
+
cloudns.pro
|
10853
|
+
cloudns.pw
|
10854
|
+
cloudns.us
|
10855
|
+
|
10828
10856
|
// CoDNS B.V.
|
10829
10857
|
co.nl
|
10830
10858
|
co.no
|
@@ -11280,6 +11308,16 @@ fbxos.fr
|
|
11280
11308
|
freebox-os.fr
|
11281
11309
|
freeboxos.fr
|
11282
11310
|
|
11311
|
+
// Fusion Intranet : https://www.fusion-intranet.com
|
11312
|
+
// Submitted by Matthias Burtscher <matthias.burtscher@fusonic.net>
|
11313
|
+
myfusion.cloud
|
11314
|
+
|
11315
|
+
// Futureweb OG : http://www.futureweb.at
|
11316
|
+
// Submitted by Andreas Schnederle-Wagner <schnederle@futureweb.at>
|
11317
|
+
futuremailing.at
|
11318
|
+
*.ex.ortsinfo.at
|
11319
|
+
*.kunden.ortsinfo.at
|
11320
|
+
|
11283
11321
|
// GDS : https://www.gov.uk/service-manual/operations/operating-servicegovuk-subdomains
|
11284
11322
|
// Submitted by David Illsley <david.illsley@digital.cabinet-office.gov.uk>
|
11285
11323
|
service.gov.uk
|
@@ -11391,6 +11429,7 @@ codespot.com
|
|
11391
11429
|
googleapis.com
|
11392
11430
|
googlecode.com
|
11393
11431
|
pagespeedmobilizer.com
|
11432
|
+
publishproxy.com
|
11394
11433
|
withgoogle.com
|
11395
11434
|
withyoutube.com
|
11396
11435
|
|
@@ -11418,6 +11457,36 @@ iki.fi
|
|
11418
11457
|
biz.at
|
11419
11458
|
info.at
|
11420
11459
|
|
11460
|
+
// Interlegis : http://www.interlegis.leg.br
|
11461
|
+
// Submitted by Gabriel Ferreira <registrobr@interlegis.leg.br>
|
11462
|
+
ac.leg.br
|
11463
|
+
al.leg.br
|
11464
|
+
am.leg.br
|
11465
|
+
ap.leg.br
|
11466
|
+
ba.leg.br
|
11467
|
+
ce.leg.br
|
11468
|
+
df.leg.br
|
11469
|
+
es.leg.br
|
11470
|
+
go.leg.br
|
11471
|
+
ma.leg.br
|
11472
|
+
mg.leg.br
|
11473
|
+
ms.leg.br
|
11474
|
+
mt.leg.br
|
11475
|
+
pa.leg.br
|
11476
|
+
pb.leg.br
|
11477
|
+
pe.leg.br
|
11478
|
+
pi.leg.br
|
11479
|
+
pr.leg.br
|
11480
|
+
rj.leg.br
|
11481
|
+
rn.leg.br
|
11482
|
+
ro.leg.br
|
11483
|
+
rr.leg.br
|
11484
|
+
rs.leg.br
|
11485
|
+
sc.leg.br
|
11486
|
+
se.leg.br
|
11487
|
+
sp.leg.br
|
11488
|
+
to.leg.br
|
11489
|
+
|
11421
11490
|
// Joyent : https://www.joyent.com/
|
11422
11491
|
// Submitted by Brian Bennett <brian.bennett@joyent.com>
|
11423
11492
|
*.triton.zone
|
@@ -11427,6 +11496,14 @@ info.at
|
|
11427
11496
|
// Submitted by Stefan Keim <admin@js.org>
|
11428
11497
|
js.org
|
11429
11498
|
|
11499
|
+
// Keyweb AG : https://www.keyweb.de
|
11500
|
+
// Submitted by Martin Dannehl <postmaster@keymachine.de>
|
11501
|
+
keymachine.de
|
11502
|
+
|
11503
|
+
// KnightPoint Systems, LLC : http://www.knightpoint.com/
|
11504
|
+
// Submitted by Roy Keene <rkeene@knightpoint.com>
|
11505
|
+
knightpoint.systems
|
11506
|
+
|
11430
11507
|
// .KRD : http://nic.krd/data/krd/Registration%20Policy.pdf
|
11431
11508
|
co.krd
|
11432
11509
|
edu.krd
|
@@ -11566,6 +11643,10 @@ nyc.mn
|
|
11566
11643
|
// Submitted by Eddie Jones <eddie@onefoldmedia.com>
|
11567
11644
|
nid.io
|
11568
11645
|
|
11646
|
+
// OpenCraft GmbH : http://opencraft.com/
|
11647
|
+
// Submitted by Sven Marnach <sven@opencraft.com>
|
11648
|
+
opencraft.hosting
|
11649
|
+
|
11569
11650
|
// Opera Software, A.S.A.
|
11570
11651
|
// Submitted by Yngve Pettersen <yngve@opera.com>
|
11571
11652
|
operaunite.com
|
@@ -11646,6 +11727,12 @@ rhcloud.com
|
|
11646
11727
|
// Submitted by Chris Kastorff <info@rethinkdb.com>
|
11647
11728
|
hzc.io
|
11648
11729
|
|
11730
|
+
// Revitalised Limited : http://www.revitalised.co.uk
|
11731
|
+
// Submitted by Jack Price <jack@revitalised.co.uk>
|
11732
|
+
wellbeingzone.eu
|
11733
|
+
ptplus.fit
|
11734
|
+
wellbeingzone.co.uk
|
11735
|
+
|
11649
11736
|
// Sandstorm Development Group, Inc. : https://sandcats.io/
|
11650
11737
|
// Submitted by Asheesh Laroia <asheesh@sandstorm.io>
|
11651
11738
|
sandcats.io
|
@@ -11667,9 +11754,11 @@ myshopblocks.com
|
|
11667
11754
|
|
11668
11755
|
// SinaAppEngine : http://sae.sina.com.cn/
|
11669
11756
|
// Submitted by SinaAppEngine <saesupport@sinacloud.com>
|
11757
|
+
1kapp.com
|
11758
|
+
appchizi.com
|
11759
|
+
applinzi.com
|
11670
11760
|
sinaapp.com
|
11671
11761
|
vipsinaapp.com
|
11672
|
-
1kapp.com
|
11673
11762
|
|
11674
11763
|
// Skyhat : http://www.skyhat.io
|
11675
11764
|
// Submitted by Shante Adam <shante@skyhat.io>
|
@@ -11683,6 +11772,11 @@ static.land
|
|
11683
11772
|
dev.static.land
|
11684
11773
|
sites.static.land
|
11685
11774
|
|
11775
|
+
// SourceLair PC : https://www.sourcelair.com
|
11776
|
+
// Submitted by Antonis Kalipetis <akalipetis@sourcelair.com>
|
11777
|
+
apps.lair.io
|
11778
|
+
*.stolos.io
|
11779
|
+
|
11686
11780
|
// SpaceKit : https://www.spacekit.io/
|
11687
11781
|
// Submitted by Reza Akhavan <spacekit.io@gmail.com>
|
11688
11782
|
spacekit.io
|
@@ -11707,6 +11801,10 @@ i234.me
|
|
11707
11801
|
myds.me
|
11708
11802
|
synology.me
|
11709
11803
|
|
11804
|
+
// TAIFUN Software AG : http://taifun-software.de
|
11805
|
+
// Submitted by Bjoern Henke <dev-server@taifun-software.de>
|
11806
|
+
taifun-dns.de
|
11807
|
+
|
11710
11808
|
// TASK geographical domains (www.task.gda.pl/uslugi/dns)
|
11711
11809
|
gda.pl
|
11712
11810
|
gdansk.pl
|
@@ -11719,6 +11817,12 @@ sopot.pl
|
|
11719
11817
|
bloxcms.com
|
11720
11818
|
townnews-staging.com
|
11721
11819
|
|
11820
|
+
// TransIP : htts://www.transip.nl
|
11821
|
+
// Submitted by Rory Breuk <rbreuk@transip.nl>
|
11822
|
+
*.transurl.be
|
11823
|
+
*.transurl.eu
|
11824
|
+
*.transurl.nl
|
11825
|
+
|
11722
11826
|
// TuxFamily : http://tuxfamily.org
|
11723
11827
|
// Submitted by TuxFamily administrators <adm@staff.tuxfamily.org>
|
11724
11828
|
tuxfamily.org
|
data/public_suffix.gemspec
CHANGED
@@ -1,39 +1,25 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
2
|
+
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "public_suffix/version"
|
3
4
|
|
4
5
|
Gem::Specification.new do |s|
|
5
|
-
s.name
|
6
|
-
s.version
|
7
|
-
|
8
|
-
s.
|
9
|
-
s.
|
10
|
-
s.
|
11
|
-
s.date = "2016-09-30"
|
6
|
+
s.name = "public_suffix"
|
7
|
+
s.version = PublicSuffix::VERSION
|
8
|
+
s.authors = ["Simone Carletti"]
|
9
|
+
s.email = ["weppos@weppos.net"]
|
10
|
+
s.homepage = "https://simonecarletti.com/code/publicsuffix-ruby"
|
11
|
+
s.summary = "Domain name parser based on the Public Suffix List."
|
12
12
|
s.description = "PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains."
|
13
|
-
s.
|
14
|
-
|
15
|
-
s.
|
16
|
-
s.licenses = ["MIT"]
|
17
|
-
s.required_ruby_version = Gem::Requirement.new(">= 2.0")
|
18
|
-
s.rubygems_version = "2.5.1"
|
19
|
-
s.summary = "Domain name parser based on the Public Suffix List."
|
20
|
-
s.test_files = ["test/acceptance_test.rb", "test/benchmark_helper.rb", "test/execution_profiler.rb", "test/initialization_profiler.rb", "test/performance_benchmark.rb", "test/psl_test.rb", "test/test_helper.rb", "test/tests.txt", "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"]
|
13
|
+
s.licenses = ["MIT"]
|
14
|
+
|
15
|
+
s.required_ruby_version = ">= 2.0"
|
21
16
|
|
22
|
-
|
23
|
-
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.extra_rdoc_files = %w( LICENSE.txt )
|
24
21
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
s.add_development_dependency(%q<yard>, [">= 0"])
|
29
|
-
else
|
30
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
31
|
-
s.add_dependency(%q<mocha>, [">= 0"])
|
32
|
-
s.add_dependency(%q<yard>, [">= 0"])
|
33
|
-
end
|
34
|
-
else
|
35
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
36
|
-
s.add_dependency(%q<mocha>, [">= 0"])
|
37
|
-
s.add_dependency(%q<yard>, [">= 0"])
|
38
|
-
end
|
22
|
+
s.add_development_dependency "rake"
|
23
|
+
s.add_development_dependency "mocha"
|
24
|
+
s.add_development_dependency "yard"
|
39
25
|
end
|
data/test/test_helper.rb
CHANGED
@@ -13,7 +13,9 @@ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
|
|
13
13
|
require "public_suffix"
|
14
14
|
|
15
15
|
Minitest::Unit::TestCase.class_eval do
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
unless method_exists?(:assert_not_equal)
|
17
|
+
def assert_not_equal(exp, act, msg = nil)
|
18
|
+
assert_operator(exp, :!=, act, msg)
|
19
|
+
end
|
20
|
+
end
|
19
21
|
end
|
data/test/unit/list_test.rb
CHANGED
@@ -158,7 +158,8 @@ EOS
|
|
158
158
|
|
159
159
|
|
160
160
|
def test_self_default_getter
|
161
|
-
|
161
|
+
PublicSuffix::List.default = nil
|
162
|
+
assert_nil PublicSuffix::List.class_eval { @default }
|
162
163
|
PublicSuffix::List.default
|
163
164
|
assert_not_equal nil, PublicSuffix::List.class_eval { @default }
|
164
165
|
end
|
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: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -54,10 +54,12 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
description: PublicSuffix can parse and decompose a domain name into top level domain,
|
56
56
|
domain and subdomains.
|
57
|
-
email:
|
57
|
+
email:
|
58
|
+
- weppos@weppos.net
|
58
59
|
executables: []
|
59
60
|
extensions: []
|
60
|
-
extra_rdoc_files:
|
61
|
+
extra_rdoc_files:
|
62
|
+
- LICENSE.txt
|
61
63
|
files:
|
62
64
|
- ".gitignore"
|
63
65
|
- ".rubocop.yml"
|
@@ -112,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
114
|
version: '0'
|
113
115
|
requirements: []
|
114
116
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.6.8
|
116
118
|
signing_key:
|
117
119
|
specification_version: 4
|
118
120
|
summary: Domain name parser based on the Public Suffix List.
|