valid_email2 3.6.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -5
- data/CHANGELOG.md +16 -0
- data/README.md +8 -2
- data/config/disposable_email_domains.txt +3059 -2
- 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
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1c30912e0060af58725a36b47e41dc1436c90b61f97f75ee4fc598afc28fc61
|
4
|
+
data.tar.gz: ad2af9a53b5ba9dcfe8592607619a45c4cdc38019a144e40a87520c1e279f536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807a53709728f9674022e16fa77e86245de28f684b5731e13a707539b4e5cf1a7534f5242aca7b1f31498912958863e79bcd9f9fad4a8c4945e576434e443a34
|
7
|
+
data.tar.gz: 1edb0bfc2a755459ff28d4918eaddf16856b3f3f62bed7099bcca7a0dd037f07a1600fa0935124dfaef4a5a622cf41012ec4a7b383baa9ffb8fd2e6497bd57f4
|
data/.travis.yml
CHANGED
@@ -3,21 +3,19 @@ language: ruby
|
|
3
3
|
sudo: false
|
4
4
|
|
5
5
|
rvm:
|
6
|
+
- 3.0
|
6
7
|
- 2.7
|
7
8
|
- 2.6
|
8
9
|
- 2.5
|
9
|
-
- 2.4
|
10
10
|
|
11
11
|
gemfile:
|
12
|
-
- gemfiles/activemodel3.gemfile
|
13
|
-
- gemfiles/activemodel4.gemfile
|
14
12
|
- gemfiles/activemodel5.gemfile
|
15
13
|
- gemfiles/activemodel6.gemfile
|
16
14
|
|
17
15
|
jobs:
|
18
16
|
exclude:
|
19
|
-
- rvm:
|
20
|
-
gemfile: gemfiles/
|
17
|
+
- rvm: 3.0
|
18
|
+
gemfile: gemfiles/activemodel5.gemfile
|
21
19
|
|
22
20
|
before_install:
|
23
21
|
- gem install bundler
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## Version 4.0.1
|
2
|
+
* Remove false positives (onit.com, asics.com)
|
3
|
+
* Pull new domains
|
4
|
+
|
5
|
+
## Version 4.0.0
|
6
|
+
* Support setting a timout for DNS lookups and default to 5 seconds https://github.com/micke/valid_email2/pull/181
|
7
|
+
|
8
|
+
## Version 3.7.0
|
9
|
+
* Support validating arrays https://github.com/micke/valid_email2/pull/178
|
10
|
+
* Pull new domains
|
11
|
+
* Add new domain https://github.com/micke/valid_email2/pull/176
|
12
|
+
|
13
|
+
## Version 3.6.1
|
14
|
+
* Add new domain https://github.com/micke/valid_email2/pull/175
|
15
|
+
* Pull new domains
|
16
|
+
|
1
17
|
## Version 3.6.0
|
2
18
|
* Add strict_mx validation https://github.com/micke/valid_email2/pull/173
|
3
19
|
|
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
|
@@ -140,11 +146,11 @@ end
|
|
140
146
|
|
141
147
|
## Requirements
|
142
148
|
|
143
|
-
This gem
|
144
|
-
* Ruby-2.4
|
149
|
+
This gem should work with Rails 3.2 or higher. It is tested against Rails 5 and 6 using:
|
145
150
|
* Ruby-2.5
|
146
151
|
* Ruby-2.6
|
147
152
|
* Ruby-2.7
|
153
|
+
* Ruby-3.0
|
148
154
|
|
149
155
|
## Upgrading to v3.0.0
|
150
156
|
|