valid_email2 7.0.11 → 7.0.12
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/.github/workflows/ci.yaml +4 -2
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +7 -0
- data/lib/valid_email2/address.rb +6 -1
- data/lib/valid_email2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '07299cd3494ad62a9ad0aef73fb6ebca484eb2114f6a7a2372a87b8144b1f5f6'
|
4
|
+
data.tar.gz: 0a566dd595ec890f8ad1d7bd372e72356b23c2d5e809afd24904f91c1a06b4a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e762af01632465a1f6a19114aa6004881d000bc8dd9ec94b1984c5e91f3dea7bd2af478c61f295e63799e37b3e8b6a750f74cd8821bc730704a107742af73cf
|
7
|
+
data.tar.gz: df5ecad9812bbd37f6552639c94616d6236e5f44acea5edb106d2af8cbe2be812c3d82847a84ab00f6df6872bc5c27331ee547b1b7c2ed4c676011ed32975433
|
data/.github/workflows/ci.yaml
CHANGED
@@ -6,15 +6,17 @@ jobs:
|
|
6
6
|
fail-fast: false
|
7
7
|
matrix:
|
8
8
|
gemfile: [activemodel6, activemodel7, activemodel8]
|
9
|
-
ruby: [3.1, 3.2, 3.3]
|
9
|
+
ruby: [3.1, 3.2, 3.3, 3.4]
|
10
10
|
exclude:
|
11
|
+
- gemfile: activemodel6
|
12
|
+
ruby: 3.4
|
11
13
|
- gemfile: activemodel8
|
12
14
|
ruby: 3.1
|
13
15
|
runs-on: ubuntu-latest
|
14
16
|
env:
|
15
17
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
16
18
|
steps:
|
17
|
-
- uses: actions/checkout@
|
19
|
+
- uses: actions/checkout@v4
|
18
20
|
- uses: ruby/setup-ruby@v1
|
19
21
|
with:
|
20
22
|
ruby-version: ${{ matrix.ruby }}
|
@@ -1 +1 @@
|
|
1
|
-
{".":"7.0.
|
1
|
+
{".":"7.0.12"}
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [7.0.12](https://github.com/micke/valid_email2/compare/v7.0.11...v7.0.12) (2025-03-01)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* re-add mx_server_is_in?(domain_list) for backwards compatibility ([#291](https://github.com/micke/valid_email2/issues/291)) ([5b0f979](https://github.com/micke/valid_email2/commit/5b0f9798e733456d885d4ee05c6b74de5d3d79e1))
|
9
|
+
|
3
10
|
## [7.0.11](https://github.com/micke/valid_email2/compare/v7.0.10...v7.0.11) (2025-02-28)
|
4
11
|
|
5
12
|
|
data/lib/valid_email2/address.rb
CHANGED
@@ -110,8 +110,13 @@ module ValidEmail2
|
|
110
110
|
private
|
111
111
|
|
112
112
|
def disposable_mx_server?
|
113
|
+
mx_server_is_in?(ValidEmail2.disposable_emails)
|
114
|
+
end
|
115
|
+
|
116
|
+
# TODO: (PS) keep this for backward compatibility with the test setup described in the reamde
|
117
|
+
def mx_server_is_in?(domain_list)
|
113
118
|
address_domains = @dns.mx_servers(address.domain).map(&:exchange).map(&:to_s)
|
114
|
-
domain_is_in?(address_domains,
|
119
|
+
domain_is_in?(address_domains, domain_list)
|
115
120
|
end
|
116
121
|
|
117
122
|
def domain_is_in?(address_domains, domain_list)
|
data/lib/valid_email2/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valid_email2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micke Lisinge
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-01 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: bundler
|