validators 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +12 -68
- data/.travis.yml +7 -7
- data/Rakefile +1 -1
- data/bin/sync-disposable-hostnames +2 -1
- data/bin/sync-tld +1 -0
- data/data/disposable.json +23606 -17
- data/data/tld.json +3 -18
- data/lib/validators/version.rb +1 -1
- data/test/test_helper.rb +4 -2
- data/validators.gemspec +2 -2
- metadata +20 -6
data/data/tld.json
CHANGED
@@ -152,7 +152,6 @@
|
|
152
152
|
"bms",
|
153
153
|
"bmw",
|
154
154
|
"bn",
|
155
|
-
"bnl",
|
156
155
|
"bnpparibas",
|
157
156
|
"bo",
|
158
157
|
"boats",
|
@@ -211,7 +210,6 @@
|
|
211
210
|
"career",
|
212
211
|
"careers",
|
213
212
|
"cars",
|
214
|
-
"cartier",
|
215
213
|
"casa",
|
216
214
|
"case",
|
217
215
|
"caseih",
|
@@ -244,7 +242,6 @@
|
|
244
242
|
"chintai",
|
245
243
|
"christmas",
|
246
244
|
"chrome",
|
247
|
-
"chrysler",
|
248
245
|
"church",
|
249
246
|
"ci",
|
250
247
|
"cipriani",
|
@@ -296,6 +293,7 @@
|
|
296
293
|
"coupon",
|
297
294
|
"coupons",
|
298
295
|
"courses",
|
296
|
+
"cpa",
|
299
297
|
"cr",
|
300
298
|
"credit",
|
301
299
|
"creditcard",
|
@@ -357,9 +355,7 @@
|
|
357
355
|
"do",
|
358
356
|
"docs",
|
359
357
|
"doctor",
|
360
|
-
"dodge",
|
361
358
|
"dog",
|
362
|
-
"doha",
|
363
359
|
"domains",
|
364
360
|
"dot",
|
365
361
|
"download",
|
@@ -368,7 +364,6 @@
|
|
368
364
|
"dubai",
|
369
365
|
"duck",
|
370
366
|
"dunlop",
|
371
|
-
"duns",
|
372
367
|
"dupont",
|
373
368
|
"durban",
|
374
369
|
"dvag",
|
@@ -404,7 +399,6 @@
|
|
404
399
|
"eurovision",
|
405
400
|
"eus",
|
406
401
|
"events",
|
407
|
-
"everbank",
|
408
402
|
"exchange",
|
409
403
|
"expert",
|
410
404
|
"exposed",
|
@@ -484,6 +478,7 @@
|
|
484
478
|
"games",
|
485
479
|
"gap",
|
486
480
|
"garden",
|
481
|
+
"gay",
|
487
482
|
"gb",
|
488
483
|
"gbiz",
|
489
484
|
"gd",
|
@@ -576,7 +571,6 @@
|
|
576
571
|
"homes",
|
577
572
|
"homesense",
|
578
573
|
"honda",
|
579
|
-
"honeywell",
|
580
574
|
"horse",
|
581
575
|
"hospital",
|
582
576
|
"host",
|
@@ -630,7 +624,6 @@
|
|
630
624
|
"ir",
|
631
625
|
"irish",
|
632
626
|
"is",
|
633
|
-
"iselect",
|
634
627
|
"ismaili",
|
635
628
|
"ist",
|
636
629
|
"istanbul",
|
@@ -695,7 +688,6 @@
|
|
695
688
|
"kz",
|
696
689
|
"la",
|
697
690
|
"lacaixa",
|
698
|
-
"ladbrokes",
|
699
691
|
"lamborghini",
|
700
692
|
"lamer",
|
701
693
|
"lancaster",
|
@@ -815,7 +807,6 @@
|
|
815
807
|
"mo",
|
816
808
|
"mobi",
|
817
809
|
"mobile",
|
818
|
-
"mobily",
|
819
810
|
"moda",
|
820
811
|
"moe",
|
821
812
|
"moi",
|
@@ -823,7 +814,6 @@
|
|
823
814
|
"monash",
|
824
815
|
"money",
|
825
816
|
"monster",
|
826
|
-
"mopar",
|
827
817
|
"mormon",
|
828
818
|
"mortgage",
|
829
819
|
"moscow",
|
@@ -951,7 +941,6 @@
|
|
951
941
|
"photography",
|
952
942
|
"photos",
|
953
943
|
"physio",
|
954
|
-
"piaget",
|
955
944
|
"pics",
|
956
945
|
"pictet",
|
957
946
|
"pictures",
|
@@ -1153,13 +1142,11 @@
|
|
1153
1142
|
"spreadbetting",
|
1154
1143
|
"sr",
|
1155
1144
|
"srl",
|
1156
|
-
"srt",
|
1157
1145
|
"ss",
|
1158
1146
|
"st",
|
1159
1147
|
"stada",
|
1160
1148
|
"staples",
|
1161
1149
|
"star",
|
1162
|
-
"starhub",
|
1163
1150
|
"statebank",
|
1164
1151
|
"statefarm",
|
1165
1152
|
"stc",
|
@@ -1267,7 +1254,6 @@
|
|
1267
1254
|
"ua",
|
1268
1255
|
"ubank",
|
1269
1256
|
"ubs",
|
1270
|
-
"uconnect",
|
1271
1257
|
"ug",
|
1272
1258
|
"uk",
|
1273
1259
|
"unicom",
|
@@ -1320,7 +1306,6 @@
|
|
1320
1306
|
"walter",
|
1321
1307
|
"wang",
|
1322
1308
|
"wanggou",
|
1323
|
-
"warman",
|
1324
1309
|
"watch",
|
1325
1310
|
"watches",
|
1326
1311
|
"weather",
|
@@ -1451,7 +1436,6 @@
|
|
1451
1436
|
"xn--mgbah1a3hjkrd",
|
1452
1437
|
"xn--mgbai9azgqp6j",
|
1453
1438
|
"xn--mgbayh7gpa",
|
1454
|
-
"xn--mgbb9fbpob",
|
1455
1439
|
"xn--mgbbh1a",
|
1456
1440
|
"xn--mgbbh1a71e",
|
1457
1441
|
"xn--mgbc0a9azcg",
|
@@ -1483,6 +1467,7 @@
|
|
1483
1467
|
"xn--pssy2u",
|
1484
1468
|
"xn--q9jyb4c",
|
1485
1469
|
"xn--qcka1pmc",
|
1470
|
+
"xn--qxa6a",
|
1486
1471
|
"xn--qxam",
|
1487
1472
|
"xn--rhqv96g",
|
1488
1473
|
"xn--rovu88b",
|
data/lib/validators/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -43,11 +43,13 @@ module Minitest
|
|
43
43
|
Time.zone = "America/Sao_Paulo"
|
44
44
|
|
45
45
|
ActiveRecord::Base.descendants.each do |model|
|
46
|
-
next if %w[ActiveRecord::InternalMetadata ActiveRecord::SchemaMigration].include?(model.name)
|
46
|
+
next if %w[ActiveRecord::InternalMetadata ActiveRecord::SchemaMigration primary::SchemaMigration].include?(model.name)
|
47
47
|
|
48
48
|
model.delete_all
|
49
49
|
|
50
|
-
Object.class_eval
|
50
|
+
Object.class_eval do
|
51
|
+
remove_const model.name if const_defined?(model.name)
|
52
|
+
end
|
51
53
|
end
|
52
54
|
|
53
55
|
load File.join(__dir__, "support/models.rb")
|
data/validators.gemspec
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
require_relative "lib/validators/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.required_ruby_version = ">= 2.4"
|
7
6
|
s.name = "validators"
|
8
7
|
s.version = Validators::Version::STRING
|
9
8
|
s.platform = Gem::Platform::RUBY
|
@@ -26,8 +25,9 @@ Gem::Specification.new do |s|
|
|
26
25
|
s.add_development_dependency "pry-meta"
|
27
26
|
s.add_development_dependency "rake"
|
28
27
|
s.add_development_dependency "rubocop"
|
28
|
+
s.add_development_dependency "rubocop-fnando"
|
29
29
|
s.add_development_dependency "simplecov"
|
30
30
|
s.add_development_dependency "simplecov-console"
|
31
|
-
s.add_development_dependency "sqlite3", "~> 1.
|
31
|
+
s.add_development_dependency "sqlite3", "~> 1.4"
|
32
32
|
s.add_development_dependency "sshkey"
|
33
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-fnando
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: simplecov
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +156,14 @@ dependencies:
|
|
142
156
|
requirements:
|
143
157
|
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
159
|
+
version: '1.4'
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
166
|
+
version: '1.4'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: sshkey
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -243,14 +257,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
243
257
|
requirements:
|
244
258
|
- - ">="
|
245
259
|
- !ruby/object:Gem::Version
|
246
|
-
version: '
|
260
|
+
version: '0'
|
247
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
262
|
requirements:
|
249
263
|
- - ">="
|
250
264
|
- !ruby/object:Gem::Version
|
251
265
|
version: '0'
|
252
266
|
requirements: []
|
253
|
-
rubygems_version: 3.0.
|
267
|
+
rubygems_version: 3.0.3
|
254
268
|
signing_key:
|
255
269
|
specification_version: 4
|
256
270
|
summary: Add some nice ActiveModel/ActiveRecord validators.
|