truemail 2.4.4 → 2.4.8

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: cf8f27fbb88a8793afe363ecbf9afb73868a663724fd1f01e75ea855ca69c26b
4
- data.tar.gz: e74cdde9bfab4ae16f08141e9f4d37ab99156c7107ccb9d101854fedbfe362d1
3
+ metadata.gz: caceed57ea14acc7cff6b2932fe2943940294aeeddc1bed4350e54bb24fa01d1
4
+ data.tar.gz: 14bf64538f0cf1a4c8ed898902943bb80d0df954fb225afa14afd7bef39d91cf
5
5
  SHA512:
6
- metadata.gz: 7e3bd0123c74232b762bcab48988249fbc0d923800fc06021c2b67966618367c81c410a9f1a73553e1783a9fc5fd8bdc1488aaf9fd1527389d1e7838e108408f
7
- data.tar.gz: c148e89618ba2e034de5a638c67070342cb43b8e36e5d9794435a35629d6675217264f54011e40880a9333a661aec02671db9d91f93badb8eb618389f2859b47
6
+ metadata.gz: eb39ef6db6d29ffb9dc8010fc5d0b5e75f0ff3dd586a0cded87ee33000141712752ab4bb5af60cbba35df4dedec7dd8c2a9dbf1429981f1cae78b0814e737cff
7
+ data.tar.gz: f8e99e41faa7b9332e109d11ef1acba36247bcc14687c2543465c2414b70d2d919347162409decd8bb2be286d361ab0874ad994978a9e07848f9402e7030bef6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,49 @@
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.8] - 2021.08.12
6
+
7
+ ### Updated
8
+
9
+ - Updated gem development dependencies
10
+ - Updated gem version
11
+
12
+ ### Changed
13
+
14
+ - `faker` to `ffaker` development dependency
15
+
16
+ ## [2.4.7] - 2021.08.09
17
+
18
+ ### Updated
19
+
20
+ - Updated gem codebase, refactored `Truemail::ContextHelper`
21
+ - Updated tests
22
+ - Updated gem development dependencies
23
+ - Updated gem version
24
+
25
+ ## [2.4.6] - 2021.07.10
26
+
27
+ ### Fixed
28
+
29
+ - Wrong domain punycode extraction in DNS validation layer
30
+
31
+ ### Updated
32
+
33
+ - Updated gem codebase, restored `Truemail::RegexConstant::REGEX_DOMAIN_FROM_EMAIL`
34
+ - Updated tests
35
+
36
+ ## [2.4.5] - 2021.07.09
37
+
38
+ ### Removed
39
+
40
+ - `Truemail::RegexConstant::REGEX_DOMAIN_FROM_EMAIL`
41
+
42
+ ### Updated
43
+
44
+ - `Truemail::Validate::Mx`
45
+ - Updated gem development dependencies
46
+ - Updated gem version
47
+
5
48
  ## [2.4.4] - 2021.06.29
6
49
 
