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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cb2c121fd6702c7060c30c6b79be1bd4f08c40ed94f06aa3f360c333b28a5d6
4
- data.tar.gz: '09ed3d5c345731baaf90bda8bf5fca432c753277cdd909e19e58feef7525f404'
3
+ metadata.gz: 5c7055e6bd78ddf0e1e646f8293a335079314666f4c86980175bd468ab3741b6
4
+ data.tar.gz: 9208bd39e58497b3f9b9607a5198b2b2cc57a6a232b0cc2d4fe1b432997331e2
5
5
  SHA512:
6
- metadata.gz: 6718851acadedad38dd94c423a9fe84b71469fd9ee14b97687b4400f36edc7f31eeeb2fe63b973a3e451f6bcb3f8fda32f448571d1590e0b23319a78fcff3b7e
7
- data.tar.gz: f794802a5e7e4ee12a5c840e900d167e6d7ccaf3cefce4eaa285cf6b4d3fc100f364c37ebd9a00f4ab9368444745d0bc72e8237e3372f69145c5a471478a6f47
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