valid_email2 3.7.0 → 4.0.3
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/CHANGELOG.md +15 -0
- data/README.md +6 -0
- data/config/disposable_email_domains.txt +5779 -4
- data/lib/valid_email2/address.rb +4 -1
- data/lib/valid_email2/email_validator.rb +2 -2
- data/lib/valid_email2/version.rb +1 -1
- data/pull_mailchecker_emails.rb +1 -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: 5c7055e6bd78ddf0e1e646f8293a335079314666f4c86980175bd468ab3741b6
|
4
|
+
data.tar.gz: 9208bd39e58497b3f9b9607a5198b2b2cc57a6a232b0cc2d4fe1b432997331e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7627d076aeb78941c6fb8496e384b0ceaef8f5c75923d2459b20772d424fa5fca59f55bce39e56938e891b1943acc1843e23661a038084b61396039c5c80fa83
|
7
|
+
data.tar.gz: 46a63988b61c0cebec0457c640d4815cff81e221918901d9263f86ca4fc4f0031fdf9aee6fa8629f9119ca5482cc5c29b833b05d8d52b932e12e2695180bef17
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## Version 4.0.3
|
2
|
+
* Remove false positive (139.com) #188
|
3
|
+
* Pull new domains
|
4
|
+
|
5
|
+
## Version 4.0.2
|
6
|
+
* Remove false positive (freemail.hu) #187
|
7
|
+
* Pull new domains
|
8
|
+
|
9
|
+
## Version 4.0.1
|
10
|
+
* Remove false positives (onit.com, asics.com)
|
11
|
+
* Pull new domains
|
12
|
+
|
13
|
+
## Version 4.0.0
|
14
|
+
* Support setting a timout for DNS lookups and default to 5 seconds https://github.com/micke/valid_email2/pull/181
|
15
|
+
|
1
16
|
## Version 3.7.0
|
2
17
|
* Support validating arrays https://github.com/micke/valid_email2/pull/178
|
3
18
|
* 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
|