valid_email2 7.0.15 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +2 -7
- data/.gitignore +1 -0
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +30 -0
- data/Gemfile +5 -0
- data/README.md +46 -0
- data/config/disposable_email_domains.txt +15896 -7
- data/lib/valid_email2/address.rb +22 -11
- data/lib/valid_email2/dns.rb +26 -26
- data/lib/valid_email2/email_validator.rb +22 -12
- data/lib/valid_email2/sorted_domain_list.rb +36 -0
- data/lib/valid_email2/version.rb +1 -1
- data/lib/valid_email2.rb +27 -0
- data/pull_mailchecker_emails.rb +2 -0
- data/spec/address_spec.rb +63 -157
- data/spec/benchmark_spec.rb +11 -1
- data/spec/dns_spec.rb +44 -0
- data/spec/sorted_domain_list_spec.rb +17 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/valid_email2_spec.rb +114 -0
- metadata +215 -192
data/spec/dns_spec.rb
CHANGED
|
@@ -18,4 +18,48 @@ describe ValidEmail2::Dns do
|
|
|
18
18
|
expect(records.size).to_not be_zero
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
|
+
|
|
22
|
+
describe "cache" do
|
|
23
|
+
let(:resolv_dns) { instance_double(Resolv::DNS, :timeouts= => nil) }
|
|
24
|
+
let(:mx_record) do
|
|
25
|
+
record = Resolv::DNS::Resource::IN::MX.new(10, Resolv::DNS::Name.create("mx.example.com"))
|
|
26
|
+
record.instance_variable_set(:@ttl, 1_000)
|
|
27
|
+
record
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
before do
|
|
31
|
+
allow(Resolv::DNS).to receive(:open).and_yield(resolv_dns)
|
|
32
|
+
allow(resolv_dns).to receive(:getresources).and_return([mx_record])
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
after do
|
|
36
|
+
described_class.cache_size = described_class::DEFAULT_CACHE_SIZE_BYTES
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
it "keeps lookups that fit into the cache" do
|
|
40
|
+
described_class.cache_size = 1024
|
|
41
|
+
|
|
42
|
+
2.times { described_class.new.mx_servers("example.com") }
|
|
43
|
+
|
|
44
|
+
expect(Resolv::DNS).to have_received(:open).once
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
it "evicts lookups once the cache grows past the configured size" do
|
|
48
|
+
described_class.cache_size = 1
|
|
49
|
+
|
|
50
|
+
2.times { described_class.new.mx_servers("example.com") }
|
|
51
|
+
|
|
52
|
+
expect(Resolv::DNS).to have_received(:open).twice
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
it "looks up records that can't be cached, such as test doubles, every time" do
|
|
56
|
+
mx_double = double("MX", exchange: "mx.example.com", preference: 10, ttl: 1_000)
|
|
57
|
+
allow(resolv_dns).to receive(:getresources).and_return([mx_double])
|
|
58
|
+
|
|
59
|
+
results = Array.new(2) { described_class.new.mx_servers("example.com") }
|
|
60
|
+
|
|
61
|
+
expect(results).to eq([[mx_double], [mx_double]])
|
|
62
|
+
expect(Resolv::DNS).to have_received(:open).twice
|
|
63
|
+
end
|
|
64
|
+
end
|
|
21
65
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "spec_helper"
|
|
4
|
+
|
|
5
|
+
describe ValidEmail2::SortedDomainList do
|
|
6
|
+
let(:domains) { File.readlines(ValidEmail2::DISPOSABLE_FILE, chomp: true) }
|
|
7
|
+
let(:list) { described_class.new(ValidEmail2::DISPOSABLE_FILE) }
|
|
8
|
+
|
|
9
|
+
# The bisection relies on it; pull_mailchecker_emails.rb writes it so.
|
|
10
|
+
it "searches a sorted file without duplicates" do
|
|
11
|
+
expect(domains.each_cons(2).all? { |a, b| a.b < b.b }).to be(true)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it "finds no domain missing from the file" do
|
|
15
|
+
expect(%w[gmail.com example.com 0 zzzzzzzzzz.zz].select { |domain| list.include?(domain) }).to be_empty
|
|
16
|
+
end
|
|
17
|
+
end
|
data/spec/spec_helper.rb
CHANGED
data/spec/valid_email2_spec.rb
CHANGED
|
@@ -7,6 +7,10 @@ class TestUser < TestModel
|
|
|
7
7
|
validates :email, 'valid_email_2/email': true
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
+
class TestUserSpecificErrorMessage < TestModel
|
|
11
|
+
validates :email, 'valid_email_2/email': { disallow_dotted: true, specific_error_messages: true }
|
|
12
|
+
end
|
|
13
|
+
|
|
10
14
|
class TestUserDotted < TestModel
|
|
11
15
|
validates :email, 'valid_email_2/email': { disallow_dotted: true }
|
|
12
16
|
end
|
|
@@ -171,6 +175,48 @@ describe ValidEmail2 do
|
|
|
171
175
|
user = TestUser.new(email: "foo@example.com#")
|
|
172
176
|
expect(user.valid?).to be_falsey
|
|
173
177
|
end
|
|
178
|
+
|
|
179
|
+
describe "domain label structure" do
|
|
180
|
+
# A domain label may not begin or end with a hyphen and is limited to 63
|
|
181
|
+
# octets; the whole domain is limited to 253. These rules apply to every
|
|
182
|
+
# label, not only the first/last position of the domain string.
|
|
183
|
+
long_label = "a" * 64
|
|
184
|
+
long_domain = (["aa"] + ["a"] * 126).join(".") # 254 chars, all-valid labels
|
|
185
|
+
|
|
186
|
+
{
|
|
187
|
+
"a leading hyphen on the first label" => "foo@-example.com",
|
|
188
|
+
"a leading hyphen on a later label" => "foo@sub.-example.com",
|
|
189
|
+
"a leading hyphen on a deeply nested label" => "foo@a.b.-c.example.com",
|
|
190
|
+
"a trailing hyphen on a non-final label" => "foo@example-.com",
|
|
191
|
+
"a trailing hyphen on the final label" => "foo@example.com-",
|
|
192
|
+
"a bare hyphen label" => "foo@example.-.com",
|
|
193
|
+
"a label longer than 63 octets" => "foo@#{long_label}.com",
|
|
194
|
+
"a later label longer than 63 octets" => "foo@example.#{long_label}.com",
|
|
195
|
+
"a domain longer than 253 octets" => "foo@#{long_domain}"
|
|
196
|
+
}.each do |description, email|
|
|
197
|
+
it "is invalid with #{description}" do
|
|
198
|
+
expect(TestUser.new(email: email).valid?).to be_falsey
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
full_label = "a" * 63
|
|
203
|
+
max_domain = (["a"] * 127).join(".") # exactly 253 chars
|
|
204
|
+
|
|
205
|
+
{
|
|
206
|
+
"an internal hyphen" => "foo@ex-ample.com",
|
|
207
|
+
"hyphens on several internal labels" => "foo@f-o-o.example.com",
|
|
208
|
+
"a double internal hyphen" => "foo@a--b.example.com",
|
|
209
|
+
"a punycode (IDNA ACE) label" => "foo@xn--bcher-kva.com",
|
|
210
|
+
"a label beginning with a digit" => "foo@3m.com",
|
|
211
|
+
"a 63 octet label at the limit" => "foo@#{full_label}.com",
|
|
212
|
+
"a later 63 octet label" => "foo@example.#{full_label}.com",
|
|
213
|
+
"a domain at the 253 octet limit" => "foo@#{max_domain}"
|
|
214
|
+
}.each do |description, email|
|
|
215
|
+
it "is valid with #{description}" do
|
|
216
|
+
expect(TestUser.new(email: email).valid?).to be_truthy
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
end
|
|
174
220
|
end
|
|
175
221
|
|
|
176
222
|
describe "with disposable validation" do
|
|
@@ -251,6 +297,14 @@ describe ValidEmail2 do
|
|
|
251
297
|
expect(user.valid?).to be_truthy
|
|
252
298
|
end
|
|
253
299
|
|
|
300
|
+
it "does not look up MX servers if the domain is in the allow list" do
|
|
301
|
+
File.open(allow_list_file_path, "w") { |f| f.write ["gmail.com"].to_yaml }
|
|
302
|
+
set_allow_list
|
|
303
|
+
expect_any_instance_of(ValidEmail2::Dns).not_to receive(:mx_servers)
|
|
304
|
+
user = TestUserDisallowDisposableWithAllowList.new(email: "foo@gmail.com")
|
|
305
|
+
expect(user.valid?).to be_truthy
|
|
306
|
+
end
|
|
307
|
+
|
|
254
308
|
it "is invalid if the domain is a disposable_domain and not in the allow list" do
|
|
255
309
|
user = TestUserDisallowDisposableDomainWithAllowList.new(email: "foo@#{allow_list_domain}")
|
|
256
310
|
expect(user.valid?).to be_falsey
|
|
@@ -265,6 +319,41 @@ describe ValidEmail2 do
|
|
|
265
319
|
end
|
|
266
320
|
end
|
|
267
321
|
|
|
322
|
+
describe ".disposable_domains" do
|
|
323
|
+
it "uses the Set of disposable_emails by default" do
|
|
324
|
+
expect(ValidEmail2.disposable_domains).to be(ValidEmail2.disposable_emails)
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
it "rejects an unknown lookup" do
|
|
328
|
+
expect { ValidEmail2.disposable_domains_lookup = :array }.to raise_error(ArgumentError, /got array/)
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
context "with the sorted_list lookup" do
|
|
332
|
+
around do |example|
|
|
333
|
+
loaded = ValidEmail2.instance_variable_get(:@disposable_emails)
|
|
334
|
+
ValidEmail2.instance_variable_set(:@disposable_emails, nil)
|
|
335
|
+
ValidEmail2.disposable_domains_lookup = :sorted_list
|
|
336
|
+
example.run
|
|
337
|
+
ensure
|
|
338
|
+
ValidEmail2.disposable_domains_lookup = :set
|
|
339
|
+
ValidEmail2.instance_variable_set(:@disposable_emails, loaded)
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
it "checks a disposable domain without loading the Set of disposable_emails" do
|
|
343
|
+
expect(ValidEmail2::Address.new("foo@mailinator.com").disposable_domain?).to be(true)
|
|
344
|
+
expect(ValidEmail2.instance_variable_get(:@disposable_emails)).to be_nil
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
it "has all entries from the other list" do
|
|
348
|
+
disposable_domains = ValidEmail2.disposable_domains
|
|
349
|
+
disposable_emails = ValidEmail2.disposable_emails
|
|
350
|
+
expect(disposable_domains).to be_a(ValidEmail2::SortedDomainList)
|
|
351
|
+
expect(disposable_emails).to be_a(Set)
|
|
352
|
+
expect(disposable_emails.reject { |domain| disposable_domains.include?(domain) }).to be_empty
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
|
|
268
357
|
describe "with deny list validation" do
|
|
269
358
|
it "is valid if the domain is not deny-listed" do
|
|
270
359
|
user = TestUserDisallowDenyListed.new(email: "foo@gmail.com")
|
|
@@ -418,6 +507,7 @@ describe ValidEmail2 do
|
|
|
418
507
|
it "is invalid when address cotains dots" do
|
|
419
508
|
user = TestUserDotted.new(email: "john.doe@gmail.com")
|
|
420
509
|
expect(user.valid?).to be_falsey
|
|
510
|
+
expect(user.errors.full_messages).to include("Email is invalid")
|
|
421
511
|
end
|
|
422
512
|
end
|
|
423
513
|
|
|
@@ -433,6 +523,30 @@ describe ValidEmail2 do
|
|
|
433
523
|
end
|
|
434
524
|
end
|
|
435
525
|
|
|
526
|
+
context "when detail error messages are enabled" do
|
|
527
|
+
describe "with custom error message" do
|
|
528
|
+
it "supports settings a custom error message" do
|
|
529
|
+
with_translations(:en, { errors: { messages: { disallow_dotted: "dotted message" } } }) do
|
|
530
|
+
user = TestUserSpecificErrorMessage.new(email: "john.doe@gmail.com")
|
|
531
|
+
user.valid?
|
|
532
|
+
|
|
533
|
+
expect(user.errors.full_messages).to include("Email dotted message")
|
|
534
|
+
end
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
def with_translations(locale, translations)
|
|
540
|
+
original_backend = I18n.backend
|
|
541
|
+
|
|
542
|
+
I18n.backend = I18n::Backend::KeyValue.new({}, true)
|
|
543
|
+
I18n.backend.store_translations locale, translations
|
|
544
|
+
|
|
545
|
+
yield
|
|
546
|
+
ensure
|
|
547
|
+
I18n.backend = original_backend
|
|
548
|
+
end
|
|
549
|
+
|
|
436
550
|
context "when message is present" do
|
|
437
551
|
describe "with custom error message" do
|
|
438
552
|
it "supports settings a custom error message" do
|
metadata
CHANGED
|
@@ -1,217 +1,240 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: valid_email2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.0
|
|
4
|
+
version: 7.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Micke Lisinge
|
|
7
|
+
- Micke Lisinge
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
-
- !ruby/object:Gem::Dependency
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- !ruby/object:Gem::
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
- !ruby/object:Gem::
|
|
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
|
-
- !ruby/object:Gem::Dependency
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
- !ruby/object:Gem::
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: bundler
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ">"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: "2.0"
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ">"
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: "2.0"
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: rake
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
-
|
|
33
|
+
- ">"
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: "12.3"
|
|
36
|
+
type: :development
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
-
|
|
41
|
+
- ">"
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "12.3"
|
|
44
|
+
- !ruby/object:Gem::Dependency
|
|
45
|
+
name: securerandom
|
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
-
|
|
49
|
+
- "="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: 0.3.1
|
|
52
|
+
type: :development
|
|
53
|
+
prerelease: false
|
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
-
|
|
57
|
+
- "="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: 0.3.1
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: rspec
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
-
|
|
65
|
+
- ~>
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: "3.5"
|
|
68
|
+
type: :development
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
-
|
|
73
|
+
- ~>
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: "3.5"
|
|
76
|
+
- !ruby/object:Gem::Dependency
|
|
77
|
+
name: rspec-benchmark
|
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
-
|
|
81
|
+
- ~>
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: "0.6"
|
|
84
|
+
type: :development
|
|
85
|
+
prerelease: false
|
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
-
|
|
89
|
+
- ~>
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: "0.6"
|
|
92
|
+
- !ruby/object:Gem::Dependency
|
|
93
|
+
name: net-smtp
|
|
94
|
+
requirement: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
-
|
|
97
|
+
- ">="
|
|
98
|
+
- !ruby/object:Gem::Version
|
|
99
|
+
version: "0"
|
|
100
|
+
type: :development
|
|
101
|
+
prerelease: false
|
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
103
|
+
requirements:
|
|
104
|
+
-
|
|
105
|
+
- ">="
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: "0"
|
|
108
|
+
- !ruby/object:Gem::Dependency
|
|
109
|
+
name: debug
|
|
110
|
+
requirement: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
-
|
|
113
|
+
- ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: "0"
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
-
|
|
121
|
+
- ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: "0"
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: rubocop
|
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
-
|
|
129
|
+
- ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: "0"
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
-
|
|
137
|
+
- ">="
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: "0"
|
|
140
|
+
- !ruby/object:Gem::Dependency
|
|
141
|
+
name: mail
|
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
|
143
|
+
requirements:
|
|
144
|
+
-
|
|
145
|
+
- ~>
|
|
146
|
+
- !ruby/object:Gem::Version
|
|
147
|
+
version: "2.5"
|
|
148
|
+
type: :runtime
|
|
149
|
+
prerelease: false
|
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
151
|
+
requirements:
|
|
152
|
+
-
|
|
153
|
+
- ~>
|
|
154
|
+
- !ruby/object:Gem::Version
|
|
155
|
+
version: "2.5"
|
|
156
|
+
- !ruby/object:Gem::Dependency
|
|
157
|
+
name: activemodel
|
|
158
|
+
requirement: !ruby/object:Gem::Requirement
|
|
159
|
+
requirements:
|
|
160
|
+
-
|
|
161
|
+
- ">="
|
|
162
|
+
- !ruby/object:Gem::Version
|
|
163
|
+
version: "6.0"
|
|
164
|
+
type: :runtime
|
|
165
|
+
prerelease: false
|
|
166
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
167
|
+
requirements:
|
|
168
|
+
-
|
|
169
|
+
- ">="
|
|
170
|
+
- !ruby/object:Gem::Version
|
|
171
|
+
version: "6.0"
|
|
172
|
+
description: ActiveModel validation for email. Including MX lookup and disposable email deny list
|
|
154
173
|
email:
|
|
155
|
-
- hi@micke.me
|
|
174
|
+
- hi@micke.me
|
|
156
175
|
executables: []
|
|
157
176
|
extensions: []
|
|
158
177
|
extra_rdoc_files: []
|
|
159
178
|
files:
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
-
|
|
166
|
-
-
|
|
167
|
-
- CHANGELOG.md
|
|
168
|
-
- Gemfile
|
|
169
|
-
- LICENSE.txt
|
|
170
|
-
- README.md
|
|
171
|
-
- Rakefile
|
|
172
|
-
- config/deny_listed_email_domains.yml
|
|
173
|
-
- config/disposable_email_domains.txt
|
|
174
|
-
- gemfiles/activemodel6.gemfile
|
|
175
|
-
- gemfiles/activemodel7.gemfile
|
|
176
|
-
- gemfiles/activemodel8.gemfile
|
|
177
|
-
- lib/valid_email2.rb
|
|
178
|
-
- lib/valid_email2/address.rb
|
|
179
|
-
- lib/valid_email2/dns.rb
|
|
180
|
-
- lib/valid_email2/email_validator.rb
|
|
181
|
-
- lib/valid_email2/
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
- spec/
|
|
186
|
-
- spec/
|
|
187
|
-
- spec/
|
|
188
|
-
- spec/
|
|
189
|
-
-
|
|
190
|
-
|
|
179
|
+
- .github/workflows/ci.yaml
|
|
180
|
+
- .github/workflows/release.yaml
|
|
181
|
+
- .gitignore
|
|
182
|
+
- .release-please-manifest.json
|
|
183
|
+
- .rubocop.yml
|
|
184
|
+
- .rubocop_todo.yml
|
|
185
|
+
- .ruby-version
|
|
186
|
+
- CHANGELOG.md
|
|
187
|
+
- Gemfile
|
|
188
|
+
- LICENSE.txt
|
|
189
|
+
- README.md
|
|
190
|
+
- Rakefile
|
|
191
|
+
- config/deny_listed_email_domains.yml
|
|
192
|
+
- config/disposable_email_domains.txt
|
|
193
|
+
- gemfiles/activemodel6.gemfile
|
|
194
|
+
- gemfiles/activemodel7.gemfile
|
|
195
|
+
- gemfiles/activemodel8.gemfile
|
|
196
|
+
- lib/valid_email2.rb
|
|
197
|
+
- lib/valid_email2/address.rb
|
|
198
|
+
- lib/valid_email2/dns.rb
|
|
199
|
+
- lib/valid_email2/email_validator.rb
|
|
200
|
+
- lib/valid_email2/sorted_domain_list.rb
|
|
201
|
+
- lib/valid_email2/version.rb
|
|
202
|
+
- pull_mailchecker_emails.rb
|
|
203
|
+
- release-please-config.json
|
|
204
|
+
- spec/address_spec.rb
|
|
205
|
+
- spec/benchmark_spec.rb
|
|
206
|
+
- spec/dns_spec.rb
|
|
207
|
+
- spec/sorted_domain_list_spec.rb
|
|
208
|
+
- spec/spec_helper.rb
|
|
209
|
+
- spec/valid_email2_spec.rb
|
|
210
|
+
- valid_email2.gemspec
|
|
211
|
+
homepage: "https://github.com/micke/valid_email2"
|
|
191
212
|
licenses:
|
|
192
|
-
- MIT
|
|
213
|
+
- MIT
|
|
193
214
|
metadata: {}
|
|
194
215
|
rdoc_options: []
|
|
195
216
|
require_paths:
|
|
196
|
-
- lib
|
|
217
|
+
- lib
|
|
197
218
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
219
|
requirements:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
220
|
+
-
|
|
221
|
+
- ">="
|
|
222
|
+
- !ruby/object:Gem::Version
|
|
223
|
+
version: 3.1.0
|
|
202
224
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
225
|
requirements:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
226
|
+
-
|
|
227
|
+
- ">="
|
|
228
|
+
- !ruby/object:Gem::Version
|
|
229
|
+
version: "0"
|
|
207
230
|
requirements: []
|
|
208
|
-
rubygems_version: 4.0
|
|
231
|
+
rubygems_version: 4.1.0
|
|
209
232
|
specification_version: 4
|
|
210
|
-
summary: ActiveModel validation for email. Including MX lookup and disposable email
|
|
211
|
-
deny list
|
|
233
|
+
summary: ActiveModel validation for email. Including MX lookup and disposable email deny list
|
|
212
234
|
test_files:
|
|
213
|
-
- spec/address_spec.rb
|
|
214
|
-
- spec/benchmark_spec.rb
|
|
215
|
-
- spec/dns_spec.rb
|
|
216
|
-
- spec/
|
|
217
|
-
- spec/
|
|
235
|
+
- spec/address_spec.rb
|
|
236
|
+
- spec/benchmark_spec.rb
|
|
237
|
+
- spec/dns_spec.rb
|
|
238
|
+
- spec/sorted_domain_list_spec.rb
|
|
239
|
+
- spec/spec_helper.rb
|
|
240
|
+
- spec/valid_email2_spec.rb
|