truemail 1.9.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,8 +31,8 @@ module Truemail
31
31
  end
32
32
 
33
33
  def run
34
- session.start do |smtp_request|
35
- response.connection = true
34
+ session.start(configuration.verifier_domain) do |smtp_request|
35
+ response.connection = response.helo = true
36
36
  smtp_handshakes(smtp_request, response)
37
37
  end
38
38
  rescue => error
@@ -83,7 +83,6 @@ module Truemail
83
83
 
84
84
  def session_data
85
85
  {
86
- helo: configuration.verifier_domain,
87
86
  mailfrom: configuration.verifier_email,
88
87
  rcptto: email
89
88
  }
@@ -18,7 +18,7 @@ module Truemail
18
18
 
19
19
  attr_reader :validation_type
20
20
 
21
- def initialize(email, with: nil, configuration:)
21
+ def initialize(email, configuration:, with: nil)
22
22
  with ||= configuration.default_validation_type
23
23
  raise Truemail::ArgumentError.new(with, :argument) unless Truemail::Validator::VALIDATION_TYPES.include?(with)
24
24
  @result = Truemail::Validator::Result.new(email: email, configuration: configuration)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Truemail
4
- VERSION = '1.9.0'
4
+ VERSION = '2.0.2'
5
5
  end
@@ -13,15 +13,15 @@ Gem::Specification.new do |spec|
13
13
  spec.summary = %(truemail)
14
14
  spec.description = %(Configurable framework agnostic plain Ruby email validator. Verify email via Regex, DNS and SMTP.)
15
15
 
16
- spec.homepage = 'https://github.com/rubygarage/truemail'
16
+ spec.homepage = 'https://github.com/truemail-rb/truemail'
17
17
  spec.license = 'MIT'
18
18
 
19
19
  spec.metadata = {
20
20
  'homepage_uri' => 'https://truemail-rb.org',
21
- 'changelog_uri' => 'https://github.com/rubygarage/truemail/blob/master/CHANGELOG.md',
22
- 'source_code_uri' => 'https://github.com/rubygarage/truemail',
23
- 'documentation_uri' => 'https://truemail-rb.org/truemail-gem/',
24
- 'bug_tracker_uri' => 'https://github.com/rubygarage/truemail/issues'
21
+ 'changelog_uri' => 'https://github.com/truemail-rb/truemail/blob/master/CHANGELOG.md',
22
+ 'source_code_uri' => 'https://github.com/truemail-rb/truemail',
23
+ 'documentation_uri' => 'https://truemail-rb.org/truemail-gem',
24
+ 'bug_tracker_uri' => 'https://github.com/truemail-rb/truemail/issues'
25
25
  }
26
26
 
27
27
  spec.required_ruby_version = '>= 2.5.0'
@@ -38,14 +38,14 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency 'fasterer', '~> 0.8.3'
39
39
  spec.add_development_dependency 'ffaker', '~> 2.17'
40
40
  spec.add_development_dependency 'json_matchers', '~> 0.11.1'
41
- spec.add_development_dependency 'overcommit', '~> 0.55.0'
41
+ spec.add_development_dependency 'overcommit', '~> 0.57.0'
42
42
  spec.add_development_dependency 'pry-byebug', '~> 3.9'
43
43
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
44
- spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.1'
45
- spec.add_development_dependency 'rspec', '~> 3.9'
46
- spec.add_development_dependency 'rubocop', '~> 0.89.1'
47
- spec.add_development_dependency 'rubocop-performance', '~> 1.7', '>= 1.7.1'
48
- spec.add_development_dependency 'rubocop-rspec', '~> 1.43', '>= 1.43.2'
44
+ spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.2'
45
+ spec.add_development_dependency 'rspec', '~> 3.10'
46
+ spec.add_development_dependency 'rubocop', '~> 1.3'
47
+ spec.add_development_dependency 'rubocop-performance', '~> 1.8', '>= 1.8.1'
48
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.0'
49
49
  spec.add_development_dependency 'simplecov', '~> 0.17.1'
50
- spec.add_development_dependency 'truemail-rspec', '~> 0.2.0'
50
+ spec.add_development_dependency 'truemail-rspec', '~> 0.2.1'
51
51
  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: 1.9.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Trotsenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simpleidn
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.55.0
103
+ version: 0.57.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.55.0
110
+ version: 0.57.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: pry-byebug
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -151,7 +151,7 @@ dependencies:
151
151
  version: '6.0'
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
- version: 6.0.1
154
+ version: 6.0.2
155
155
  type: :development
156
156
  prerelease: false
157
157
  version_requirements: !ruby/object:Gem::Requirement
@@ -161,75 +161,69 @@ dependencies:
161
161
  version: '6.0'
162
162
  - - ">="
163
163
  - !ruby/object:Gem::Version
164
- version: 6.0.1
164
+ version: 6.0.2
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: rspec
167
167
  requirement: !ruby/object:Gem::Requirement
