truemail 2.4.8 → 2.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -1
- data/.rubocop.yml +6 -0
- data/CHANGELOG.md +10 -1
- data/Gemfile.lock +15 -17
- data/lib/truemail/validate/domain_list_match.rb +2 -1
- data/lib/truemail/validate/mx.rb +1 -4
- data/lib/truemail/validate/smtp.rb +1 -1
- data/lib/truemail/version.rb +1 -1
- data/truemail.gemspec +6 -6
- metadata +20 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe7168451269d442bab0872d515895af1c79b884ed3306648f4849ce74320b2
|
4
|
+
data.tar.gz: 9797a040d814da27daa9073e19d984fa50fd033ac83eaffa96bbc5485501471d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12d6e026591650b65eef26b5aa43b67e2d065e2dcb8f4d8229a6e19567e4162d6eebc41a992d35a8793a21893ea92e55f89de66ce9f35625d5efe466931e1b76
|
7
|
+
data.tar.gz: 04bed3c49eaf6314a21a33d0e761ca9e8c82671411f96e2b7428202cd3e0225ac4f13fd545202c6898f9328a17466e91cf957c5abfcf03ac8f0bf8801c0dc807
|
data/.codeclimate.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -166,6 +166,9 @@ Style/MultilineInPatternThen:
|
|
166
166
|
Style/QuotedSymbols:
|
167
167
|
Enabled: true
|
168
168
|
|
169
|
+
Style/RedundantSelfAssignmentBranch:
|
170
|
+
Enabled: true
|
171
|
+
|
169
172
|
Layout/LineLength:
|
170
173
|
Max: 140
|
171
174
|
|
@@ -326,6 +329,9 @@ Lint/TripleQuotes:
|
|
326
329
|
Lint/EmptyInPattern:
|
327
330
|
Enabled: true
|
328
331
|
|
332
|
+
Lint/AmbiguousRange:
|
333
|
+
Enabled: true
|
334
|
+
|
329
335
|
Gemspec/DateAssignment:
|
330
336
|
Enabled: true
|
331
337
|
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2
2
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
4
4
|
|
5
|
+
## [2.4.9] - 2021.08.20
|
6
|
+
|
7
|
+
### Updated
|
8
|
+
|
9
|
+
- Updated `Truemail::Validate::DomainListMatch#email_domain`, tests
|
10
|
+
- Updated `Truemail::Validate::Mx#domain`, tests
|
11
|
+
- Updated gem development dependencies
|
12
|
+
- Updated gem version
|
13
|
+
|
5
14
|
## [2.4.8] - 2021.08.12
|
6
15
|
|
7
16
|
### Updated
|
@@ -18,7 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
18
27
|
### Updated
|
19
28
|
|
20
29
|
- Updated gem codebase, refactored `Truemail::ContextHelper`
|
21
|
-
- Updated tests
|
30
|
+
- Updated tests with `Truemail::DnsHelper#dns_mock_gateway`
|
22
31
|
- Updated gem development dependencies
|
23
32
|
- Updated gem version
|
24
33
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
truemail (2.4.
|
4
|
+
truemail (2.4.9)
|
5
5
|
simpleidn (~> 0.2.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -20,13 +20,13 @@ GEM
|
|
20
20
|
crack (0.4.5)
|
21
21
|
rexml
|
22
22
|
diff-lcs (1.4.4)
|
23
|
-
dns_mock (1.4.
|
23
|
+
dns_mock (1.4.1)
|
24
24
|
simpleidn (~> 0.2.1)
|
25
25
|
docile (1.4.0)
|
26
26
|
fasterer (0.9.0)
|
27
27
|
colorize (~> 0.7)
|
28
28
|
ruby_parser (>= 3.14.1)
|
29
|
-
ffaker (2.
|
29
|
+
ffaker (2.19.0)
|
30
30
|
hashdiff (1.0.1)
|
31
31
|
iniparse (1.5.0)
|
32
32
|
json (2.5.1)
|
@@ -48,14 +48,12 @@ GEM
|
|
48
48
|
pry-byebug (3.9.0)
|
49
49
|
byebug (~> 11.0)
|
50
50
|
pry (~> 0.13.0)
|
51
|
-
psych (4.0.1)
|
52
51
|
public_suffix (4.0.6)
|
53
52
|
rainbow (3.0.0)
|
54
53
|
rake (13.0.6)
|
55
|
-
reek (6.0.
|
54
|
+
reek (6.0.6)
|
56
55
|
kwalify (~> 0.7.0)
|
57
56
|
parser (~> 3.0.0)
|
58
|
-
psych (>= 3.1, < 5.0)
|
59
57
|
rainbow (>= 2.0, < 4.0)
|
60
58
|
regexp_parser (2.1.1)
|
61
59
|
rexml (3.2.5)
|
@@ -72,18 +70,18 @@ GEM
|
|
72
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
73
71
|
rspec-support (~> 3.10.0)
|
74
72
|
rspec-support (3.10.2)
|
75
|
-
rubocop (1.
|
73
|
+
rubocop (1.19.1)
|
76
74
|
parallel (~> 1.10)
|
77
75
|
parser (>= 3.0.0.0)
|
78
76
|
rainbow (>= 2.2.2, < 4.0)
|
79
77
|
regexp_parser (>= 1.8, < 3.0)
|
80
78
|
rexml
|
81
|
-
rubocop-ast (>= 1.
|
79
|
+
rubocop-ast (>= 1.9.1, < 2.0)
|
82
80
|
ruby-progressbar (~> 1.7)
|
83
81
|
unicode-display_width (>= 1.4.0, < 3.0)
|
84
|
-
rubocop-ast (1.
|
82
|
+
rubocop-ast (1.10.0)
|
85
83
|
parser (>= 3.0.1.1)
|
86
|
-
rubocop-performance (1.11.
|
84
|
+
rubocop-performance (1.11.5)
|
87
85
|
rubocop (>= 1.7.0, < 2.0)
|
88
86
|
rubocop-ast (>= 0.4.0)
|
89
87
|
rubocop-rspec (2.4.0)
|
@@ -118,19 +116,19 @@ PLATFORMS
|
|
118
116
|
x86_64-darwin-20
|
119
117
|
|
120
118
|
DEPENDENCIES
|
121
|
-
bundler (~> 2.2, >= 2.2.
|
119
|
+
bundler (~> 2.2, >= 2.2.26)
|
122
120
|
bundler-audit (~> 0.8.0)
|
123
|
-
dns_mock (~> 1.4)
|
121
|
+
dns_mock (~> 1.4, >= 1.4.1)
|
124
122
|
fasterer (~> 0.9.0)
|
125
|
-
ffaker (~> 2.
|
123
|
+
ffaker (~> 2.19)
|
126
124
|
json_matchers (~> 0.11.1)
|
127
125
|
overcommit (~> 0.58.0)
|
128
126
|
pry-byebug (~> 3.9)
|
129
127
|
rake (~> 13.0, >= 13.0.6)
|
130
|
-
reek (~> 6.0, >= 6.0.
|
128
|
+
reek (~> 6.0, >= 6.0.6)
|
131
129
|
rspec (~> 3.10)
|
132
|
-
rubocop (~> 1.
|
133
|
-
rubocop-performance (~> 1.11, >= 1.11.
|
130
|
+
rubocop (~> 1.19, >= 1.19.1)
|
131
|
+
rubocop-performance (~> 1.11, >= 1.11.5)
|
134
132
|
rubocop-rspec (~> 2.4)
|
135
133
|
simplecov (~> 0.17.1)
|
136
134
|
truemail!
|
@@ -138,4 +136,4 @@ DEPENDENCIES
|
|
138
136
|
webmock (~> 3.14)
|
139
137
|
|
140
138
|
BUNDLED WITH
|
141
|
-
2.2.
|
139
|
+
2.2.26
|
@@ -15,7 +15,8 @@ module Truemail
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def email_domain
|
18
|
-
@email_domain ||=
|
18
|
+
@email_domain ||=
|
19
|
+
result.domain = result.email[Truemail::RegexConstant::REGEX_DOMAIN_FROM_EMAIL, 1]
|
19
20
|
end
|
20
21
|
|
21
22
|
def whitelisted_domain?
|
data/lib/truemail/validate/mx.rb
CHANGED
@@ -52,10 +52,7 @@ module Truemail
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def domain
|
55
|
-
@domain ||=
|
56
|
-
result.domain = result.email[Truemail::RegexConstant::REGEX_DOMAIN_FROM_EMAIL, 1]
|
57
|
-
result.punycode_email[Truemail::RegexConstant::REGEX_DOMAIN_FROM_EMAIL, 1]
|
58
|
-
end
|
55
|
+
@domain ||= result.punycode_email[Truemail::RegexConstant::REGEX_DOMAIN_FROM_EMAIL, 1]
|
59
56
|
end
|
60
57
|
|
61
58
|
def hosts_from_mx_records?
|
@@ -35,7 +35,7 @@ module Truemail
|
|
35
35
|
def attempts
|
36
36
|
@attempts ||= begin
|
37
37
|
return {} if fail_fast? || !mail_servers.one?
|
38
|
-
{ attempts: configuration.connection_attempts }
|
38
|
+
{ attempts: configuration.connection_attempts } # attempts should used for case with one mail server only
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
data/lib/truemail/version.rb
CHANGED
data/truemail.gemspec
CHANGED
@@ -33,19 +33,19 @@ Gem::Specification.new do |spec|
|
|
33
33
|
|
34
34
|
spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'
|
35
35
|
|
36
|
-
spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.
|
36
|
+
spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.26'
|
37
37
|
spec.add_development_dependency 'bundler-audit', '~> 0.8.0'
|
38
|
-
spec.add_development_dependency 'dns_mock', '~> 1.4'
|
38
|
+
spec.add_development_dependency 'dns_mock', '~> 1.4', '>= 1.4.1'
|
39
39
|
spec.add_development_dependency 'fasterer', '~> 0.9.0'
|
40
|
-
spec.add_development_dependency 'ffaker', '~> 2.
|
40
|
+
spec.add_development_dependency 'ffaker', '~> 2.19'
|
41
41
|
spec.add_development_dependency 'json_matchers', '~> 0.11.1'
|
42
42
|
spec.add_development_dependency 'overcommit', '~> 0.58.0'
|
43
43
|
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
44
44
|
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
45
|
-
spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.
|
45
|
+
spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.6'
|
46
46
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
47
|
-
spec.add_development_dependency 'rubocop', '~> 1.
|
48
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.
|
47
|
+
spec.add_development_dependency 'rubocop', '~> 1.19', '>= 1.19.1'
|
48
|
+
spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.5'
|
49
49
|
spec.add_development_dependency 'rubocop-rspec', '~> 2.4'
|
50
50
|
spec.add_development_dependency 'simplecov', '~> 0.17.1'
|
51
51
|
spec.add_development_dependency 'truemail-rspec', '~> 0.7.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: truemail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladislav Trotsenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simpleidn
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '2.2'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 2.2.
|
36
|
+
version: 2.2.26
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '2.2'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 2.2.
|
46
|
+
version: 2.2.26
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler-audit
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,6 +65,9 @@ dependencies:
|
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '1.4'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.4.1
|
68
71
|
type: :development
|
69
72
|
prerelease: false
|
70
73
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -72,6 +75,9 @@ dependencies:
|
|
72
75
|
- - "~>"
|
73
76
|
- !ruby/object:Gem::Version
|
74
77
|
version: '1.4'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.4.1
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: fasterer
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,14 +98,14 @@ dependencies:
|
|
92
98
|
requirements:
|
93
99
|
- - "~>"
|
94
100
|
- !ruby/object:Gem::Version
|
95
|
-
version: '2.
|
101
|
+
version: '2.19'
|
96
102
|
type: :development
|
97
103
|
prerelease: false
|
98
104
|
version_requirements: !ruby/object:Gem::Requirement
|
99
105
|
requirements:
|
100
106
|
- - "~>"
|
101
107
|
- !ruby/object:Gem::Version
|
102
|
-
version: '2.
|
108
|
+
version: '2.19'
|
103
109
|
- !ruby/object:Gem::Dependency
|
104
110
|
name: json_matchers
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,7 +177,7 @@ dependencies:
|
|
171
177
|
version: '6.0'
|
172
178
|
- - ">="
|
173
179
|
- !ruby/object:Gem::Version
|
174
|
-
version: 6.0.
|
180
|
+
version: 6.0.6
|
175
181
|
type: :development
|
176
182
|
prerelease: false
|
177
183
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -181,7 +187,7 @@ dependencies:
|
|
181
187
|
version: '6.0'
|
182
188
|
- - ">="
|
183
189
|
- !ruby/object:Gem::Version
|
184
|
-
version: 6.0.
|
190
|
+
version: 6.0.6
|
185
191
|
- !ruby/object:Gem::Dependency
|
186
192
|
name: rspec
|
187
193
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,20 +208,20 @@ dependencies:
|
|
202
208
|
requirements:
|
203
209
|
- - "~>"
|
204
210
|
- !ruby/object:Gem::Version
|
205
|
-
version: '1.
|
211
|
+
version: '1.19'
|
206
212
|
- - ">="
|
207
213
|
- !ruby/object:Gem::Version
|
208
|
-
version: 1.
|
214
|
+
version: 1.19.1
|
209
215
|
type: :development
|
210
216
|
prerelease: false
|
211
217
|
version_requirements: !ruby/object:Gem::Requirement
|
212
218
|
requirements:
|
213
219
|
- - "~>"
|
214
220
|
- !ruby/object:Gem::Version
|
215
|
-
version: '1.
|
221
|
+
version: '1.19'
|
216
222
|
- - ">="
|
217
223
|
- !ruby/object:Gem::Version
|
218
|
-
version: 1.
|
224
|
+
version: 1.19.1
|
219
225
|
- !ruby/object:Gem::Dependency
|
220
226
|
name: rubocop-performance
|
221
227
|
requirement: !ruby/object:Gem::Requirement
|
@@ -225,7 +231,7 @@ dependencies:
|
|
225
231
|
version: '1.11'
|
226
232
|
- - ">="
|
227
233
|
- !ruby/object:Gem::Version
|
228
|
-
version: 1.11.
|
234
|
+
version: 1.11.5
|
229
235
|
type: :development
|
230
236
|
prerelease: false
|
231
237
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -235,7 +241,7 @@ dependencies:
|
|
235
241
|
version: '1.11'
|
236
242
|
- - ">="
|
237
243
|
- !ruby/object:Gem::Version
|
238
|
-
version: 1.11.
|
244
|
+
version: 1.11.5
|
239
245
|
- !ruby/object:Gem::Dependency
|
240
246
|
name: rubocop-rspec
|
241
247
|
requirement: !ruby/object:Gem::Requirement
|