valid_email2 7.0.0 → 7.0.11
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 +5 -2
- data/.github/workflows/release.yaml +2 -0
- data/.release-please-manifest.json +1 -1
- data/.rubocop.yml +17 -0
- data/.rubocop_todo.yml +263 -0
- data/CHANGELOG.md +78 -0
- data/README.md +11 -0
- data/config/disposable_email_domains.txt +5133 -5677
- data/gemfiles/activemodel8.gemfile +5 -0
- data/lib/valid_email2/address.rb +26 -63
- data/lib/valid_email2/dns.rb +71 -0
- data/lib/valid_email2/email_validator.rb +3 -1
- data/lib/valid_email2/version.rb +1 -1
- data/pull_mailchecker_emails.rb +13 -3
- data/spec/address_spec.rb +128 -42
- data/spec/benchmark_spec.rb +13 -2
- data/spec/dns_spec.rb +21 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/valid_email2_spec.rb +3 -0
- data/valid_email2.gemspec +6 -5
- metadata +38 -8
- data/lib/valid_email2/dns_records_cache.rb +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efdf6df9c0cfb6786cb150161775d0cd5d93acef4d5ad9982c82ac934af6270b
|
4
|
+
data.tar.gz: 78ab4c49e4ae672fe6f74474a420c4579c341f876fd2bd39b064cdb6ea712e3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac91ab2a9226a7cd36044276685d556aef1bb174cf16d991e182ddc096a1178284c9cd63a9cddb77c5c8d3a00264ba3d966c0f1181fcca44509a8886ab7f7ef4
|
7
|
+
data.tar.gz: 172490e4355f80754bf9b3fa90a04f8ff6d4804f7bb334c2471bcbcf7328933e4b8c0a14f4a0e33d29502f7129f6a74d4cf2063398fe2d07a216b8d13e3bf5f0
|
data/.github/workflows/ci.yaml
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
name: CI
|
2
|
-
on: [push,
|
2
|
+
on: [push, pull_request]
|
3
3
|
jobs:
|
4
4
|
test:
|
5
5
|
strategy:
|
6
6
|
fail-fast: false
|
7
7
|
matrix:
|
8
|
-
gemfile: [
|
8
|
+
gemfile: [activemodel6, activemodel7, activemodel8]
|
9
9
|
ruby: [3.1, 3.2, 3.3]
|
10
|
+
exclude:
|
11
|
+
- gemfile: activemodel8
|
12
|
+
ruby: 3.1
|
10
13
|
runs-on: ubuntu-latest
|
11
14
|
env:
|
12
15
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
@@ -19,10 +19,12 @@ jobs:
|
|
19
19
|
- uses: actions/checkout@v4
|
20
20
|
if: ${{ steps.release.outputs.release_created }}
|
21
21
|
with:
|
22
|
+
fetch-depth: 0
|
22
23
|
fetch-tags: true
|
23
24
|
- uses: ruby/setup-ruby@v1
|
24
25
|
if: ${{ steps.release.outputs.release_created }}
|
25
26
|
with:
|
27
|
+
rubygems: latest
|
26
28
|
bundler-cache: true
|
27
29
|
- uses: rubygems/release-gem@v1
|
28
30
|
if: ${{ steps.release.outputs.release_created }}
|
@@ -1 +1 @@
|
|
1
|
-
{".":"7.0.
|
1
|
+
{".":"7.0.11"}
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
4
|
+
# configuration file. It makes it possible to enable/disable
|
5
|
+
# certain cops (checks) and to alter their behavior if they accept
|
6
|
+
# any parameters. The file can be placed either in your home
|
7
|
+
# directory or in some project directory.
|
8
|
+
#
|
9
|
+
# RuboCop will start looking for the configuration file in the directory
|
10
|
+
# where the inspected file is and continue its way up to the root directory.
|
11
|
+
#
|
12
|
+
# See https://docs.rubocop.org/rubocop/configuration
|
13
|
+
|
14
|
+
Style/StringLiterals:
|
15
|
+
EnforcedStyle: double_quotes
|
16
|
+
Gemspec/OrderedDependencies:
|
17
|
+
Enabled: no
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,263 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2025-02-14 12:05:00 UTC using RuboCop version 1.71.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
11
|
+
Layout/EmptyLineAfterGuardClause:
|
12
|
+
Exclude:
|
13
|
+
- 'lib/valid_email2/email_validator.rb'
|
14
|
+
|
15
|
+
# Offense count: 2
|
16
|
+
# This cop supports safe autocorrection (--autocorrect).
|
17
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
18
|
+
Layout/ExtraSpacing:
|
19
|
+
Exclude:
|
20
|
+
- 'lib/valid_email2.rb'
|
21
|
+
|
22
|
+
# Offense count: 1
|
23
|
+
# This cop supports safe autocorrection (--autocorrect).
|
24
|
+
Layout/SpaceAfterComma:
|
25
|
+
Exclude:
|
26
|
+
- 'spec/spec_helper.rb'
|
27
|
+
|
28
|
+
# Offense count: 2
|
29
|
+
# This cop supports safe autocorrection (--autocorrect).
|
30
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
31
|
+
# SupportedStylesForExponentOperator: space, no_space
|
32
|
+
# SupportedStylesForRationalLiterals: space, no_space
|
33
|
+
Layout/SpaceAroundOperators:
|
34
|
+
Exclude:
|
35
|
+
- 'lib/valid_email2.rb'
|
36
|
+
|
37
|
+
# Offense count: 1
|
38
|
+
# This cop supports safe autocorrection (--autocorrect).
|
39
|
+
Lint/ScriptPermission:
|
40
|
+
Exclude:
|
41
|
+
- 'pull_mailchecker_emails.rb'
|
42
|
+
|
43
|
+
# Offense count: 1
|
44
|
+
# This cop supports safe autocorrection (--autocorrect).
|
45
|
+
# Configuration parameters: AutoCorrect, IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
46
|
+
Lint/UnusedBlockArgument:
|
47
|
+
Exclude:
|
48
|
+
- 'lib/valid_email2/dns.rb'
|
49
|
+
|
50
|
+
# Offense count: 2
|
51
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
52
|
+
Metrics/AbcSize:
|
53
|
+
Max: 63
|
54
|
+
|
55
|
+
# Offense count: 11
|
56
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
57
|
+
# AllowedMethods: refine
|
58
|
+
Metrics/BlockLength:
|
59
|
+
Max: 348
|
60
|
+
|
61
|
+
# Offense count: 1
|
62
|
+
# Configuration parameters: CountComments, CountAsOne.
|
63
|
+
Metrics/ClassLength:
|
64
|
+
Max: 105
|
65
|
+
|
66
|
+
# Offense count: 1
|
67
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
68
|
+
Metrics/CyclomaticComplexity:
|
69
|
+
Max: 44
|
70
|
+
|
71
|
+
# Offense count: 2
|
72
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
73
|
+
Metrics/MethodLength:
|
74
|
+
Max: 32
|
75
|
+
|
76
|
+
# Offense count: 1
|
77
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
78
|
+
Metrics/PerceivedComplexity:
|
79
|
+
Max: 44
|
80
|
+
|
81
|
+
# Offense count: 2
|
82
|
+
# This cop supports safe autocorrection (--autocorrect).
|
83
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
84
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
85
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
86
|
+
# FunctionalMethods: let, let!, subject, watch
|
87
|
+
# AllowedMethods: lambda, proc, it
|
88
|
+
Style/BlockDelimiters:
|
89
|
+
Exclude:
|
90
|
+
- 'lib/valid_email2/address.rb'
|
91
|
+
|
92
|
+
# Offense count: 1
|
93
|
+
# This cop supports safe autocorrection (--autocorrect).
|
94
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
95
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
96
|
+
Style/ConditionalAssignment:
|
97
|
+
Exclude:
|
98
|
+
- 'lib/valid_email2/email_validator.rb'
|
99
|
+
|
100
|
+
# Offense count: 4
|
101
|
+
# Configuration parameters: AllowedConstants.
|
102
|
+
Style/Documentation:
|
103
|
+
Exclude:
|
104
|
+
- 'spec/**/*'
|
105
|
+
- 'test/**/*'
|
106
|
+
- 'lib/valid_email2.rb'
|
107
|
+
- 'lib/valid_email2/address.rb'
|
108
|
+
- 'lib/valid_email2/dns.rb'
|
109
|
+
- 'lib/valid_email2/email_validator.rb'
|
110
|
+
|
111
|
+
# Offense count: 1
|
112
|
+
# This cop supports safe autocorrection (--autocorrect).
|
113
|
+
Style/ExpandPathArguments:
|
114
|
+
Exclude:
|
115
|
+
- 'spec/spec_helper.rb'
|
116
|
+
|
117
|
+
# Offense count: 10
|
118
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
119
|
+
# Configuration parameters: EnforcedStyle.
|
120
|
+
# SupportedStyles: always, always_true, never
|
121
|
+
Style/FrozenStringLiteralComment:
|
122
|
+
Exclude:
|
123
|
+
- '**/*.arb'
|
124
|
+
- 'Gemfile'
|
125
|
+
- 'Rakefile'
|
126
|
+
- 'gemfiles/activemodel6.gemfile'
|
127
|
+
- 'gemfiles/activemodel7.gemfile'
|
128
|
+
- 'gemfiles/activemodel8.gemfile'
|
129
|
+
- 'lib/valid_email2/dns.rb'
|
130
|
+
- 'lib/valid_email2/email_validator.rb'
|
131
|
+
- 'pull_mailchecker_emails.rb'
|
132
|
+
- 'spec/spec_helper.rb'
|
133
|
+
- 'valid_email2.gemspec'
|
134
|
+
|
135
|
+
# Offense count: 2
|
136
|
+
# This cop supports safe autocorrection (--autocorrect).
|
137
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
138
|
+
Style/GuardClause:
|
139
|
+
Exclude:
|
140
|
+
- 'lib/valid_email2/dns.rb'
|
141
|
+
- 'lib/valid_email2/email_validator.rb'
|
142
|
+
|
143
|
+
# Offense count: 1
|
144
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
145
|
+
# Configuration parameters: AllowedReceivers.
|
146
|
+
# AllowedReceivers: Thread.current
|
147
|
+
Style/HashEachMethods:
|
148
|
+
Exclude:
|
149
|
+
- 'lib/valid_email2/dns.rb'
|
150
|
+
|
151
|
+
# Offense count: 2
|
152
|
+
# This cop supports safe autocorrection (--autocorrect).
|
153
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
154
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
155
|
+
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
|
156
|
+
Style/HashSyntax:
|
157
|
+
Exclude:
|
158
|
+
- 'Rakefile'
|
159
|
+
|
160
|
+
# Offense count: 1
|
161
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
162
|
+
# Configuration parameters: EnforcedStyle.
|
163
|
+
# SupportedStyles: literals, strict
|
164
|
+
Style/MutableConstant:
|
165
|
+
Exclude:
|
166
|
+
- 'lib/valid_email2/dns.rb'
|
167
|
+
|
168
|
+
# Offense count: 1
|
169
|
+
# This cop supports safe autocorrection (--autocorrect).
|
170
|
+
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
171
|
+
Style/NumericLiterals:
|
172
|
+
MinDigits: 6
|
173
|
+
|
174
|
+
# Offense count: 2
|
175
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
176
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
177
|
+
# SupportedStyles: predicate, comparison
|
178
|
+
Style/NumericPredicate:
|
179
|
+
Exclude:
|
180
|
+
- 'spec/**/*'
|
181
|
+
- 'lib/valid_email2/address.rb'
|
182
|
+
|
183
|
+
# Offense count: 1
|
184
|
+
# This cop supports safe autocorrection (--autocorrect).
|
185
|
+
Style/Proc:
|
186
|
+
Exclude:
|
187
|
+
- 'spec/valid_email2_spec.rb'
|
188
|
+
|
189
|
+
# Offense count: 1
|
190
|
+
# This cop supports safe autocorrection (--autocorrect).
|
191
|
+
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
192
|
+
# SupportedStyles: slashes, percent_r, mixed
|
193
|
+
Style/RegexpLiteral:
|
194
|
+
Exclude:
|
195
|
+
- 'lib/valid_email2/address.rb'
|
196
|
+
|
197
|
+
# Offense count: 1
|
198
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
199
|
+
Style/SlicingWithRange:
|
200
|
+
Exclude:
|
201
|
+
- 'lib/valid_email2/address.rb'
|
202
|
+
|
203
|
+
# Offense count: 9
|
204
|
+
# This cop supports safe autocorrection (--autocorrect).
|
205
|
+
# Configuration parameters: AllowModifier.
|
206
|
+
Style/SoleNestedConditional:
|
207
|
+
Exclude:
|
208
|
+
- 'lib/valid_email2/email_validator.rb'
|
209
|
+
|
210
|
+
# Offense count: 2
|
211
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
212
|
+
# Configuration parameters: RequireEnglish, EnforcedStyle.
|
213
|
+
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
214
|
+
Style/SpecialGlobalVars:
|
215
|
+
Exclude:
|
216
|
+
- 'spec/spec_helper.rb'
|
217
|
+
- 'valid_email2.gemspec'
|
218
|
+
|
219
|
+
# Offense count: 35
|
220
|
+
# This cop supports safe autocorrection (--autocorrect).
|
221
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
222
|
+
# SupportedStyles: single_quotes, double_quotes
|
223
|
+
Style/StringLiterals:
|
224
|
+
Exclude:
|
225
|
+
- 'Gemfile'
|
226
|
+
- 'gemfiles/activemodel6.gemfile'
|
227
|
+
- 'gemfiles/activemodel7.gemfile'
|
228
|
+
- 'gemfiles/activemodel8.gemfile'
|
229
|
+
- 'lib/valid_email2.rb'
|
230
|
+
- 'lib/valid_email2/address.rb'
|
231
|
+
- 'lib/valid_email2/email_validator.rb'
|
232
|
+
- 'spec/spec_helper.rb'
|
233
|
+
- 'spec/valid_email2_spec.rb'
|
234
|
+
- 'valid_email2.gemspec'
|
235
|
+
|
236
|
+
# Offense count: 3
|
237
|
+
# This cop supports safe autocorrection (--autocorrect).
|
238
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
|
239
|
+
# AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
240
|
+
Style/TrivialAccessors:
|
241
|
+
Exclude:
|
242
|
+
- 'lib/valid_email2/address.rb'
|
243
|
+
|
244
|
+
# Offense count: 1
|
245
|
+
# This cop supports safe autocorrection (--autocorrect).
|
246
|
+
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
247
|
+
# SupportedStyles: percent, brackets
|
248
|
+
Style/WordArray:
|
249
|
+
Exclude:
|
250
|
+
- 'spec/valid_email2_spec.rb'
|
251
|
+
|
252
|
+
# Offense count: 1
|
253
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
254
|
+
Style/ZeroLengthPredicate:
|
255
|
+
Exclude:
|
256
|
+
- 'lib/valid_email2/address.rb'
|
257
|
+
|
258
|
+
# Offense count: 17
|
259
|
+
# This cop supports safe autocorrection (--autocorrect).
|
260
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
261
|
+
# URISchemes: http, https
|
262
|
+
Layout/LineLength:
|
263
|
+
Max: 186
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,83 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [7.0.11](https://github.com/micke/valid_email2/compare/v7.0.10...v7.0.11) (2025-02-28)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* check if this actually fetches the tags ([be13649](https://github.com/micke/valid_email2/commit/be136494407c0731ef38e9ef958795f9aec0bcaa))
|
9
|
+
|
10
|
+
## [7.0.10](https://github.com/micke/valid_email2/compare/v7.0.9...v7.0.10) (2025-02-25)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* remove buildingradar.com ([7c86044](https://github.com/micke/valid_email2/commit/7c860448804638f12b484d20e5973e8a8acc5e1d))
|
16
|
+
|
17
|
+
## [7.0.9](https://github.com/micke/valid_email2/compare/v7.0.8...v7.0.9) (2025-02-14)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* just trigger a release build ([3a3f0e0](https://github.com/micke/valid_email2/commit/3a3f0e045df1938121cfa47f5a538f09a2b89d81))
|
23
|
+
|
24
|
+
## [7.0.8](https://github.com/micke/valid_email2/compare/v7.0.7...v7.0.8) (2025-02-14)
|
25
|
+
|
26
|
+
|
27
|
+
### Bug Fixes
|
28
|
+
|
29
|
+
* checkout new version ([9906824](https://github.com/micke/valid_email2/commit/990682433d176c00351eff056c28a6dd72cd6d8a))
|
30
|
+
|
31
|
+
## [7.0.7](https://github.com/micke/valid_email2/compare/v7.0.6...v7.0.7) (2025-02-14)
|
32
|
+
|
33
|
+
|
34
|
+
### Bug Fixes
|
35
|
+
|
36
|
+
* use a different ruby-version for release ([5d9465b](https://github.com/micke/valid_email2/commit/5d9465be9d32f685b78d14c56c822428e7d33580))
|
37
|
+
|
38
|
+
## [7.0.6](https://github.com/micke/valid_email2/compare/v7.0.5...v7.0.6) (2025-02-14)
|
39
|
+
|
40
|
+
|
41
|
+
### Bug Fixes
|
42
|
+
|
43
|
+
* check corrupted bundler cache ([290009b](https://github.com/micke/valid_email2/commit/290009b92c3e69fc668e473215ed08ff2fc5a48d))
|
44
|
+
|
45
|
+
## [7.0.5](https://github.com/micke/valid_email2/compare/v7.0.4...v7.0.5) (2025-02-14)
|
46
|
+
|
47
|
+
|
48
|
+
### Bug Fixes
|
49
|
+
|
50
|
+
* do not cache deps in release please ([a53f765](https://github.com/micke/valid_email2/commit/a53f76548eaf3c286763b73cfca6f6061fc88d28))
|
51
|
+
|
52
|
+
## [7.0.4](https://github.com/micke/valid_email2/compare/v7.0.3...v7.0.4) (2025-02-14)
|
53
|
+
|
54
|
+
|
55
|
+
### Bug Fixes
|
56
|
+
|
57
|
+
* pinning dependency for release task ([2f7d554](https://github.com/micke/valid_email2/commit/2f7d554bc5c18d68e56a1abdcb52957443ad6288))
|
58
|
+
|
59
|
+
## [7.0.3](https://github.com/micke/valid_email2/compare/v7.0.2...v7.0.3) (2025-02-13)
|
60
|
+
|
61
|
+
|
62
|
+
### Bug Fixes
|
63
|
+
|
64
|
+
* Class level DNS cache ([#271](https://github.com/micke/valid_email2/issues/271)) ([50aad15](https://github.com/micke/valid_email2/commit/50aad153270287ee19fbd23c190758a55ad00920))
|
65
|
+
|
66
|
+
## [7.0.2](https://github.com/micke/valid_email2/compare/v7.0.1...v7.0.2) (2025-01-23)
|
67
|
+
|
68
|
+
|
69
|
+
### Bug Fixes
|
70
|
+
|
71
|
+
* Remove nytimes.com from list of disposable domains ([#267](https://github.com/micke/valid_email2/issues/267)) ([8173464](https://github.com/micke/valid_email2/commit/8173464e15c492556167d3227804976d3546d1b2))
|
72
|
+
|
73
|
+
## [7.0.1](https://github.com/micke/valid_email2/compare/v7.0.0...v7.0.1) (2024-12-02)
|
74
|
+
|
75
|
+
|
76
|
+
### Bug Fixes
|
77
|
+
|
78
|
+
* Add domain luxyss.com ([#264](https://github.com/micke/valid_email2/issues/264)) ([b04d316](https://github.com/micke/valid_email2/commit/b04d31680881cde8d1620b8f6233c05db10232ca))
|
79
|
+
* Update disposable domains from Yopmail ([#263](https://github.com/micke/valid_email2/issues/263)) ([fee055f](https://github.com/micke/valid_email2/commit/fee055f62294eb7991d9cd20ec04f0b27afdee45))
|
80
|
+
|
3
81
|
## [7.0.0](https://github.com/micke/valid_email2/compare/v6.0.0...v7.0.0) (2024-11-19)
|
4
82
|
|
5
83
|
|
data/README.md
CHANGED
@@ -89,6 +89,14 @@ To validate that the domain is not on the deny list (under config/deny_listed_em
|
|
89
89
|
validates :email, 'valid_email_2/email': { deny_list: true }
|
90
90
|
```
|
91
91
|
|
92
|
+
The allow_listed_email_domains.yml and deny_listed_email_domains.yml can be written as follows:
|
93
|
+
|
94
|
+
```yml
|
95
|
+
# config/deny_listed_email_domains.yml
|
96
|
+
- denied1.example.com
|
97
|
+
- denied2.example.com
|
98
|
+
```
|
99
|
+
|
92
100
|
To validate that email is not subaddressed:
|
93
101
|
```ruby
|
94
102
|
validates :email, 'valid_email_2/email': { disallow_subaddressing: true }
|
@@ -117,6 +125,7 @@ validates :email, 'valid_email_2/email': { mx: true, disposable: true, disallow_
|
|
117
125
|
> Note that this gem will let an empty email pass through so you will need to
|
118
126
|
> add `presence: true` if you require an email
|
119
127
|
|
128
|
+
|
120
129
|
### Use without ActiveModel
|
121
130
|
|
122
131
|
```ruby
|
@@ -128,6 +137,8 @@ address.valid_strict_mx? => true
|
|
128
137
|
address.subaddressed? => false
|
129
138
|
```
|
130
139
|
|
140
|
+
For other APIs, please check [lib/valid_email2/address.rb](https://github.com/micke/valid_email2/blob/main/lib/valid_email2/address.rb).
|
141
|
+
|
131
142
|
If you want to allow multibyte characters, set it explicitly.
|
132
143
|
|
133
144
|
```ruby
|