168
168
  requirements:
169
169
  - - "~>"
170
170
  - !ruby/object:Gem::Version
171
- version: '3.9'
171
+ version: '3.10'
172
172
  type: :development
173
173
  prerelease: false
174
174
  version_requirements: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - "~>"
177
177
  - !ruby/object:Gem::Version
178
- version: '3.9'
178
+ version: '3.10'
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: rubocop
181
181
  requirement: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - "~>"
184
184
  - !ruby/object:Gem::Version
185
- version: 0.89.1
185
+ version: '1.3'
186
186
  type: :development
187
187
  prerelease: false
188
188
  version_requirements: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - "~>"
191
191
  - !ruby/object:Gem::Version
192
- version: 0.89.1
192
+ version: '1.3'
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: rubocop-performance
195
195
  requirement: !ruby/object:Gem::Requirement
196
196
  requirements:
197
197
  - - "~>"
198
198
  - !ruby/object:Gem::Version
199
- version: '1.7'
199
+ version: '1.8'
200
200
  - - ">="
201
201
  - !ruby/object:Gem::Version
202
- version: 1.7.1
202
+ version: 1.8.1
203
203
  type: :development
204
204
  prerelease: false
205
205
  version_requirements: !ruby/object:Gem::Requirement
206
206
  requirements:
207
207
  - - "~>"
208
208
  - !ruby/object:Gem::Version
209
- version: '1.7'
209
+ version: '1.8'
210
210
  - - ">="
211
211
  - !ruby/object:Gem::Version
212
- version: 1.7.1
212
+ version: 1.8.1
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: rubocop-rspec
215
215
  requirement: !ruby/object:Gem::Requirement
216
216
  requirements:
217
217
  - - "~>"
218
218
  - !ruby/object:Gem::Version
219
- version: '1.43'
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: 1.43.2
219
+ version: '2.0'
223
220
  type: :development
224
221
  prerelease: false
225
222
  version_requirements: !ruby/object:Gem::Requirement
226
223
  requirements:
227
224
  - - "~>"
228
225
  - !ruby/object:Gem::Version
229
- version: '1.43'
230
- - - ">="
231
- - !ruby/object:Gem::Version
232
- version: 1.43.2
226
+ version: '2.0'
233
227
  - !ruby/object:Gem::Dependency
234
228
  name: simplecov
235
229
  requirement: !ruby/object:Gem::Requirement
@@ -250,14 +244,14 @@ dependencies:
250
244
  requirements:
251
245
  - - "~>"
252
246
  - !ruby/object:Gem::Version
253
- version: 0.2.0
247
+ version: 0.2.1
254
248
  type: :development
255
249
  prerelease: false
256
250
  version_requirements: !ruby/object:Gem::Requirement
257
251
  requirements:
258
252
  - - "~>"
259
253
  - !ruby/object:Gem::Version
260
- version: 0.2.0
254
+ version: 0.2.1
261
255
  description: Configurable framework agnostic plain Ruby email validator. Verify email
262
256
  via Regex, DNS and SMTP.
263
257
  email:
@@ -268,7 +262,11 @@ extra_rdoc_files: []
268
262
  files:
269
263
  - ".circleci/config.yml"
270
264
  - ".codeclimate.yml"
271
- - ".github/ISSUE_TEMPLATE.md"
265
+ - ".github/BRANCH_NAMING_CONVENTION.md"
266
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
267
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
268
+ - ".github/ISSUE_TEMPLATE/issue_report.md"
269
+ - ".github/ISSUE_TEMPLATE/question.md"
272
270
  - ".github/PULL_REQUEST_TEMPLATE.md"
273
271
  - ".gitignore"
274
272
  - ".overcommit.yml"
@@ -315,15 +313,15 @@ files:
315
313
  - lib/truemail/worker.rb
316
314
  - lib/truemail/wrapper.rb
317
315
  - truemail.gemspec
318
- homepage: https://github.com/rubygarage/truemail
316
+ homepage: https://github.com/truemail-rb/truemail
319
317
  licenses:
320
318
  - MIT
321
319
  metadata:
322
320
  homepage_uri: https://truemail-rb.org
323
- changelog_uri: https://github.com/rubygarage/truemail/blob/master/CHANGELOG.md
324
- source_code_uri: https://github.com/rubygarage/truemail
325
- documentation_uri: https://truemail-rb.org/truemail-gem/
326
- bug_tracker_uri: https://github.com/rubygarage/truemail/issues
321
+ changelog_uri: https://github.com/truemail-rb/truemail/blob/master/CHANGELOG.md
322
+ source_code_uri: https://github.com/truemail-rb/truemail
323
+ documentation_uri: https://truemail-rb.org/truemail-gem
324
+ bug_tracker_uri: https://github.com/truemail-rb/truemail/issues
327
325
  post_install_message:
328
326
  rdoc_options: []
329
327
  require_paths: