-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/Update base serializer attributes (#82)
* Added ability to show not_rfc_mx_lookup_flow attribute in serialized validation result * Updated Truemail::Log::Serializer::Base, tests/json schema * Updated documentation * Updated changelog * Updated gem version
- Loading branch information
Showing
8 changed files
with
392 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,59 @@ | ||
# Changelog | ||
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). | ||
|
||
## [1.7.1] - 2020.05.10 | ||
|
||
## Added | ||
|
||
- Ability to show `not_rfc_mx_lookup_flow` attribute in serialized validation result | ||
|
||
```ruby | ||
Truemail.validate('[email protected]').as_json | ||
|
||
=> | ||
# Serialized Truemail::Validator instance | ||
{ | ||
"date": "2020-05-10 10:00:00 +0200", | ||
"email": "[email protected]", | ||
"validation_type": "smtp", | ||
"success": false, | ||
"errors": { | ||
"smtp": "smtp error" | ||
}, | ||
"smtp_debug": [ | ||
{ | ||
"mail_host": "213.180.193.89", | ||
"port_opened": true, | ||
"connection": true, | ||
"errors": { | ||
"rcptto": "550 5.7.1 No such user!\n" | ||
} | ||
} | ||
], | ||
"configuration": { | ||
"validation_type_by_domain": null, | ||
"whitelist_validation": false, | ||
"whitelisted_domains": null, | ||
"blacklisted_domains": null, | ||
"not_rfc_mx_lookup_flow": false, | ||
"smtp_safe_check": false, | ||
"email_pattern": "default gem value", | ||
"smtp_error_body_pattern": "default gem value" | ||
} | ||
} | ||
``` | ||
|
||
### Changed | ||
|
||
- `Truemail::Log::Serializer::Base` | ||
- `Truemail::VERSION` | ||
- gem documentation | ||
|
||
## [1.7.0] - 2020.05.09 | ||
|
||
## Added | ||
|
||
- Possibility to use not RFC MX lookup flow (MX and Null MX records will be checked on the DNS validation layer only) | ||
- Ability to use not RFC MX lookup flow (MX and Null MX records will be checked on the DNS validation layer only) | ||
|
||
```ruby | ||
Truemail.configure do |config| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
truemail (1.7.0) | ||
truemail (1.7.1) | ||
simpleidn (~> 0.1.1) | ||
|
||
GEM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -941,6 +941,7 @@ Truemail::Log::Serializer::Json.call(Truemail.validate('nonexistent_email@bestwe | |
"whitelist_validation": false, | ||
"whitelisted_domains": null, | ||
"blacklisted_domains": null, | ||
"not_rfc_mx_lookup_flow": false, | ||
"smtp_safe_check": false, | ||
"email_pattern": "default gem value", | ||
"smtp_error_body_pattern": "default gem value" | ||
|
@@ -1026,7 +1027,7 @@ Truemail.validate('[email protected]').as_json | |
=> | ||
# Serialized Truemail::Validator instance | ||
{ | ||
"date": "2020-02-01 10:00:00 +0200", | ||
"date": "2020-05-10 10:00:00 +0200", | ||
"email": "[email protected]", | ||
"validation_type": "smtp", | ||
"success": false, | ||
|
@@ -1048,6 +1049,7 @@ Truemail.validate('[email protected]').as_json | |
"whitelist_validation": false, | ||
"whitelisted_domains": null, | ||
"blacklisted_domains": null, | ||
"not_rfc_mx_lookup_flow": false, | ||
"smtp_safe_check": false, | ||
"email_pattern": "default gem value", | ||
"smtp_error_body_pattern": "default gem value" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Truemail | ||
VERSION = '1.7.0' | ||
VERSION = '1.7.1' | ||
end |
Oops, something went wrong.