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