valid_email2 3.6.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +6 -0
- data/config/disposable_email_domains.txt +5885 -4
- data/lib/valid_email2/address.rb +31 -21
- data/lib/valid_email2/email_validator.rb +14 -3
- data/lib/valid_email2/version.rb +3 -1
- data/pull_mailchecker_emails.rb +1 -0
- data/spec/valid_email2_spec.rb +5 -0
- data/valid_email2.gemspec +3 -2
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9202aeb3fc3a9c0d76d79287280cd327ee7ce58e6d0186169c710659f16a7d28
|
4
|
+
data.tar.gz: 308d7592fc5ae82e5d7d9d9361651994bb5cb774bb6c3c517e16a792c1cdfcaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 769ec92822cb6e89062e8203008e38bb7a87a4bc56aaffc7cd173927c0511078c3fdf61501997eac00415936ae7342c76e805b5e2228b0df999fee0e7c7c67ef
|
7
|
+
data.tar.gz: 9f642433458c1a7f54ca6ee2631221d072e8cf531e17d98cd370dc1fa45e065b6bda3a14f66df3c974b68ab397c707340224c5ec6956e806f623531fc60ee94c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## Version 4.0.2
|
2
|
+
* Remove false positive (freemail.hu) #187
|
3
|
+
* Pull new domains
|
4
|
+
|
5
|
+
## Version 4.0.1
|
6
|
+
* Remove false positives (onit.com, asics.com)
|
7
|
+
* Pull new domains
|
8
|
+
|
9
|
+
## Version 4.0.0
|
10
|
+
* Support setting a timout for DNS lookups and default to 5 seconds https://github.com/micke/valid_email2/pull/181
|
11
|
+
|
12
|
+
## Version 3.7.0
|
13
|
+
* Support validating arrays https://github.com/micke/valid_email2/pull/178
|
14
|
+
* Pull new domains
|
15
|
+
* Add new domain https://github.com/micke/valid_email2/pull/176
|
16
|
+
|
1
17
|
## Version 3.6.1
|
2
18
|
* Add new domain https://github.com/micke/valid_email2/pull/175
|
3
19
|
* Pull new domains
|
data/README.md
CHANGED
@@ -47,10 +47,16 @@ To validate that the domain has an MX record or A record:
|
|
47
47
|
```ruby
|
48
48
|
validates :email, 'valid_email_2/email': { mx: true }
|
49
49
|
```
|
50
|
+
|
50
51
|
To validate strictly that the domain has an MX record:
|
51
52
|
```ruby
|
52
53
|
validates :email, 'valid_email_2/email': { strict_mx: true }
|
53
54
|
```
|
55
|
+
`strict_mx` and `mx` both default to a 5 second timeout for DNS lookups. To
|
56
|
+
override this timeout, specify a `dns_timeout` option:
|
57
|
+
```ruby
|
58
|
+
validates :email, 'valid_email_2/email': { strict_mx: true, dns_timeout: 10 }
|
59
|
+
```
|
54
60
|
|
55
61
|
To validate that the domain is not a disposable email (checks domain and MX server):
|
56
62
|
```ruby
|