truemail 1.7.0 → 1.7.1

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: eb8cb5fec7b8a099bb4861bf2e07d72236d93a22c1dfd79eaef2c722d9160765
4
- data.tar.gz: 05174034b4c4f493cd43c0d2dbb2380972bd6ee884f75592bde43300efc33e28
3
+ metadata.gz: '08c2fc87715dca966f6671f6b1d58d58e9d411bb01ae460ff31a34125d8f4a14'
4
+ data.tar.gz: 30ef54377bce7d03294e73dafbbb9d637ed8d6e55dfbf0931768a1246837b45d
5
5
  SHA512:
6
- metadata.gz: cd660c9f167bdd910788d66eca957c7332917ce8fa1e5a1dca807efa2c256f7b0feb5c6fdecd43321afd0eb50b27f3c8d768f796e3ca1bb3c2173f1565aac58f
7
- data.tar.gz: 78eefc8c3737e5f878fcb6bf18ddba001e555b230ff02b422b0b1d77002c4834dda2924e38f660f340fec4438af3967b81ae9e095e00fe5a213c13a5d256f30a
6
+ metadata.gz: 9ef76732a55fb837e0f0eeb77da337a34b5b019e9f774debc777f5a4155c4a7ba6640ca245e106c90dd560814f87870513664a601986518e4f23399b1351ce56
7
+ data.tar.gz: 203da733353f7377bda0527d6f330281c1d8357b6e65ba384c3f80decfcc8cdbf2cec8b6f80a31aa967e22bfa9e4afa16c77d576412848f397ba91cfb2035e8e
@@ -1,11 +1,59 @@
1
1
  # Changelog
2
2
  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).
3
3
 
4
+ ## [1.7.1] - 2020.05.10
5
+
6
+ ## Added
7
+
8
+ - Ability to show `not_rfc_mx_lookup_flow` attribute in serialized validation result
9
+
10
+ ```ruby
11
+ Truemail.validate('nonexistent_email@bestweb.com.ua').as_json
12
+
13
+ =>
14
+ # Serialized Truemail::Validator instance
15
+ {
16
+ "date": "2020-05-10 10:00:00 +0200",
17
+ "email": "nonexistent_email@bestweb.com.ua",
18
+ "validation_type": "smtp",
19
+ "success": false,
20
+ "errors": {
21
+ "smtp": "smtp error"
22
+ },
23
+ "smtp_debug": [
24
+ {
25
+ "mail_host": "213.180.193.89",
26
+ "port_opened": true,
27
+ "connection": true,
28
+ "errors": {
29
+ "rcptto": "550 5.7.1 No such user!\n"
30
+ }
31
+ }
32
+ ],
33
+ "configuration": {
34
+ "validation_type_by_domain": null,
35
+ "whitelist_validation": false,
36
+ "whitelisted_domains": null,
37
+ "blacklisted_domains": null,
38
+ "not_rfc_mx_lookup_flow": false,
39
+ "smtp_safe_check": false,
40
+ "email_pattern": "default gem value",
41
+ "smtp_error_body_pattern": "default gem value"
42
+ }
43
+ }
44
+ ```
45
+
46
+ ### Changed
47
+
48
+ - `Truemail::Log::Serializer::Base`
49
+ - `Truemail::VERSION`
50
+ - gem documentation
51
+
4
52
  ## [1.7.0] - 2020.05.09
5
53
 
6
54
  ## Added
7
55
 
8
- - Possibility to use not RFC MX lookup flow (MX and Null MX records will be checked on the DNS validation layer only)
56
+ - Ability to use not RFC MX lookup flow (MX and Null MX records will be checked on the DNS validation layer only)
9
57
 
10
58
  ```ruby
11
59
  Truemail.configure do |config|
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- truemail (1.7.0)
4
+ truemail (1.7.1)
5
5
  simpleidn (~> 0.1.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -941,6 +941,7 @@ Truemail::Log::Serializer::Json.call(Truemail.validate('nonexistent_email@bestwe
941
941
  "whitelist_validation": false,
942
942
  "whitelisted_domains": null,
943
943
  "blacklisted_domains": null,
944
+ "not_rfc_mx_lookup_flow": false,
944
945
  "smtp_safe_check": false,
945
946
  "email_pattern": "default gem value",
946
947
  "smtp_error_body_pattern": "default gem value"
@@ -1026,7 +1027,7 @@ Truemail.validate('nonexistent_email@bestweb.com.ua').as_json
1026
1027
  =>
1027
1028
  # Serialized Truemail::Validator instance
1028
1029
  {
1029
- "date": "2020-02-01 10:00:00 +0200",
1030
+ "date": "2020-05-10 10:00:00 +0200",
1030
1031
  "email": "nonexistent_email@bestweb.com.ua",
1031
1032
  "validation_type": "smtp",
1032
1033
  "success": false,
@@ -1048,6 +1049,7 @@ Truemail.validate('nonexistent_email@bestweb.com.ua').as_json
1048
1049
  "whitelist_validation": false,
1049
1050
  "whitelisted_domains": null,
1050
1051
  "blacklisted_domains": null,
1052
+ "not_rfc_mx_lookup_flow": false,
1051
1053
  "smtp_safe_check": false,
1052
1054
  "email_pattern": "default gem value",
1053
1055
  "smtp_error_body_pattern": "default gem value"
@@ -67,6 +67,7 @@ module Truemail
67
67
  whitelist_validation: validation_configuration.whitelist_validation,
68
68
  whitelisted_domains: whitelisted_domains,
69
69
  blacklisted_domains: blacklisted_domains,
70
+ not_rfc_mx_lookup_flow: validation_configuration.not_rfc_mx_lookup_flow,
70
71
  smtp_safe_check: validation_configuration.smtp_safe_check,
71
72
  email_pattern: email_pattern,
72
73
  smtp_error_body_pattern: smtp_error_body_pattern
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Truemail
4
- VERSION = '1.7.0'
4
+ VERSION = '1.7.1'
5
5
  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.7.0
4
+ version: 1.7.1
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-05-09 00:00:00.000000000 Z
11
+ date: 2020-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simpleidn