kch-dominion 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dominion/domain_name.rb +17 -0
- data/var/tlds.dat +142 -27
- metadata +2 -2
data/lib/dominion/domain_name.rb
CHANGED
@@ -28,6 +28,14 @@ module Dominion
|
|
28
28
|
labels.length == rule.length
|
29
29
|
end
|
30
30
|
|
31
|
+
# is this the root domain?
|
32
|
+
def base?
|
33
|
+
labels.length == rule.length.succ
|
34
|
+
end
|
35
|
+
alias_method :naked?, :base?
|
36
|
+
alias_method :root?, :base?
|
37
|
+
alias_method :apex?, :base?
|
38
|
+
|
31
39
|
# returns the TLD part of the domain
|
32
40
|
def tld
|
33
41
|
domain(0)
|
@@ -37,6 +45,15 @@ module Dominion
|
|
37
45
|
def base
|
38
46
|
domain(1)
|
39
47
|
end
|
48
|
+
alias_method :naked, :base
|
49
|
+
alias_method :root, :base
|
50
|
+
alias_method :apex, :base
|
51
|
+
|
52
|
+
# returns the complete hostname
|
53
|
+
def full
|
54
|
+
domain(labels.length - rule.length)
|
55
|
+
end
|
56
|
+
alias_method :to_s, :full
|
40
57
|
|
41
58
|
# return the domain with the specified number of extra labels over the TLD. Used internally.
|
42
59
|
def domain(non_tld_label_count = 1)
|
data/var/tlds.dat
CHANGED
@@ -219,7 +219,6 @@ net.au
|
|
219
219
|
org.au
|
220
220
|
edu.au
|
221
221
|
gov.au
|
222
|
-
csiro.au
|
223
222
|
asn.au
|
224
223
|
id.au
|
225
224
|
// Historic 2LDs (closed to new registration, but sites still exist)
|
@@ -415,13 +414,13 @@ b.br
|
|
415
414
|
bio.br
|
416
415
|
blog.br
|
417
416
|
bmd.br
|
418
|
-
can.br
|
419
417
|
cim.br
|
420
418
|
cng.br
|
421
419
|
cnt.br
|
422
420
|
com.br
|
423
421
|
coop.br
|
424
422
|
ecn.br
|
423
|
+
eco.br
|
425
424
|
edu.br
|
426
425
|
emp.br
|
427
426
|
eng.br
|
@@ -442,6 +441,7 @@ ind.br
|
|
442
441
|
inf.br
|
443
442
|
jor.br
|
444
443
|
jus.br
|
444
|
+
leg.br
|
445
445
|
lel.br
|
446
446
|
mat.br
|
447
447
|
med.br
|
@@ -949,9 +949,15 @@ gov.gr
|
|
949
949
|
// gs : http://en.wikipedia.org/wiki/.gs
|
950
950
|
gs
|
951
951
|
|
952
|
-
// gt : http://www.gt/
|
953
|
-
|
954
|
-
|
952
|
+
// gt : http://www.gt/politicas_de_registro.html
|
953
|
+
gt
|
954
|
+
com.gt
|
955
|
+
edu.gt
|
956
|
+
gob.gt
|
957
|
+
ind.gt
|
958
|
+
mil.gt
|
959
|
+
net.gt
|
960
|
+
org.gt
|
955
961
|
|
956
962
|
// gu : http://gadao.gov.gu/registration.txt
|
957
963
|
*.gu
|
@@ -4165,6 +4171,7 @@ name.my
|
|
4165
4171
|
|
4166
4172
|
// mz : http://www.gobin.info/domainname/mz-template.doc
|
4167
4173
|
*.mz
|
4174
|
+
!teledata.mz
|
4168
4175
|
|
4169
4176
|
// na : http://www.na-nic.com.na/
|
4170
4177
|
// http://www.info.na/domain/
|
@@ -5358,8 +5365,17 @@ ed.pw
|
|
5358
5365
|
go.pw
|
5359
5366
|
belau.pw
|
5360
5367
|
|
5361
|
-
// py : http://www.nic.py/
|
5362
|
-
|
5368
|
+
// py : http://www.nic.py/pautas.html#seccion_9
|
5369
|
+
// Confirmed by registry 2012-10-03
|
5370
|
+
com.py
|
5371
|
+
coop.py
|
5372
|
+
edu.py
|
5373
|
+
gov.py
|
5374
|
+
mil.py
|
5375
|
+
net.py
|
5376
|
+
org.py
|
5377
|
+
!nic.py
|
5378
|
+
!una.py
|
5363
5379
|
|
5364
5380
|
// qa : http://domains.qa/en/
|
5365
5381
|
qa
|
@@ -5899,60 +5915,87 @@ ne.tz
|
|
5899
5915
|
or.tz
|
5900
5916
|
sc.tz
|
5901
5917
|
|
5902
|
-
// ua :
|
5918
|
+
// ua : https://hostmaster.ua/policy/?ua
|
5919
|
+
// Submitted by registry <dk@cctld.ua> 2012-04-27
|
5903
5920
|
ua
|
5921
|
+
// ua 2LD
|
5904
5922
|
com.ua
|
5905
5923
|
edu.ua
|
5906
5924
|
gov.ua
|
5907
5925
|
in.ua
|
5908
5926
|
net.ua
|
5909
5927
|
org.ua
|
5910
|
-
// ua
|
5928
|
+
// ua geographic names
|
5929
|
+
// https://hostmaster.ua/2ld/
|
5911
5930
|
cherkassy.ua
|
5931
|
+
cherkasy.ua
|
5912
5932
|
chernigov.ua
|
5933
|
+
chernihiv.ua
|
5934
|
+
chernivtsi.ua
|
5913
5935
|
chernovtsy.ua
|
5914
5936
|
ck.ua
|
5915
5937
|
cn.ua
|
5938
|
+
cr.ua
|
5916
5939
|
crimea.ua
|
5917
5940
|
cv.ua
|
5918
5941
|
dn.ua
|
5919
5942
|
dnepropetrovsk.ua
|
5943
|
+
dnipropetrovsk.ua
|
5944
|
+
dominic.ua
|
5920
5945
|
donetsk.ua
|
5921
5946
|
dp.ua
|
5922
5947
|
if.ua
|
5923
5948
|
ivano-frankivsk.ua
|
5924
5949
|
kh.ua
|
5950
|
+
kharkiv.ua
|
5925
5951
|
kharkov.ua
|
5926
5952
|
kherson.ua
|
5927
5953
|
khmelnitskiy.ua
|
5954
|
+
khmelnytskyi.ua
|
5928
5955
|
kiev.ua
|
5929
5956
|
kirovograd.ua
|
5930
5957
|
km.ua
|
5931
5958
|
kr.ua
|
5959
|
+
krym.ua
|
5932
5960
|
ks.ua
|
5933
5961
|
kv.ua
|
5962
|
+
kyiv.ua
|
5934
5963
|
lg.ua
|
5964
|
+
lt.ua
|
5935
5965
|
lugansk.ua
|
5936
5966
|
lutsk.ua
|
5967
|
+
lv.ua
|
5937
5968
|
lviv.ua
|
5938
5969
|
mk.ua
|
5970
|
+
mykolaiv.ua
|
5939
5971
|
nikolaev.ua
|
5940
5972
|
od.ua
|
5973
|
+
odesa.ua
|
5941
5974
|
odessa.ua
|
5942
5975
|
pl.ua
|
5943
5976
|
poltava.ua
|
5977
|
+
rivne.ua
|
5944
5978
|
rovno.ua
|
5945
5979
|
rv.ua
|
5980
|
+
sb.ua
|
5946
5981
|
sebastopol.ua
|
5982
|
+
sevastopol.ua
|
5983
|
+
sm.ua
|
5947
5984
|
sumy.ua
|
5948
5985
|
te.ua
|
5949
5986
|
ternopil.ua
|
5987
|
+
uz.ua
|
5950
5988
|
uzhgorod.ua
|
5951
5989
|
vinnica.ua
|
5990
|
+
vinnytsia.ua
|
5952
5991
|
vn.ua
|
5992
|
+
volyn.ua
|
5993
|
+
yalta.ua
|
5953
5994
|
zaporizhzhe.ua
|
5954
|
-
|
5995
|
+
zaporizhzhia.ua
|
5955
5996
|
zhitomir.ua
|
5997
|
+
zhytomyr.ua
|
5998
|
+
zp.ua
|
5956
5999
|
zt.ua
|
5957
6000
|
|
5958
6001
|
// Private registries in .ua
|
@@ -5971,20 +6014,19 @@ com.ug
|
|
5971
6014
|
org.ug
|
5972
6015
|
|
5973
6016
|
// uk : http://en.wikipedia.org/wiki/.uk
|
6017
|
+
// Submitted by registry <noc@nominet.org.uk> 2012-10-02
|
6018
|
+
// and tweaked by us pending further consultation.
|
5974
6019
|
*.uk
|
5975
6020
|
*.sch.uk
|
5976
6021
|
!bl.uk
|
5977
6022
|
!british-library.uk
|
5978
|
-
!icnet.uk
|
5979
6023
|
!jet.uk
|
5980
6024
|
!mod.uk
|
6025
|
+
!national-library-scotland.uk
|
5981
6026
|
!nel.uk
|
5982
|
-
!nhs.uk
|
5983
6027
|
!nic.uk
|
5984
6028
|
!nls.uk
|
5985
|
-
!national-library-scotland.uk
|
5986
6029
|
!parliament.uk
|
5987
|
-
!police.uk
|
5988
6030
|
|
5989
6031
|
// us : http://en.wikipedia.org/wiki/.us
|
5990
6032
|
us
|
@@ -6231,8 +6273,14 @@ pvt.k12.ma.us
|
|
6231
6273
|
chtr.k12.ma.us
|
6232
6274
|
paroch.k12.ma.us
|
6233
6275
|
|
6234
|
-
// uy : http://www.
|
6235
|
-
|
6276
|
+
// uy : http://www.nic.org.uy/
|
6277
|
+
uy
|
6278
|
+
com.uy
|
6279
|
+
edu.uy
|
6280
|
+
gub.uy
|
6281
|
+
mil.uy
|
6282
|
+
net.uy
|
6283
|
+
org.uy
|
6236
6284
|
|
6237
6285
|
// uz : http://www.reg.uz/
|
6238
6286
|
uz
|
@@ -6254,8 +6302,19 @@ gov.vc
|
|
6254
6302
|
mil.vc
|
6255
6303
|
edu.vc
|
6256
6304
|
|
6257
|
-
// ve :
|
6258
|
-
|
6305
|
+
// ve : https://registro.nic.ve/
|
6306
|
+
// Confirmed by registry 2012-10-04
|
6307
|
+
ve
|
6308
|
+
co.ve
|
6309
|
+
com.ve
|
6310
|
+
e12.ve
|
6311
|
+
edu.ve
|
6312
|
+
gov.ve
|
6313
|
+
info.ve
|
6314
|
+
mil.ve
|
6315
|
+
net.ve
|
6316
|
+
org.ve
|
6317
|
+
web.ve
|
6259
6318
|
|
6260
6319
|
// vg : http://en.wikipedia.org/wiki/.vg
|
6261
6320
|
vg
|
@@ -6495,15 +6554,20 @@ priv.at
|
|
6495
6554
|
co.ca
|
6496
6555
|
|
6497
6556
|
// CentralNic : http://www.centralnic.com/names/domains
|
6498
|
-
// Confirmed by registry <gavin.brown@centralnic.com>
|
6557
|
+
// Confirmed by registry <gavin.brown@centralnic.com> 2012-09-27
|
6558
|
+
ae.org
|
6499
6559
|
ar.com
|
6500
6560
|
br.com
|
6501
6561
|
cn.com
|
6562
|
+
com.de
|
6502
6563
|
de.com
|
6503
6564
|
eu.com
|
6504
6565
|
gb.com
|
6566
|
+
gb.net
|
6505
6567
|
gr.com
|
6506
6568
|
hu.com
|
6569
|
+
hu.net
|
6570
|
+
jp.net
|
6507
6571
|
jpn.com
|
6508
6572
|
kr.com
|
6509
6573
|
no.com
|
@@ -6511,25 +6575,68 @@ qc.com
|
|
6511
6575
|
ru.com
|
6512
6576
|
sa.com
|
6513
6577
|
se.com
|
6578
|
+
se.net
|
6514
6579
|
uk.com
|
6580
|
+
uk.net
|
6515
6581
|
us.com
|
6582
|
+
us.org
|
6516
6583
|
uy.com
|
6517
6584
|
za.com
|
6518
|
-
gb.net
|
6519
|
-
jp.net
|
6520
|
-
se.net
|
6521
|
-
uk.net
|
6522
|
-
ae.org
|
6523
|
-
us.org
|
6524
|
-
com.de
|
6525
6585
|
|
6526
6586
|
// Opera Software, A.S.A.
|
6527
6587
|
// Requested by Yngve Pettersen <yngve@opera.com> 2009-11-26
|
6528
6588
|
operaunite.com
|
6529
6589
|
|
6530
6590
|
// Google, Inc.
|
6531
|
-
// Requested by Eduardo Vela <evn@google.com>
|
6591
|
+
// Requested by Eduardo Vela <evn@google.com> 2012-10-24
|
6532
6592
|
appspot.com
|
6593
|
+
blogspot.be
|
6594
|
+
blogspot.bj
|
6595
|
+
blogspot.ca
|
6596
|
+
blogspot.cf
|
6597
|
+
blogspot.ch
|
6598
|
+
blogspot.co.at
|
6599
|
+
blogspot.co.il
|
6600
|
+
blogspot.co.nz
|
6601
|
+
blogspot.co.uk
|
6602
|
+
blogspot.com
|
6603
|
+
blogspot.com.ar
|
6604
|
+
blogspot.com.au
|
6605
|
+
blogspot.com.br
|
6606
|
+
blogspot.com.es
|
6607
|
+
blogspot.cv
|
6608
|
+
blogspot.cz
|
6609
|
+
blogspot.de
|
6610
|
+
blogspot.dk
|
6611
|
+
blogspot.fi
|
6612
|
+
blogspot.fr
|
6613
|
+
blogspot.gr
|
6614
|
+
blogspot.hk
|
6615
|
+
blogspot.hu
|
6616
|
+
blogspot.ie
|
6617
|
+
blogspot.in
|
6618
|
+
blogspot.it
|
6619
|
+
blogspot.jp
|
6620
|
+
blogspot.kr
|
6621
|
+
blogspot.mr
|
6622
|
+
blogspot.mx
|
6623
|
+
blogspot.nl
|
6624
|
+
blogspot.no
|
6625
|
+
blogspot.pt
|
6626
|
+
blogspot.re
|
6627
|
+
blogspot.ro
|
6628
|
+
blogspot.se
|
6629
|
+
blogspot.sg
|
6630
|
+
blogspot.sk
|
6631
|
+
blogspot.td
|
6632
|
+
blogspot.tw
|
6633
|
+
codespot.com
|
6634
|
+
googleapis.com
|
6635
|
+
googlecode.com
|
6636
|
+
|
6637
|
+
// DreamHost : http://www.dreamhost.com/
|
6638
|
+
// Requested by Andrew Farmer <andrew.farmer@dreamhost.com> 2012-10-02
|
6639
|
+
dreamhosters.com
|
6533
6640
|
|
6534
6641
|
// iki.fi : Submitted by Hannu Aronsson <haa@iki.fi> 2009-11-05
|
6535
6642
|
iki.fi
|
@@ -6831,4 +6938,12 @@ webhop.org
|
|
6831
6938
|
worse-than.tv
|
6832
6939
|
writesthisblog.com
|
6833
6940
|
|
6941
|
+
// BetaInABox
|
6942
|
+
// Requested by adrian@betainabox.com 2012-09-13
|
6943
|
+
betainabox.com
|
6944
|
+
|
6945
|
+
// Red Hat, Inc. OpenShift : https://openshift.redhat.com/
|
6946
|
+
// Requested by Tim Kramer <tkramer@rhcloud.com> 2012-10-24
|
6947
|
+
rhcloud.com
|
6948
|
+
|
6834
6949
|
// ===END PRIVATE DOMAINS===
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kch-dominion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: dev@caiochassot.com
|