validators 3.3.0 → 3.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/.rubocop.yml +3 -18
  4. data/README.md +29 -24
  5. data/Rakefile +0 -1
  6. data/bin/sync-reserved-subdomains +96 -0
  7. data/data/reserved_subdomains.txt +4 -22
  8. data/lib/validators/disposable_domains.rb +18 -0
  9. data/lib/validators/disposable_emails.rb +7 -4
  10. data/lib/validators/ip.rb +6 -6
  11. data/lib/validators/locale/en.yml +5 -4
  12. data/lib/validators/locale/pt-BR.yml +7 -3
  13. data/lib/validators/tld.rb +7 -5
  14. data/lib/validators/validates_cnpj_format_of.rb +1 -2
  15. data/lib/validators/validates_cpf_format_of.rb +1 -2
  16. data/lib/validators/validates_datetime.rb +3 -2
  17. data/lib/validators/validates_email_format_of.rb +5 -5
  18. data/lib/validators/validates_ssh_private_key.rb +1 -3
  19. data/lib/validators/validates_ssh_public_key.rb +1 -3
  20. data/lib/validators/version.rb +2 -2
  21. data/lib/validators.rb +8 -1
  22. data/test/test_helper.rb +1 -2
  23. data/test/validators/disposable_email_test.rb +0 -2
  24. data/test/validators/validates_cnpj_format_of_test.rb +3 -3
  25. data/test/validators/validates_cpf_format_of_test.rb +3 -3
  26. data/test/validators/validates_email_format_of_test.rb +23 -0
  27. data/test/validators/validates_ssh_private_key/common_test.rb +3 -3
  28. data/test/validators/validates_ssh_public_key_test.rb +3 -3
  29. data/test/validators/validates_url_format_of/with_tld_validation_test.rb +18 -0
  30. data/test/validators/validates_url_format_of/without_tld_validation_test.rb +18 -0
  31. data/validators.gemspec +3 -1
  32. metadata +25 -46
  33. data/bin/sync-disposable-hostnames +0 -230
  34. data/bin/sync-tld +0 -20
  35. data/data/country_tlds.txt +0 -235
  36. data/data/disposable_domains.txt +0 -110996
  37. data/data/disposable_emails.txt +0 -38
  38. data/data/tld.txt +0 -1508
  39. data/lib/validators/disposable_hostnames.rb +0 -11
@@ -1,235 +0,0 @@
1
- ad
2
- ae
3
- af
4
- ag
5
- ai
6
- al
7
- am
8
- an
9
- ao
10
- aq
11
- ar
12
- as
13
- at
14
- au
15
- aw
16
- az
17
- ba
18
- bb
19
- bd
20
- be
21
- bf
22
- bg
23
- bh
24
- bi
25
- bj
26
- bm
27
- bn
28
- bo
29
- br
30
- bs
31
- bt
32
- bv
33
- bw
34
- by
35
- bz
36
- ca
37
- cc
38
- cd
39
- cf
40
- cg
41
- ch
42
- ci
43
- ck
44
- cl
45
- cm
46
- cn
47
- co
48
- cr
49
- cu
50
- cv
51
- cx
52
- cy
53
- cz
54
- de
55
- dj
56
- dk
57
- dm
58
- do
59
- dz
60
- ec
61
- ee
62
- eg
63
- eh
64
- er
65
- es
66
- et
67
- fi
68
- fj
69
- fk
70
- fr
71
- ga
72
- gb
73
- gd
74
- ge
75
- gf
76
- gh
77
- gi
78
- gl
79
- gm
80
- gn
81
- gp
82
- gq
83
- gr
84
- gs
85
- gt
86
- gu
87
- gw
88
- gy
89
- hk
90
- hm
91
- hn
92
- hr
93
- ht
94
- hu
95
- id
96
- ie
97
- il
98
- in
99
- io
100
- iq
101
- ir
102
- is
103
- it
104
- jm
105
- jo
106
- jp
107
- ke
108
- kg
109
- kh
110
- ki
111
- km
112
- kn
113
- kp
114
- kr
115
- kw
116
- ky
117
- kz
118
- la
119
- lb
120
- lc
121
- li
122
- lk
123
- lr
124
- ls
125
- lt
126
- lu
127
- lv
128
- ly
129
- ma
130
- mc
131
- md
132
- mg
133
- mh
134
- mk
135
- ml
136
- mm
137
- mn
138
- mo
139
- mp
140
- mq
141
- mr
142
- ms
143
- mt
144
- mu
145
- mv
146
- mw
147
- mx
148
- my
149
- mz
150
- na
151
- nc
152
- ne
153
- nf
154
- ng
155
- ni
156
- nl
157
- no
158
- np
159
- nr
160
- nu
161
- nz
162
- om
163
- pa
164
- pe
165
- pf
166
- pg
167
- ph
168
- pk
169
- pl
170
- pm
171
- pn
172
- pr
173
- ps
174
- pt
175
- pw
176
- py
177
- qa
178
- re
179
- ro
180
- ru
181
- rw
182
- sa
183
- sb
184
- sc
185
- sd
186
- se
187
- sg
188
- sh
189
- si
190
- sj
191
- sk
192
- sl
193
- sm
194
- sn
195
- so
196
- sr
197
- ss
198
- st
199
- sv
200
- sy
201
- sz
202
- tc
203
- td
204
- tf
205
- tg
206
- th
207
- tj
208
- tk
209
- tl
210
- tm
211
- tn
212
- to
213
- tr
214
- tt
215
- tv
216
- tz
217
- ua
218
- ug
219
- us
220
- uy
221
- uz
222
- va
223
- vc
224
- ve
225
- vg
226
- vi
227
- vn
228
- vu
229
- wf
230
- ws
231
- ye
232
- yt
233
- za
234
- zm
235
- zw