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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efdf6df9c0cfb6786cb150161775d0cd5d93acef4d5ad9982c82ac934af6270b
4
- data.tar.gz: 78ab4c49e4ae672fe6f74474a420c4579c341f876fd2bd39b064cdb6ea712e3d
3
+ metadata.gz: '07299cd3494ad62a9ad0aef73fb6ebca484eb2114f6a7a2372a87b8144b1f5f6'
4
+ data.tar.gz: 0a566dd595ec890f8ad1d7bd372e72356b23c2d5e809afd24904f91c1a06b4a5
5
5
  SHA512:
6
- metadata.gz: ac91ab2a9226a7cd36044276685d556aef1bb174cf16d991e182ddc096a1178284c9cd63a9cddb77c5c8d3a00264ba3d966c0f1181fcca44509a8886ab7f7ef4
7
- data.tar.gz: 172490e4355f80754bf9b3fa90a04f8ff6d4804f7bb334c2471bcbcf7328933e4b8c0a14f4a0e33d29502f7129f6a74d4cf2063398fe2d07a216b8d13e3bf5f0
6
+ metadata.gz: 8e762af01632465a1f6a19114aa6004881d000bc8dd9ec94b1984c5e91f3dea7bd2af478c61f295e63799e37b3e8b6a750f74cd8821bc730704a107742af73cf
7
+ data.tar.gz: df5ecad9812bbd37f6552639c94616d6236e5f44acea5edb106d2af8cbe2be812c3d82847a84ab00f6df6872bc5c27331ee547b1b7c2ed4c676011ed32975433
@@ -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@v2
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.11"}
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
 
@@ -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, ValidEmail2.disposable_emails)
119
+ domain_is_in?(address_domains, domain_list)
115
120
  end
116
121
 
117
122
  def domain_is_in?(address_domains, domain_list)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal:true
2
2
 
3
3
  module ValidEmail2
4
- VERSION = "7.0.11"
4
+ VERSION = "7.0.12"
5
5
  end
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.11
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-02-28 00:00:00.000000000 Z
10
+ date: 2025-03-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler