validates_hostname 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/validates_hostname.rb +136 -132
- data/lib/validates_hostname/version.rb +1 -1
- data/validates_hostname.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8fe98aea439c30495c095f7653a4b47eb9655635d416d74385cdaf6088546e3
|
4
|
+
data.tar.gz: 88091198f232ae120112d9f5697831e20d90a16eedb3c29b4389a22d5678b1d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af2a303759ee0a4aee57346dda85337f66254bdcc93e6351168753c71dc63656375f62e25e4b333862c0cdaa02fd9e88dba5a3da5af36a8274fde259cb00dcb5
|
7
|
+
data.tar.gz: eb21618cd9aabde69e5f28ff77c1fd14e12c0553a3cf96e8fba32b6099d29bb567e71d33ebcd7b69f4f63da4c10034f1bad6bff452150dc370a5643baf0d0cfb
|
data/lib/validates_hostname.rb
CHANGED
@@ -10,144 +10,148 @@ module PAK
|
|
10
10
|
# http://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
11
11
|
ALLOWED_TLDS = %w(
|
12
12
|
. aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy
|
13
|
-
accenture accountant accountants aco
|
14
|
-
|
13
|
+
accenture accountant accountants aco actor ad adac ads adult ae aeg aero
|
14
|
+
aetna af afamilycompany afl africa ag agakhan agency ai aig aigo airbus
|
15
15
|
airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally
|
16
16
|
alsace alstom am americanexpress americanfamily amex amfam amica amsterdam
|
17
17
|
analytics android anquan anz ao aol apartments app apple aq aquarelle ar
|
18
|
-
aramco archi army arpa art arte as asda asia associates at athleta
|
19
|
-
au auction audi audible audio auspost author auto autos avianca aw
|
20
|
-
axa az azure ba baby baidu banamex bananarepublic band bank bar
|
21
|
-
barclaycard barclays barefoot bargains baseball basketball bauhaus
|
22
|
-
bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best
|
23
|
-
bf bg bh bharti bi bible bid bike bing bingo bio biz bj black
|
24
|
-
|
25
|
-
boehringer bofa bom bond boo book booking
|
18
|
+
arab aramco archi army arpa art arte as asda asia associates at athleta
|
19
|
+
attorney au auction audi audible audio auspost author auto autos avianca aw
|
20
|
+
aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar
|
21
|
+
barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus
|
22
|
+
bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best
|
23
|
+
bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black
|
24
|
+
blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo
|
25
|
+
boats boehringer bofa bom bond boo book booking bosch bostik boston bot
|
26
26
|
boutique box br bradesco bridgestone broadway broker brother brussels bs bt
|
27
27
|
budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab
|
28
28
|
cafe cal call calvinklein cam camera camp cancerresearch canon capetown
|
29
|
-
capital capitalone car caravan cards care career careers cars
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
xn--
|
125
|
-
xn--
|
126
|
-
xn--
|
127
|
-
xn--
|
128
|
-
xn--
|
129
|
-
xn--
|
130
|
-
xn--
|
131
|
-
xn--
|
132
|
-
xn--
|
133
|
-
xn--
|
134
|
-
xn--
|
135
|
-
xn--
|
136
|
-
xn--
|
137
|
-
xn--
|
138
|
-
xn--
|
139
|
-
xn--
|
140
|
-
xn--
|
141
|
-
xn--
|
142
|
-
xn--
|
143
|
-
xn--
|
144
|
-
xn--
|
145
|
-
xn--
|
146
|
-
xn--
|
147
|
-
xn--
|
148
|
-
xn--
|
149
|
-
|
150
|
-
|
29
|
+
capital capitalone car caravan cards care career careers cars casa case
|
30
|
+
caseih cash casino cat catering catholic cba cbn cbre cbs cc cd ceb center
|
31
|
+
ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai
|
32
|
+
christmas chrome church ci cipriani circle cisco citadel citi citic city
|
33
|
+
cityeats ck cl claims cleaning click clinic clinique clothing cloud club
|
34
|
+
clubmed cm cn co coach codes coffee college cologne com comcast commbank
|
35
|
+
community company compare computer comsec condos construction consulting
|
36
|
+
contact contractors cooking cookingchannel cool coop corsica country coupon
|
37
|
+
coupons courses cpa cr credit creditcard creditunion cricket crown crs
|
38
|
+
cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance
|
39
|
+
data date dating datsun day dclk dds de deal dealer deals degree delivery
|
40
|
+
dell deloitte delta democrat dental dentist desi design dev dhl diamonds
|
41
|
+
diet digital direct directory discount discover dish diy dj dk dm dnp do
|
42
|
+
docs doctor dog domains dot download drive dtv dubai duck dunlop dupont
|
43
|
+
durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck
|
44
|
+
energy engineer engineering enterprises epson equipment er ericsson erni
|
45
|
+
es esq estate esurance et etisalat eu eurovision eus events exchange
|
46
|
+
expert exposed express extraspace fage fail fairwinds faith family fan
|
47
|
+
fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat
|
48
|
+
fidelity fido film final finance financial fire firestone firmdale fish
|
49
|
+
fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo
|
50
|
+
foo food foodnetwork football ford forex forsale forum foundation fox fr
|
51
|
+
free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun
|
52
|
+
fund furniture futbol fyi ga gal gallery gallo gallup game games gap
|
53
|
+
garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift
|
54
|
+
gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx
|
55
|
+
gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq
|
56
|
+
gr grainger graphics gratis green gripe grocery group gs gt gu guardian
|
57
|
+
gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc
|
58
|
+
hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu
|
59
|
+
hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes
|
60
|
+
homesense honda horse hospital host hosting hot hoteles hotels hotmail
|
61
|
+
house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee
|
62
|
+
ifm ikano il im imamat imdb immo immobilien in inc industries infiniti
|
63
|
+
info ing ink institute insurance insure int intel international intuit
|
64
|
+
investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv
|
65
|
+
iveco jaguar java jcb jcp je jeep jetzt jewelry jio jll jm jmp jnj jo jobs
|
66
|
+
joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels
|
67
|
+
kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen
|
68
|
+
kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky
|
69
|
+
kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover
|
70
|
+
lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc
|
71
|
+
lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting
|
72
|
+
like lilly limited limo lincoln linde link lipsy live living lixil lk llc
|
73
|
+
llp loan loans locker locus loft lol london lotte lotto love lpl
|
74
|
+
lplfinancial lr ls lt ltd ltda lu lundbeck lupin luxe luxury lv ly ma
|
75
|
+
macys madrid maif maison makeup man management mango map market marketing
|
76
|
+
markets marriott marshalls maserati mattel mba mc mckinsey md me med media
|
77
|
+
meet melbourne meme memorial men menu merckmsd metlife mg mh miami
|
78
|
+
microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi
|
79
|
+
mobile moda moe moi mom monash money monster mormon mortgage moscow moto
|
80
|
+
motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx
|
81
|
+
my mz na nab nadex nagoya name nationwide natura navy nba nc ne nec net
|
82
|
+
netbank netflix network neustar new newholland news next nextdirect nexus
|
83
|
+
nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia
|
84
|
+
northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi
|
85
|
+
observer off office okinawa olayan olayangroup oldnavy ollo om omega one
|
86
|
+
ong onl online onyourside ooo open oracle orange org organic origins osaka
|
87
|
+
otsuka ott ovh pa page panasonic paris pars partners parts party passagens
|
88
|
+
pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo
|
89
|
+
photography photos physio pics pictet pictures pid pin ping pink pioneer
|
90
|
+
pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker
|
91
|
+
politie porn post pr pramerica praxi press prime pro prod productions prof
|
92
|
+
progressive promo properties property protection pru prudential ps pt pub
|
93
|
+
pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate
|
94
|
+
realtor realty recipes red redstone redumbrella rehab reise reisen reit
|
95
|
+
reliance ren rent rentals repair report republican rest restaurant review
|
96
|
+
reviews rexroth rich richardli ricoh rightathome ril rio rip rmit ro
|
97
|
+
rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa
|
98
|
+
saarland safe safety sakura sale salon samsclub samsung sandvik
|
99
|
+
sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb
|
100
|
+
schaeffler schmidt scholarships school schule schwarz science scjohnson
|
101
|
+
scor scot sd se search seat secure security seek select sener services ses
|
102
|
+
seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes
|
103
|
+
shop shopping shouji show showtime shriram si silk sina singles site sj sk
|
104
|
+
ski skin sky skype sl sling sm smart smile sn sncf so soccer social
|
105
|
+
softbank software sohu solar solutions song sony soy space sport spot
|
106
|
+
spreadbetting sr srl ss st stada staples star statebank statefarm stc
|
107
|
+
stcgroup stockholm storage store stream studio study style su sucks
|
108
|
+
supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx
|
109
|
+
sy sydney symantec systems sz tab taipei talk taobao target tatamotors
|
110
|
+
tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek
|
111
|
+
tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips
|
112
|
+
tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools
|
113
|
+
top toray toshiba total tours town toyota toys tr trade trading training
|
114
|
+
travel travelchannel travelers travelersinsurance trust trv tt tube tui
|
115
|
+
tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups
|
116
|
+
us uy uz va vacations vana vanguard vc ve vegas ventures verisign
|
117
|
+
versicherung vet vg vi viajes video vig viking villas vin vip virgin visa
|
118
|
+
vision vistaprint viva vivo vlaanderen vn vodka volkswagen volvo vote
|
119
|
+
voting voto voyage vu vuelos wales walmart walter wang wanggou watch
|
120
|
+
watches weather weatherchannel webcam weber website wed wedding weibo weir
|
121
|
+
wf whoswho wien wiki williamhill win windows wine winners wme
|
122
|
+
wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity
|
123
|
+
xihuan xin xn--11b4c3d xn--1ck2e1b xn--1qqw23a xn--2scrj9c xn--30rr7y
|
124
|
+
xn--3bst00m xn--3ds443g xn--3e0b707e xn--3hcrj9c xn--3oq18vl8pn36a
|
125
|
+
xn--3pxu8k xn--42c2d9a xn--45br5cyl xn--45brj9c xn--45q11c xn--4gbrim
|
126
|
+
xn--54b7fta0cc xn--55qw42g xn--55qx5d xn--5su34j936bgsg xn--5tzm5g
|
127
|
+
xn--6frz82g xn--6qq986b3xl xn--80adxhks xn--80ao21a xn--80aqecdr1a
|
128
|
+
xn--80asehdb xn--80aswg xn--8y0a063a xn--90a3ac xn--90ae xn--90ais
|
129
|
+
xn--9dbq2a xn--9et52u xn--9krt00a xn--b4w605ferd xn--bck1b9a5dre4c
|
130
|
+
xn--c1avg xn--c2br7g xn--cck2b3b xn--cg4bki xn--clchc0ea0b2g2a9gcd
|
131
|
+
xn--czr694b xn--czrs0t xn--czru2d xn--d1acj3b xn--d1alf xn--e1a4c
|
132
|
+
xn--eckvdtc9d xn--efvy88h xn--estv75g xn--fct429k xn--fhbei xn--fiq228c5hs
|
133
|
+
xn--fiq64b xn--fiqs8s xn--fiqz9s xn--fjq720a xn--flw351e xn--fpcrj9c3d
|
134
|
+
xn--fzc2c9e2c xn--fzys8d69uvgm xn--g2xx48c xn--gckr3f0f xn--gecrj9c
|
135
|
+
xn--gk3at1e xn--h2breg3eve xn--h2brj9c xn--h2brj9c8c xn--hxt814e
|
136
|
+
xn--i1b6b1a6a2e xn--imr513n xn--io0a7i xn--j1aef xn--j1amh xn--j6w193g
|
137
|
+
xn--jlq61u9w7b xn--jvr189m xn--kcrx77d1x4a xn--kprw13d xn--kpry57d
|
138
|
+
xn--kpu716f xn--kput3i xn--l1acc xn--lgbbat1ad8j xn--mgb9awbf
|
139
|
+
xn--mgba3a3ejt xn--mgba3a4f16a xn--mgba7c0bbn0a xn--mgbaakc7dvf
|
140
|
+
xn--mgbaam7a8h xn--mgbab2bd xn--mgbah1a3hjkrd xn--mgbai9azgqp6j
|
141
|
+
xn--mgbayh7gpa xn--mgbbh1a xn--mgbbh1a71e xn--mgbc0a9azcg xn--mgbca7dzdo
|
142
|
+
xn--mgbcpq6gpa1a xn--mgberp4a5d4ar xn--mgbgu82a xn--mgbi4ecexp
|
143
|
+
xn--mgbpl2fh xn--mgbt3dhd xn--mgbtx2b xn--mgbx4cd0ab xn--mix891f
|
144
|
+
xn--mk1bu44c xn--mxtq1m xn--ngbc5azd xn--ngbe9e0a xn--ngbrx xn--node
|
145
|
+
xn--nqv7f xn--nqv7fs00ema xn--nyqy26a xn--o3cw4h xn--ogbpf8fl xn--otu796d
|
146
|
+
xn--p1acf xn--p1ai xn--pbt977c xn--pgbs0dh xn--pssy2u xn--q7ce6a
|
147
|
+
xn--q9jyb4c xn--qcka1pmc xn--qxa6a xn--qxam xn--rhqv96g xn--rovu88b
|
148
|
+
xn--rvc1e0am3e xn--s9brj9c xn--ses554g xn--t60b56a xn--tckwe xn--tiq49xqyj
|
149
|
+
xn--unup4y xn--vermgensberater-ctb xn--vermgensberatung-pwb xn--vhquv
|
150
|
+
xn--vuq861b xn--w4r85el8fhu5dnra xn--w4rs40l xn--wgbh1c xn--wgbl6a
|
151
|
+
xn--xhq521b xn--xkc2al3hye2a xn--xkc2dl3a5ee0h xn--y9a3aq xn--yfro4i67o
|
152
|
+
xn--ygbi2ammx xn--zfr164b xxx xyz yachts yahoo yamaxun yandex ye yodobashi
|
153
|
+
yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich
|
154
|
+
zw
|
151
155
|
)
|
152
156
|
|
153
157
|
DEFAULT_ERROR_MSG = {
|
data/validates_hostname.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: validates_hostname 1.0.
|
2
|
+
# stub: validates_hostname 1.0.10 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "validates_hostname".freeze
|
6
|
-
s.version = "1.0.
|
6
|
+
s.version = "1.0.10"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|