7
50
  ### Updated
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- truemail (2.4.4)
4
+ truemail (2.4.8)
5
5
  simpleidn (~> 0.2.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- addressable (2.7.0)
10
+ addressable (2.8.0)
11
11
  public_suffix (>= 2.0.2, < 5.0)
12
12
  ast (2.4.2)
13
13
  bundler-audit (0.8.0)
@@ -17,20 +17,17 @@ GEM
17
17
  childprocess (4.1.0)
18
18
  coderay (1.1.3)
19
19
  colorize (0.8.1)
20
- concurrent-ruby (1.1.9)
21
20
  crack (0.4.5)
22
21
  rexml
23
22
  diff-lcs (1.4.4)
24
- dns_mock (1.3.0)
23
+ dns_mock (1.4.0)
24
+ simpleidn (~> 0.2.1)
25
25
  docile (1.4.0)
26
- faker (2.18.0)
27
- i18n (>= 1.6, < 2)
28
26
  fasterer (0.9.0)
29
27
  colorize (~> 0.7)
30
28
  ruby_parser (>= 3.14.1)
29
+ ffaker (2.18.0)
31
30
  hashdiff (1.0.1)
32
- i18n (1.8.10)
33
- concurrent-ruby (~> 1.0)
34
31
  iniparse (1.5.0)
35
32
  json (2.5.1)
36
33
  json_matchers (0.11.1)
@@ -43,7 +40,7 @@ GEM
43
40
  iniparse (~> 1.4)
44
41
  rexml (~> 3.2)
45
42
  parallel (1.20.1)
46
- parser (3.0.1.1)
43
+ parser (3.0.2.0)
47
44
  ast (~> 2.4.1)
48
45
  pry (0.13.1)
49
46
  coderay (~> 1.1)
@@ -51,14 +48,14 @@ GEM
51
48
  pry-byebug (3.9.0)
52
49
  byebug (~> 11.0)
53
50
  pry (~> 0.13.0)
54
- psych (3.3.2)
51
+ psych (4.0.1)
55
52
  public_suffix (4.0.6)
56
53
  rainbow (3.0.0)
57
- rake (13.0.3)
58
- reek (6.0.4)
54
+ rake (13.0.6)
55
+ reek (6.0.5)
59
56
  kwalify (~> 0.7.0)
60
57
  parser (~> 3.0.0)
61
- psych (~> 3.1)
58
+ psych (>= 3.1, < 5.0)
62
59
  rainbow (>= 2.0, < 4.0)
63
60
  regexp_parser (2.1.1)
64
61
  rexml (3.2.5)
@@ -75,25 +72,25 @@ GEM
75
72
  diff-lcs (>= 1.2.0, < 2.0)
76
73
  rspec-support (~> 3.10.0)
77
74
  rspec-support (3.10.2)
78
- rubocop (1.18.0)
75
+ rubocop (1.18.4)
79
76
  parallel (~> 1.10)
80
77
  parser (>= 3.0.0.0)
81
78
  rainbow (>= 2.2.2, < 4.0)
82
79
  regexp_parser (>= 1.8, < 3.0)
83
80
  rexml
84
- rubocop-ast (>= 1.7.0, < 2.0)
81
+ rubocop-ast (>= 1.8.0, < 2.0)
85
82
  ruby-progressbar (~> 1.7)
86
83
  unicode-display_width (>= 1.4.0, < 3.0)
87
- rubocop-ast (1.7.0)
84
+ rubocop-ast (1.9.1)
88
85
  parser (>= 3.0.1.1)
89
- rubocop-performance (1.11.3)
86
+ rubocop-performance (1.11.4)
90
87
  rubocop (>= 1.7.0, < 2.0)
91
88
  rubocop-ast (>= 0.4.0)
92
89
  rubocop-rspec (2.4.0)
93
90
  rubocop (~> 1.0)
94
91
  rubocop-ast (>= 1.1.0)
95
92
  ruby-progressbar (1.11.0)
96
- ruby_parser (3.16.0)
93
+ ruby_parser (3.17.0)
97
94
  sexp_processor (~> 4.15, >= 4.15.1)
98
95
  sexp_processor (4.15.3)
99
96
  simplecov (0.17.1)
@@ -104,16 +101,16 @@ GEM
104
101
  simpleidn (0.2.1)
105
102
  unf (~> 0.1.4)
106
103
  thor (1.1.0)
107
- truemail-rspec (0.6.0)
108
- faker (~> 2.17)
104
+ truemail-rspec (0.7.0)
105
+ ffaker (~> 2.18)
109
106
  rspec (~> 3.10)
110
107
  truemail (>= 2.4)
111
108
  unf (0.1.4)
112
109
  unf_ext
113
110
  unf_ext (0.0.7.7)
114
111
  unicode-display_width (2.0.0)
115
- webmock (3.13.0)
116
- addressable (>= 2.3.6)
112
+ webmock (3.14.0)
113
+ addressable (>= 2.8.0)
117
114
  crack (>= 0.3.2)
118
115
  hashdiff (>= 0.4.0, < 2.0.0)
119
116
 
@@ -121,24 +118,24 @@ PLATFORMS
121
118
  x86_64-darwin-20
122
119
 
123
120
  DEPENDENCIES
124
- bundler (~> 2.2, >= 2.2.21)
121
+ bundler (~> 2.2, >= 2.2.25)
125
122
  bundler-audit (~> 0.8.0)
126
- dns_mock (~> 1.3)
127
- faker (~> 2.18)
123
+ dns_mock (~> 1.4)
128
124
  fasterer (~> 0.9.0)
125
+ ffaker (~> 2.18)
129
126
  json_matchers (~> 0.11.1)
130
127
  overcommit (~> 0.58.0)
131
128
  pry-byebug (~> 3.9)
132
- rake (~> 13.0, >= 13.0.3)
133
- reek (~> 6.0, >= 6.0.4)
129
+ rake (~> 13.0, >= 13.0.6)
130
+ reek (~> 6.0, >= 6.0.5)
134
131
  rspec (~> 3.10)
135
- rubocop (~> 1.18)
136
- rubocop-performance (~> 1.11, >= 1.11.3)
132
+ rubocop (~> 1.18, >= 1.18.4)
133
+ rubocop-performance (~> 1.11, >= 1.11.4)
137
134
  rubocop-rspec (~> 2.4)
138
135
  simplecov (~> 0.17.1)
139
136
  truemail!
140
- truemail-rspec (~> 0.6)
141
- webmock (~> 3.13)
137
+ truemail-rspec (~> 0.7.0)
138
+ webmock (~> 3.14)
142
139
 
143
140
  BUNDLED WITH
144
- 2.2.21
141
+ 2.2.25
@@ -8,7 +8,6 @@ module Truemail
8
8
 
9
9
  def run
10
10
  return false unless Truemail::Validate::Regex.check(result)
11
- result.domain = result.punycode_email[Truemail::RegexConstant::REGEX_DOMAIN_FROM_EMAIL, 1]
12
11
  return true if success(mx_lookup && domain_not_include_null_mx)
13
12
  mail_servers.clear && add_error(Truemail::Validate::Mx::ERROR)
14
13
  false
@@ -53,7 +52,10 @@ module Truemail
53
52
  end
54
53
 
55
54
  def domain
56
- result.domain
55
+ @domain ||= begin
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
57
59
  end
58
60
 
59
61
  def hosts_from_mx_records?
@@ -50,7 +50,7 @@ module Truemail
50
50
  REQUEST_PARAMS = %i[connection_timeout response_timeout verifier_domain verifier_email].freeze
51
51
 
52
52
  def initialize(configuration)
53
- REQUEST_PARAMS.each do |attribute|
53
+ Truemail::Validate::Smtp::Request::Configuration::REQUEST_PARAMS.each do |attribute|
54
54
  self.class.class_eval { attr_reader attribute }
55
55
  instance_variable_set(:"@#{attribute}", configuration.public_send(attribute))
56
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Truemail
4
- VERSION = '2.4.4'
4
+ VERSION = '2.4.8'
5
5
  end
data/truemail.gemspec CHANGED
@@ -33,21 +33,21 @@ 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.21'
36
+ spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.25'
37
37
  spec.add_development_dependency 'bundler-audit', '~> 0.8.0'
38
- spec.add_development_dependency 'dns_mock', '~> 1.3'
39
- spec.add_development_dependency 'faker', '~> 2.18'
38
+ spec.add_development_dependency 'dns_mock', '~> 1.4'
40
39
  spec.add_development_dependency 'fasterer', '~> 0.9.0'
40
+ spec.add_development_dependency 'ffaker', '~> 2.18'
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
- spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.3'
45
- spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.4'
44
+ spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
45
+ spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.5'
46
46
  spec.add_development_dependency 'rspec', '~> 3.10'
47
- spec.add_development_dependency 'rubocop', '~> 1.18'
48
- spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.3'
47
+ spec.add_development_dependency 'rubocop', '~> 1.18', '>= 1.18.4'
48
+ spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.4'
49
49
  spec.add_development_dependency 'rubocop-rspec', '~> 2.4'
50
50
  spec.add_development_dependency 'simplecov', '~> 0.17.1'
51
- spec.add_development_dependency 'truemail-rspec', '~> 0.6'
52
- spec.add_development_dependency 'webmock', '~> 3.13'
51
+ spec.add_development_dependency 'truemail-rspec', '~> 0.7.0'
52
+ spec.add_development_dependency 'webmock', '~> 3.14'
53
53
  end
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
4
+ version: 2.4.8
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-06-29 00:00:00.000000000 Z
11
+ date: 2021-08-12 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.21
36
+ version: 2.2.25
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.21
46
+ version: 2.2.25
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler-audit
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -64,42 +64,42 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.3'
67
+ version: '1.4'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.3'
74
+ version: '1.4'
75
75
  - !ruby/object:Gem::Dependency
76
- name: faker
76
+ name: fasterer
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '2.18'
81
+ version: 0.9.0
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '2.18'
88
+ version: 0.9.0
89
89
  - !ruby/object:Gem::Dependency
90
- name: fasterer
90
+ name: ffaker
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 0.9.0
95
+ version: '2.18'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: 0.9.0
102
+ version: '2.18'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: json_matchers
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -151,7 +151,7 @@ dependencies:
151
151
  version: '13.0'
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
- version: 13.0.3
154
+ version: 13.0.6
155
155
  type: :development
156
156
  prerelease: false
157
157
  version_requirements: !ruby/object:Gem::Requirement
@@ -161,7 +161,7 @@ dependencies:
161
161
  version: '13.0'
162
162
  - - ">="
163
163
  - !ruby/object:Gem::Version
164
- version: 13.0.3
164
+ version: 13.0.6
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: reek
167
167
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +171,7 @@ dependencies:
171
171
  version: '6.0'
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
- version: 6.0.4
174
+ version: 6.0.5
175
175
  type: :development
176
176
  prerelease: false
177
177
  version_requirements: !ruby/object:Gem::Requirement
@@ -181,7 +181,7 @@ dependencies:
181
181
  version: '6.0'
182
182
  - - ">="
183
183
  - !ruby/object:Gem::Version
184
- version: 6.0.4
184
+ version: 6.0.5
185
185
  - !ruby/object:Gem::Dependency
186
186
  name: rspec
187
187
  requirement: !ruby/object:Gem::Requirement
@@ -203,6 +203,9 @@ dependencies:
203
203
  - - "~>"
204
204
  - !ruby/object:Gem::Version
205
205
  version: '1.18'
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: 1.18.4
206
209
  type: :development
207
210
  prerelease: false
208
211
  version_requirements: !ruby/object:Gem::Requirement
@@ -210,6 +213,9 @@ dependencies:
210
213
  - - "~>"
211
214
  - !ruby/object:Gem::Version
212
215
  version: '1.18'
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: 1.18.4
213
219
  - !ruby/object:Gem::Dependency
214
220
  name: rubocop-performance
215
221
  requirement: !ruby/object:Gem::Requirement
@@ -219,7 +225,7 @@ dependencies:
219
225
  version: '1.11'
220
226
  - - ">="
221
227
  - !ruby/object:Gem::Version
222
- version: 1.11.3
228
+ version: 1.11.4
223
229
  type: :development
224
230
  prerelease: false
225
231
  version_requirements: !ruby/object:Gem::Requirement
@@ -229,7 +235,7 @@ dependencies:
229
235
  version: '1.11'
230
236
  - - ">="
231
237
  - !ruby/object:Gem::Version
232
- version: 1.11.3
238
+ version: 1.11.4
233
239
  - !ruby/object:Gem::Dependency
234
240
  name: rubocop-rspec
235
241
  requirement: !ruby/object:Gem::Requirement
@@ -264,28 +270,28 @@ dependencies:
264
270
  requirements:
265
271
  - - "~>"
266
272
  - !ruby/object:Gem::Version
267
- version: '0.6'
273
+ version: 0.7.0
268
274
  type: :development
269
275
  prerelease: false
270
276
  version_requirements: !ruby/object:Gem::Requirement
271
277
  requirements:
272
278
  - - "~>"
273
279
  - !ruby/object:Gem::Version
274
- version: '0.6'
280
+ version: 0.7.0
275
281
  - !ruby/object:Gem::Dependency
276
282
  name: webmock
277
283
  requirement: !ruby/object:Gem::Requirement
278
284
  requirements:
279
285
  - - "~>"
280
286
  - !ruby/object:Gem::Version
281
- version: '3.13'
287
+ version: '3.14'
282
288
  type: :development
283
289
  prerelease: false
284
290
  version_requirements: !ruby/object:Gem::Requirement
285
291
  requirements:
286
292
  - - "~>"
287
293
  - !ruby/object:Gem::Version
288
- version: '3.13'
294
+ version: '3.14'
289
295
  description: Configurable framework agnostic plain Ruby email validator. Verify email
290
296
  via Regex, DNS, SMTP and even more.
291
297
  email: