truemail 2.2.3 → 2.3.4

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: 57ce495b7ea8e70dc9788b5d5528f3386a57d69233f645ab665f1a187ca08e08
4
- data.tar.gz: e5696bb995de86253fec296cd6985ddb5a26f93ccc24e4a95a21b5f4ded05681
3
+ metadata.gz: 9a738f1fd2c236927014ba6a2303921ae8a90f33866bc4bc58e95fd8c8061e71
4
+ data.tar.gz: 43c708aa1253358616601ffce03a9ba743eb44ba428d47c67b02ea13712dea26
5
5
  SHA512:
6
- metadata.gz: 3ac657676afa3a27b5b2192ec7650fd742200fd4a0d5da7a21346f4a3fb75bc2038b1183d4ebdf63ad0fcd579f05169bff6bebdf1a9c2817092d634a7974a30f
7
- data.tar.gz: 3f7f43b6ee28ef483c5fdd9a31fb615f98c688e849e0363370e59d3818d3a572272c50daa7a4422dd1f12b0c5ada49e12468f8016e9a17144fc94354d6478eb7
6
+ metadata.gz: f9546a0c5c6db1e8653536f084e746bd98d48454c9b8ff7c05a23c2551315b500ed2d6be55d050f4f5ba4d1794107330453dd6b5a346e3a20feb432aeb47d5e3
7
+ data.tar.gz: 5b955a25e540ef7330360e8b8b8ce65b02eea78af89d6f1f288c9db2e83122ea7894f33df1772e126107a63911e7cca20dd671ba22c2c1db9f519da50b2855c1
data/.circleci/config.yml CHANGED
@@ -1,3 +1,5 @@
1
+ version: 2.1
2
+
1
3
  defaults: &defaults
2
4
  working_directory: ~/truemail
3
5
  docker:
@@ -5,6 +7,9 @@ defaults: &defaults
5
7
  environment:
6
8
  CC_TEST_REPORTER_ID: 693272a1328521f6f7c09d7ffd419b21c00410da26e98e94c687fdd38b26e2cb
7
9
 
10
+ orbs:
11
+ ruby: circleci/ruby@1.1.2
12
+
8
13
  references:
9
14
  restore_bundle_cache: &restore_bundle_cache
10
15
  restore_cache:
@@ -29,7 +34,6 @@ references:
29
34
  curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
30
35
  chmod +x ./cc-test-reporter
31
36
 
32
- version: 2
33
37
  jobs:
34
38
  linters:
35
39
  <<: *defaults
@@ -81,9 +85,28 @@ jobs:
81
85
  command: |
82
86
  ./cc-test-reporter sum-coverage --output - --parts $CIRCLE_NODE_TOTAL coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
83
87
 
88
+ compatibility-with-ruby:
89
+ parameters:
90
+ ruby-version:
91
+ type: string
92
+ docker:
93
+ - image: cimg/ruby:<< parameters.ruby-version >>
94
+ steps:
95
+ - checkout
96
+ - ruby/install-deps:
97
+ bundler-version: '1.16.6'
98
+ with-cache: false
99
+ path: './vendor/custom_bundle'
100
+ - run:
101
+ name: Running compatibility tests
102
+ command: bundle exec rspec
103
+
84
104
  workflows:
85
- version: 2
86
- build:
105
+ build_and_test:
87
106
  jobs:
88
107
  - linters
89
108
  - tests
109
+ - compatibility-with-ruby:
110
+ matrix:
111
+ parameters:
112
+ ruby-version: ["2.6", "2.7", "3.0"]
data/.codeclimate.yml CHANGED
@@ -7,7 +7,7 @@ checks:
7
7
  plugins:
8
8
  rubocop:
9
9
  enabled: true
10
- channel: rubocop-1-5
10
+ channel: rubocop-1-12
11
11
 
12
12
  reek:
13
13
  enabled: true
data/.reek.yml CHANGED
@@ -44,6 +44,8 @@ detectors:
44
44
  - Truemail::Configuration#logger_options
45
45
  - Truemail::Log::Serializer::Base#errors
46
46
  - Truemail::Log::Serializer::ValidatorBase#replace_invalid_chars
47
+ - Truemail::Dns::Worker#nameserver_port
48
+ - Truemail::Configuration#check_dns_settings
47
49
 
48
50
  ControlParameter:
49
51
  exclude:
@@ -73,5 +75,10 @@ detectors:
73
75
  exclude:
74
76
  - Truemail::Configuration#logger=
75
77
 
78
+ TooManyConstants:
79
+ exclude:
80
+ - Truemail::Configuration
81
+ - Truemail::RegexConstant
82
+
76
83
  exclude_paths:
77
84
  - spec/support/helpers
data/.rubocop.yml CHANGED
@@ -145,6 +145,15 @@ Style/HashExcept:
145
145
  Style/EndlessMethod:
146
146
  Enabled: true
147
147
 
148
+ Style/IfWithBooleanLiteralBranches:
149
+ Enabled: true
150
+
151
+ Style/HashConversion:
152
+ Enabled: true
153
+
154
+ Style/StringChars:
155
+ Enabled: true
156
+
148
157
  Layout/LineLength:
149
158
  Max: 140
150
159
 
@@ -287,6 +296,21 @@ Lint/LambdaWithoutLiteralBlock:
287
296
  Lint/RedundantDirGlobSort:
288
297
  Enabled: true
289
298
 
299
+ Lint/NumberedParameterAssignment:
300
+ Enabled: true
301
+
302
+ Lint/OrAssignmentToConstant:
303
+ Enabled: true
304
+
305
+ Lint/SymbolConversion:
306
+ Enabled: true
307
+
308
+ Lint/TripleQuotes:
309
+ Enabled: true
310
+
311
+ Gemspec/DateAssignment:
312
+ Enabled: true
313
+
290
314
  Performance/AncestorsInclude:
291
315
  Enabled: true
292
316
 
@@ -326,6 +350,12 @@ Performance/ConstantRegexp:
326
350
  Performance/MethodObjectAsBlock:
327
351
  Enabled: true
328
352
 
353
+ Performance/RedundantEqualityComparisonBlock:
354
+ Enabled: true
355
+
356
+ Performance/RedundantSplitRegexpArgument:
357
+ Enabled: true
358
+
329
359
  RSpec/ExampleLength:
330
360
  Enabled: false
331
361
 
data/CHANGELOG.md CHANGED
@@ -2,7 +2,73 @@
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.2.3] - 2020.01.12
5
+ ## [2.3.4] - 2021.04.16
6
+
7
+ ### Fixed
8
+
9
+ Fixed bug with impossibility to use valid dns port number. Now validation for dns port for range `1..65535` works as expected.
10
+
11
+ - Updated `Truemail::RegexConstant::REGEX_PORT_NUMBER`, tests
12
+ - Updated gem documentation
13
+ - CircleCI config moved to `.circleci/config.yml`
14
+
15
+ ## [2.3.3] - 2021.04.14
16
+
17
+ ### Changed
18
+
19
+ - Updated gem development dependencies
20
+ - Updated rubocop/codeclimate config
21
+ - Updated CircleCI config
22
+
23
+ ## [2.3.2] - 2021.03.08
24
+
25
+ ### Changed
26
+
27
+ - Updated gem development dependencies
28
+ - Updated rubocop/codeclimate config
29
+
30
+ ## [2.3.1] - 2021.02.26
31
+
32
+ ### Changed
33
+
34
+ - Updated gem development dependencies
35
+ - Updated rubocop/codeclimate config
36
+ - Updated tests
37
+
38
+ ## [2.3.0] - 2021.02.05
39
+
40
+ ### Added
41
+
42
+ - Ability to use custom DNS gateway. Thanks [@le0pard](https://github.com/le0pard) for the great idea and [@verdi8](https://github.com/verdi8) for feature [request](https://github.com/truemail-rb/truemail/issues/126).
43
+
44
+ ```ruby
45
+ Truemail.configure do |config|
46
+ # Optional parameter. This option will provide to use custom DNS gateway when Truemail
47
+ # interacts with DNS. If you won't specify nameserver's ports Truemail will use default
48
+ # DNS TCP/UDP port 53. By default Truemail uses DNS gateway from system settings
49
+ # and this option is equal to empty array.
50
+ config.dns = ['10.0.0.1', '10.0.0.2:5300']
51
+ end
52
+ ```
53
+
54
+ - Added `Truemail::Dns::Resolver`
55
+ - Added `Truemail::Dns::Worker`
56
+
57
+ ### Changed
58
+
59
+ - Updated `Truemail::Configuration`, tests
60
+ - Updated `Truemail::Validate::Mx`, tests
61
+ - Updated `Truemail::Audit::Base`
62
+ - Updated `Truemail::Audit::Dns`, tests
63
+ - Updated `Truemail::Audit::Ptr`, tests
64
+ - Updated `Truemail::Log::Serializer::Base`, dependent tests
65
+ - Updated namespaces for stdlib classes
66
+ - Updated gem development dependencies
67
+ - Updated linters/codeclimate configs
68
+ - Updated gem runtime/development dependencies
69
+ - Updated gem documentation, changelog, version
70
+
71
+ ## [2.2.3] - 2021.01.12
6
72
 
7
73
  ### Fixed
8
74
 
data/Gemfile.lock CHANGED
@@ -1,42 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- truemail (2.2.3)
5
- simpleidn (~> 0.1.1)
4
+ truemail (2.3.4)
5
+ simpleidn (~> 0.2.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.1)
11
- bundler-audit (0.7.0.1)
10
+ addressable (2.7.0)
11
+ public_suffix (>= 2.0.2, < 5.0)
12
+ ast (2.4.2)
13
+ bundler-audit (0.8.0)
12
14
  bundler (>= 1.2.0, < 3)
13
- thor (>= 0.18, < 2)
15
+ thor (~> 1.0)
14
16
  byebug (11.1.3)
15
17
  childprocess (4.0.0)
16
18
  coderay (1.1.3)
17
19
  colorize (0.8.1)
18
- concurrent-ruby (1.1.7)
20
+ concurrent-ruby (1.1.8)
21
+ crack (0.4.5)
22
+ rexml
19
23
  diff-lcs (1.4.4)
20
- docile (1.3.4)
21
- faker (2.15.1)
24
+ dns_mock (1.2.1)
25
+ docile (1.3.5)
26
+ faker (2.17.0)
22
27
  i18n (>= 1.6, < 2)
23
- fasterer (0.8.3)
28
+ fasterer (0.9.0)
24
29
  colorize (~> 0.7)
25
30
  ruby_parser (>= 3.14.1)
26
- i18n (1.8.7)
31
+ hashdiff (1.0.1)
32
+ i18n (1.8.10)
27
33
  concurrent-ruby (~> 1.0)
28
34
  iniparse (1.5.0)
29
35
  json (2.5.1)
30
36
  json_matchers (0.11.1)
31
37
  json_schema
32
- json_schema (0.20.9)
38
+ json_schema (0.21.0)
33
39
  kwalify (0.7.2)
34
40
  method_source (1.0.0)
35
41
  overcommit (0.57.0)
36
42
  childprocess (>= 0.6.3, < 5)
37
43
  iniparse (~> 1.4)
38
44
  parallel (1.20.1)
39
- parser (3.0.0.0)
45
+ parser (3.0.1.0)
40
46
  ast (~> 2.4.1)
41
47
  pry (0.13.1)
42
48
  coderay (~> 1.1)
@@ -44,7 +50,8 @@ GEM
44
50
  pry-byebug (3.9.0)
45
51
  byebug (~> 11.0)
46
52
  pry (~> 0.13.0)
47
- psych (3.3.0)
53
+ psych (3.3.1)
54
+ public_suffix (4.0.6)
48
55
  rainbow (3.0.0)
49
56
  rake (13.0.3)
50
57
  reek (6.0.3)
@@ -52,8 +59,8 @@ GEM
52
59
  parser (~> 3.0.0)
53
60
  psych (~> 3.1)
54
61
  rainbow (>= 2.0, < 4.0)
55
- regexp_parser (2.0.3)
56
- rexml (3.2.4)
62
+ regexp_parser (2.1.1)
63
+ rexml (3.2.5)
57
64
  rspec (3.10.0)
58
65
  rspec-core (~> 3.10.0)
59
66
  rspec-expectations (~> 3.10.0)
@@ -63,11 +70,11 @@ GEM
63
70
  rspec-expectations (3.10.1)
64
71
  diff-lcs (>= 1.2.0, < 2.0)
65
72
  rspec-support (~> 3.10.0)
66
- rspec-mocks (3.10.1)
73
+ rspec-mocks (3.10.2)
67
74
  diff-lcs (>= 1.2.0, < 2.0)
68
75
  rspec-support (~> 3.10.0)
69
- rspec-support (3.10.1)
70
- rubocop (1.8.1)
76
+ rspec-support (3.10.2)
77
+ rubocop (1.12.1)
71
78
  parallel (~> 1.10)
72
79
  parser (>= 3.0.0.0)
73
80
  rainbow (>= 2.2.2, < 4.0)
@@ -76,12 +83,12 @@ GEM
76
83
  rubocop-ast (>= 1.2.0, < 2.0)
77
84
  ruby-progressbar (~> 1.7)
78
85
  unicode-display_width (>= 1.4.0, < 3.0)
79
- rubocop-ast (1.4.0)
86
+ rubocop-ast (1.4.1)
80
87
  parser (>= 2.7.1.5)
81
- rubocop-performance (1.9.2)
88
+ rubocop-performance (1.10.2)
82
89
  rubocop (>= 0.90.0, < 2.0)
83
90
  rubocop-ast (>= 0.4.0)
84
- rubocop-rspec (2.1.0)
91
+ rubocop-rspec (2.2.0)
85
92
  rubocop (~> 1.0)
86
93
  rubocop-ast (>= 1.1.0)
87
94
  ruby-progressbar (1.11.0)
@@ -93,38 +100,44 @@ GEM
93
100
  json (>= 1.8, < 3)
94
101
  simplecov-html (~> 0.10.0)
95
102
  simplecov-html (0.10.2)
96
- simpleidn (0.1.1)
103
+ simpleidn (0.2.1)
97
104
  unf (~> 0.1.4)
98
- thor (1.0.1)
99
- truemail-rspec (0.3.3)
100
- faker (~> 2.15, >= 2.15.1)
105
+ thor (1.1.0)
106
+ truemail-rspec (0.4.0)
107
+ faker (~> 2.16)
101
108
  rspec (~> 3.10)
102
- truemail (~> 2.2)
109
+ truemail (>= 2.3)
103
110
  unf (0.1.4)
104
111
  unf_ext
105
112
  unf_ext (0.0.7.7)
106
113
  unicode-display_width (2.0.0)
114
+ webmock (3.12.2)
115
+ addressable (>= 2.3.6)
116
+ crack (>= 0.3.2)
117
+ hashdiff (>= 0.4.0, < 2.0.0)
107
118
 
108
119
  PLATFORMS
109
120
  ruby
110
121
 
111
122
  DEPENDENCIES
112
123
  bundler (~> 1.16)
113
- bundler-audit (~> 0.7.0.1)
114
- faker (~> 2.15, >= 2.15.1)
115
- fasterer (~> 0.8.3)
124
+ bundler-audit (~> 0.8.0)
125
+ dns_mock (~> 1.2, >= 1.2.1)
126
+ faker (~> 2.17)
127
+ fasterer (~> 0.9.0)
116
128
  json_matchers (~> 0.11.1)
117
129
  overcommit (~> 0.57.0)
118
130
  pry-byebug (~> 3.9)
119
131
  rake (~> 13.0, >= 13.0.3)
120
132
  reek (~> 6.0, >= 6.0.3)
121
133
  rspec (~> 3.10)
122
- rubocop (~> 1.8, >= 1.8.1)
123
- rubocop-performance (~> 1.9, >= 1.9.2)
124
- rubocop-rspec (~> 2.1)
134
+ rubocop (~> 1.12, >= 1.12.1)
135
+ rubocop-performance (~> 1.10, >= 1.10.2)
136
+ rubocop-rspec (~> 2.2)
125
137
  simplecov (~> 0.17.1)
126
138
  truemail!
127
- truemail-rspec (~> 0.3.3)
139
+ truemail-rspec (~> 0.4)
140
+ webmock (~> 3.12, >= 3.12.2)
128
141
 
129
142
  BUNDLED WITH
130
143
  1.16.6
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019-2020 Vladislav Trotsenko
3
+ Copyright (c) 2019-2021 Vladislav Trotsenko
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -132,6 +132,7 @@ You can use global gem configuration or custom independent configuration. Availa
132
132
  - whitelisted domains
133
133
  - whitelist validation
134
134
  - blacklisted domains
135
+ - custom DNS gateway(s)
135
136
  - RFC MX lookup flow
136
137
  - SMTP fail fast
137
138
  - SMTP safe check
@@ -201,6 +202,12 @@ Truemail.configure do |config|
201
202
  # It is equal to empty array by default.
202
203
  config.blacklisted_domains = ['somedomain1.com', 'somedomain2.com']
203
204
 
205
+ # Optional parameter. This option will provide to use custom DNS gateway when Truemail
206
+ # interacts with DNS. Valid port numbers are in the range 1-65535. If you won't specify
207
+ # nameserver's ports Truemail will use default DNS TCP/UDP port 53. By default Truemail
208
+ # uses DNS gateway from system settings and this option is equal to empty array.
209
+ config.dns = ['10.0.0.1', '10.0.0.2:54']
210
+
204
211
  # Optional parameter. This option will provide to use not RFC MX lookup flow.
205
212
  # It means that MX and Null MX records will be cheked on the DNS validation layer only.
206
213
  # By default this option is disabled.
@@ -242,6 +249,7 @@ Truemail.configuration
242
249
  @whitelisted_domains=[],
243
250
  @whitelist_validation=true,
244
251
  @blacklisted_domains=[],
252
+ @dns=[],
245
253
  @verifier_domain="somedomain.com",
246
254
  @verifier_email="verifier@example.com",
247
255
  @not_rfc_mx_lookup_flow=true,
@@ -272,6 +280,7 @@ Truemail.configuration
272
280
  @whitelisted_domains=[],
273
281
  @whitelist_validation=true,
274
282
  @blacklisted_domains=[],
283
+ @dns=[],
275
284
  @verifier_domain="somedomain.com",
276
285
  @verifier_email="verifier@example.com",
277
286
  @not_rfc_mx_lookup_flow=true,
@@ -352,6 +361,7 @@ Truemail.validate('email@white-domain.com')
352
361
  smtp_debug=nil>,
353
362
  configuration=#<Truemail::Configuration:0x00005629f801bd28
354
363
  @blacklisted_domains=["black-domain.com", "somedomain.com"],
364
+ @dns=[],
355
365
  @connection_attempts=2,
356
366
  @connection_timeout=2,
357
367
  @default_validation_type=:smtp,
@@ -399,6 +409,7 @@ Truemail.validate('email@white-domain.com', with: :regex)
399
409
  configuration=
400
410
  #<Truemail::Configuration:0x0000563f0d2605c8
401
411
  @blacklisted_domains=[],
412
+ @dns=[],
402
413
  @connection_attempts=2,
403
414
  @connection_timeout=2,
404
415
  @default_validation_type=:smtp,
@@ -432,6 +443,7 @@ Truemail.validate('email@domain.com', with: :regex)
432
443
  configuration=
433
444
  #<Truemail::Configuration:0x0000563f0cd82ab0
434
445
  @blacklisted_domains=[],
446
+ @dns=[],
435
447
  @connection_attempts=2,
436
448
  @connection_timeout=2,
437
449
  @default_validation_type=:smtp,
@@ -467,6 +479,7 @@ Truemail.validate('email@black-domain.com')
467
479
  configuration=
468
480
  #<Truemail::Configuration:0x0000563f0d36f4f0
469
481
  @blacklisted_domains=[],
482
+ @dns=[],
470
483
  @connection_attempts=2,
471
484
  @connection_timeout=2,
472
485
  @default_validation_type=:smtp,
@@ -502,6 +515,7 @@ Truemail.validate('email@somedomain.com')
502
515
  configuration=
503
516
  #<Truemail::Configuration:0x0000563f0d3f8fc0
504
517
  @blacklisted_domains=[],
518
+ @dns=[],
505
519
  @connection_attempts=2,
506
520
  @connection_timeout=2,
507
521
  @default_validation_type=:smtp,
@@ -553,6 +567,7 @@ Truemail.validate('email@example.com', with: :regex)
553
567
  configuration=
554
568
  #<Truemail::Configuration:0x000055aa56a54d48
555
569
  @blacklisted_domains=[],
570
+ @dns=[],
556
571
  @connection_attempts=2,
557
572
  @connection_timeout=2,
558
573
  @default_validation_type=:smtp,
@@ -596,6 +611,7 @@ Truemail.validate('email@example.com', with: :regex)
596
611
  configuration=
597
612
  #<Truemail::Configuration:0x0000560e58d80830
598
613
  @blacklisted_domains=[],
614
+ @dns=[],
599
615
  @connection_attempts=2,
600
616
  @connection_timeout=2,
601
617
  @default_validation_type=:smtp,
@@ -650,6 +666,7 @@ Truemail.validate('email@example.com', with: :mx)
650
666
  configuration=
651
667
  #<Truemail::Configuration:0x0000559b6e44af70
652
668
  @blacklisted_domains=[],
669
+ @dns=[],
653
670
  @connection_attempts=2,
654
671
  @connection_timeout=2,
655
672
  @default_validation_type=:smtp,
@@ -695,6 +712,7 @@ Truemail.validate('email@example.com', with: :mx)
695
712
  configuration=
696
713
  #<Truemail::Configuration:0x0000559b6e44af70
697
714
  @blacklisted_domains=[],
715
+ @dns=[],
698
716
  @connection_attempts=2,
699
717
  @connection_timeout=2,
700
718
  @default_validation_type=:smtp,
@@ -769,6 +787,7 @@ Truemail.validate('email@example.com')
769
787
  configuration=
770
788
  #<Truemail::Configuration:0x00007fdc4504f5c8
771
789
  @blacklisted_domains=[],
790
+ @dns=[],
772
791
  @connection_attempts=2,
773
792
  @connection_timeout=2,
774
793
  @default_validation_type=:smtp,
@@ -812,6 +831,7 @@ Truemail.validate('email@example.com')
812
831
  configuration=
813
832
  #<Truemail::Configuration:0x00005615e87b9298
814
833
  @blacklisted_domains=[],
834
+ @dns=[],
815
835
  @connection_attempts=2,
816
836
  @connection_timeout=2,
817
837
  @default_validation_type=:smtp,
@@ -862,6 +882,7 @@ Truemail.validate('email@example.com')
862
882
  configuration=
863
883
  #<Truemail::Configuration:0x00005615e87b9298
864
884
  @blacklisted_domains=[],
885
+ @dns=[],
865
886
  @connection_attempts=2,
866
887
  @connection_timeout=2,
867
888
  @default_validation_type=:smtp,
@@ -924,6 +945,7 @@ Truemail.validate('email@example.com')
924
945
  configuration=
925
946
  #<Truemail::Configuration:0x00005615e87b9298
926
947
  @blacklisted_domains=[],
948
+ @dns=[],
927
949
  @connection_attempts=2,
928
950
  @connection_timeout=2,
929
951
  @default_validation_type=:smtp,
@@ -971,6 +993,7 @@ Truemail.validate('email@example.com')
971
993
  configuration=
972
994
  #<Truemail::Configuration:0x00005615e87b9298
973
995
  @blacklisted_domains=[],
996
+ @dns=[],
974
997
  @connection_attempts=2,
975
998
  @connection_timeout=2,
976
999
  @default_validation_type=:smtp,
@@ -1019,6 +1042,7 @@ Truemail.host_audit
1019
1042
  configuration=
1020
1043
  #<Truemail::Configuration:0x00005615e86327a8
1021
1044
  @blacklisted_domains=[],
1045
+ @dns=[],
1022
1046
  @connection_attempts=2,
1023
1047
  @connection_timeout=2,
1024
1048
  @default_validation_type=:smtp,
@@ -1046,6 +1070,7 @@ Truemail.host_audit
1046
1070
  configuration=
1047
1071
  #<Truemail::Configuration:0x00005615e86327a8
1048
1072
  @blacklisted_domains=[],
1073
+ @dns=[],
1049
1074
  @connection_attempts=2,
1050
1075
  @connection_timeout=2,
1051
1076
  @default_validation_type=:smtp,
@@ -1097,15 +1122,16 @@ Truemail::Log::Serializer::AuditorJson.call(Truemail.host_audit)
1097
1122
  "dns": "A-record of verifier domain not refers to current host ip address", "ptr": "PTR-record does not reference to current verifier domain"
1098
1123
  },
1099
1124
  "configuration": {
1100
- "validation_type_by_domain": null,
1101
- "whitelist_validation": false,
1102
- "whitelisted_domains": null,
1103
1125
  "blacklisted_domains": null,
1126
+ "dns": null,
1127
+ "email_pattern": "default gem value",
1104
1128
  "not_rfc_mx_lookup_flow": false,
1129
+ "smtp_error_body_pattern": "default gem value",
1105
1130
  "smtp_fail_fast": false,
1106
1131
  "smtp_safe_check": false,
1107
- "email_pattern": "default gem value",
1108
- "smtp_error_body_pattern": "default gem value"
1132
+ "validation_type_by_domain": null,
1133
+ "whitelist_validation": false,
1134
+ "whitelisted_domains": null
1109
1135
  }
1110
1136
  }
1111
1137
  ```
@@ -1136,15 +1162,16 @@ Truemail::Log::Serializer::ValidatorJson.call(Truemail.validate('nonexistent_ema
1136
1162
  }
1137
1163
  ],
1138
1164
  "configuration": {
1139
- "validation_type_by_domain": null,
1140
- "whitelist_validation": false,
1141
- "whitelisted_domains": null,
1142
1165
  "blacklisted_domains": null,
1166
+ "dns": null,
1167
+ "email_pattern": "default gem value",
1143
1168
  "not_rfc_mx_lookup_flow": false,
1169
+ "smtp_error_body_pattern": "default gem value",
1144
1170
  "smtp_fail_fast": false,
1145
1171
  "smtp_safe_check": false,
1146
- "email_pattern": "default gem value",
1147
- "smtp_error_body_pattern": "default gem value"
1172
+ "validation_type_by_domain": null,
1173
+ "whitelist_validation": false,
1174
+ "whitelisted_domains": null
1148
1175
  }
1149
1176
  }
1150
1177
  ```
@@ -1177,15 +1204,16 @@ Truemail.host_audit.as_json
1177
1204
  "dns": "A-record of verifier domain not refers to current host ip address", "ptr": "PTR-record does not reference to current verifier domain"
1178
1205
  },
1179
1206
  "configuration": {
1180
- "validation_type_by_domain": null,
1181
- "whitelist_validation": false,
1182
- "whitelisted_domains": null,
1183
1207
  "blacklisted_domains": null,
1208
+ "dns": null,
1209
+ "email_pattern": "default gem value",
1184
1210
  "not_rfc_mx_lookup_flow": false,
1211
+ "smtp_error_body_pattern": "default gem value",
1185
1212
  "smtp_fail_fast": false,
1186
1213
  "smtp_safe_check": false,
1187
- "email_pattern": "default gem value",
1188
- "smtp_error_body_pattern": "default gem value"
1214
+ "validation_type_by_domain": null,
1215
+ "whitelist_validation": false,
1216
+ "whitelisted_domains": null
1189
1217
  }
1190
1218
  }
1191
1219
 
@@ -1213,15 +1241,16 @@ Truemail.validate('nonexistent_email@bestweb.com.ua').as_json
1213
1241
  }
1214
1242
  ],
1215
1243
  "configuration": {
1216
- "validation_type_by_domain": null,
1217
- "whitelist_validation": false,
1218
- "whitelisted_domains": null,
1219
1244
  "blacklisted_domains": null,
1245
+ "dns": null,
1246
+ "email_pattern": "default gem value",
1220
1247
  "not_rfc_mx_lookup_flow": false,
1248
+ "smtp_error_body_pattern": "default gem value",
1221
1249
  "smtp_fail_fast": false,
1222
1250
  "smtp_safe_check": false,
1223
- "email_pattern": "default gem value",
1224
- "smtp_error_body_pattern": "default gem value"
1251
+ "validation_type_by_domain": null,
1252
+ "whitelist_validation": false,
1253
+ "whitelisted_domains": null
1225
1254
  }
1226
1255
  }
1227
1256
  ```