valid_email2 4.0.1 → 4.0.4

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: f1c30912e0060af58725a36b47e41dc1436c90b61f97f75ee4fc598afc28fc61
4
- data.tar.gz: ad2af9a53b5ba9dcfe8592607619a45c4cdc38019a144e40a87520c1e279f536
3
+ metadata.gz: 77cf14bcbfa5382570395a627f9d20a51b4806d8bf5f962678cf9e2fafb825d1
4
+ data.tar.gz: 4a2bcbbc3bb9bfa7c7a1cddad54759b9b9ffc8aa314ff0fd21e314fb838eec28
5
5
  SHA512:
6
- metadata.gz: 807a53709728f9674022e16fa77e86245de28f684b5731e13a707539b4e5cf1a7534f5242aca7b1f31498912958863e79bcd9f9fad4a8c4945e576434e443a34
7
- data.tar.gz: 1edb0bfc2a755459ff28d4918eaddf16856b3f3f62bed7099bcca7a0dd037f07a1600fa0935124dfaef4a5a622cf41012ec4a7b383baa9ffb8fd2e6497bd57f4
6
+ metadata.gz: e87d23b3f2c7f8a81b135b139d337e80cf07fe4320f4a8accc7ca62abfe5de53b18e7246237ae7923244b2179d6f20a16c732045458f1c0a8768ca375b2071f9
7
+ data.tar.gz: fa557df498de2cecd4aa760c649776b921fd0484eb3eb1309e07c4525c161a7b15fcd1a09e830e5cd5d381882600f865147544c8cb54884fa75a8d544970d295
@@ -0,0 +1,28 @@
1
+ name: CI
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ gemfile: [ activemodel5, activemodel6, activemodel7 ]
9
+ ruby: [2.5, 2.6, 2.7, "3.0", 3.1]
10
+ exclude:
11
+ - gemfile: activemodel7
12
+ ruby: 2.5
13
+ - gemfile: activemodel7
14
+ ruby: 2.6
15
+ - gemfile: activemodel5
16
+ ruby: "3.0"
17
+ - gemfile: activemodel5
18
+ ruby: 3.1
19
+ runs-on: ubuntu-latest
20
+ env:
21
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
22
+ steps:
23
+ - uses: actions/checkout@v2
24
+ - uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{ matrix.ruby }}
27
+ bundler-cache: true
28
+ - run: bundle exec rake
data/.gitignore CHANGED
@@ -5,6 +5,7 @@
5
5
  .config
6
6
  .yardoc
7
7
  Gemfile.lock
8
+ gemfiles/*.gemfile.lock
8
9
  InstalledFiles
9
10
  _yardoc
10
11
  coverage
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## Version 4.0.4
2
+ * Add new domains https://github.com/micke/valid_email2/pull/196
3
+ * Pull new domains
4
+
5
+ ## Version 4.0.3
6
+ * Remove false positive (139.com) #188
7
+ * Pull new domains
8
+
9
+ ## Version 4.0.2
10
+ * Remove false positive (freemail.hu) #187
11
+ * Pull new domains
12
+
1
13
  ## Version 4.0.1
2
14
  * Remove false positives (onit.com, asics.com)
3
15
  * Pull new domains
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  # ValidEmail2
2
- [![Build Status](https://travis-ci.org/micke/valid_email2.svg?branch=master)](https://travis-ci.org/micke/valid_email2)
3
2
  [![Gem Version](https://badge.fury.io/rb/valid_email2.png)](http://badge.fury.io/rb/valid_email2)
4
3
 
5
4
  Validate emails with the help of the `mail` gem instead of some clunky regexp.
@@ -130,27 +129,17 @@ It is a good idea to stub out that validation in your test environment.
130
129
  Do so by adding this in your `spec_helper`:
131
130
  ```ruby
132
131
  config.before(:each) do
133
- allow_any_instance_of(ValidEmail2::Address).to receive(:valid_mx?).and_return(true)
134
- allow_any_instance_of(ValidEmail2::Address).to receive(:valid_strict_mx?).and_return(true)
135
- end
136
- ```
137
-
138
- Validating `disposable` e-mails triggers a `mx` validation alongside checking if
139
- the domain is disposable. The above stub does not apply to the `disposable`
140
- validation and should therefore be individually stubbed with:
141
- ```ruby
142
- config.before(:each) do
143
- allow_any_instance_of(ValidEmail2::Address).to receive(:mx_server_is_in?).and_return(false)
132
+ allow_any_instance_of(ValidEmail2::Address).to receive_messages(
133
+ valid_mx?: true,
134
+ valid_strict_mx?: true,
135
+ mx_server_is_in?: false
136
+ )
144
137
  end
145
138
  ```
146
139
 
147
140
  ## Requirements
148
141
 
149
- This gem should work with Rails 3.2 or higher. It is tested against Rails 5 and 6 using:
150
- * Ruby-2.5
151
- * Ruby-2.6
152
- * Ruby-2.7
153
- * Ruby-3.0
142
+ This gem is tested against currently supported Ruby and Rails versions. For an up to date list, check the build matrix in the [workflow](.github/workflows/ci.yaml).
154
143
 
155
144
  ## Upgrading to v3.0.0
156
145