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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6543e0ca764df6ed5698a864b232260e456a0fc3b8e3f82918122e21cdca0c3
4
- data.tar.gz: 989805e58182e1b4ab18b9a16a80a9507465f840bea19840abebe841d628dfa9
3
+ metadata.gz: f1c30912e0060af58725a36b47e41dc1436c90b61f97f75ee4fc598afc28fc61
4
+ data.tar.gz: ad2af9a53b5ba9dcfe8592607619a45c4cdc38019a144e40a87520c1e279f536
5
5
  SHA512:
6
- metadata.gz: 59813d38f00f9c75cbaae7d944f47d50f9e0239f740c468e8718c51345af324f46411e13b2796c5881769a62127345529be92ae374d07082d07e06610e50b62a
7
- data.tar.gz: 131d25e900327ff67b0cd80e17ecc0de83462394d8094cafbed93780ec9b4d472b8e1b95591dc8c894fc8c4f47a8a5a60d31d7fa3c6733210f1b429ca79ff72c
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: 2.4
20
- gemfile: gemfiles/activemodel6.gemfile
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 requires Rails 3.2 or higher. It is tested against Rails 3, 4, 5 and 6 using:
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