Changelog History
Page 6
-
v1.4.0 Changes
October 28, 2019โ Added
- ๐ Event logger (ability to output validation logs to stdout/file)
- JSON serializer for validator instance
- [Changelog](CHANGELOG.md)
- Logo
0๏ธโฃ Truemail gem allows to output tracking events to stdout/file or both of these. Please note, at least one of the outputs must exist. Tracking event by default is
:error
Available tracking events
:all
, all detected events including success validation cases:unrecognized_error
, unrecognized errors only (whensmtp_safe_check = true
and SMTP server does not return an exact answer that the email does not exist):recognized_error
, recognized errors only:error
, recognized and unrecognized errors only
Truemail.configure do |config| config.logger = { tracking_event: :all, stdout: true, log_absolute_path: '/home/app/log/truemail.log' } end
Also starting from this version Truemail has built in JSON serializer for
Truemail::Validator
instance, so you can represent your email validation result as json.Truemail::Log::Serializer::Json.call(Truemail.validate('[email protected]'))
๐ Changed
- ๐ง
Truemail::Configuration
Truemail::Validator
Truemail::Validate::Regex
Truemail::VERSION
- ๐ gem documentation
- gem description
-
v1.3.0 Changes
September 16, 2019โ Added
- ๐ง Ability to create new
Truemail::Configuration
instance with block - ๐ง
Truemail::Validate::Smtp::Request::Configuration
๐ Changed
Truemail::Wrapper
Truemail::Validate::Base
Truemail::Validator
Truemail::Validator::Result
Truemail::Validate::Regex
Truemail::Validate::Mx
Truemail::Validate::Smtp
Truemail::Validate::Smtp::Request
Truemail::Audit::Base
Truemail::Auditor
Truemail::Audit::Ptr
::Truemail
moduleTruemail::VERSION
- ๐ gem documentation
- gem description
- ๐ง Ability to create new
-
v1.2.1 Changes
June 27, 2019๐ Fixed
- โ Removed memoization from
DomainListMatch#whitelisted_domain?
๐ Changed
Truemail::VERSION
- ๐ gem documentation
- โ Removed memoization from
-
v1.2.0 Changes
June 26, 2019โ Added
- ๐ง Configurable option: validation for whitelisted domains only.
When email domain in whitelist and
whitelist_validation
is sets equal totrue
validation type will be passed to other validators. Validation of email which not contains whitelisted domain always will returnfalse
.Truemail.configure do |config| config.verifier_email = '[email protected]' config.whitelisted_domains = ['white-domain.com'] config.whitelist_validation = true end
Email has whitelisted domain
Truemail.validate('[email protected]', with: :regex) #<Truemail::Validator:0x000055b8429f3490 @result=#<struct Truemail::Validator::Result success=true, email="[email protected]", domain=nil, mail_servers=[], errors={}, smtp_debug=nil>, @validation_type=:regex>
Email hasn't whitelisted domain
Truemail.validate('[email protected]', with: :regex) #<Truemail::Validator:0x000055b8429f3490 @result=#<struct Truemail::Validator::Result success=false, email="[email protected]", domain=nil, mail_servers=[], errors={}, smtp_debug=nil>, @validation_type=:blacklist>
๐ Changed
Truemail::VERSION
- ๐ gem documentation
-
v1.1.0 Changes
June 18, 2019โ Added
- ๐ง Configurable default validation type, issue details
0๏ธโฃ You can predefine default validation type for
Truemail.validate('[email protected]')
call without with-parameter. Available validation types::regex
,:mx
,:smtp
. By default validation type still remains:smtp
Truemail.configure do |config| config.verifier_email = '[email protected]' config.default_validation_type = :mx end
๐ Changed
Truemail::VERSION
- ๐ gem documentation
-
v1.0.1 Changes
June 08, 2019โ Added
- Result validation type marker for domain list match check
Truemail.validate('[email protected]') #<Truemail::Validator:0x000055b8429f3490 @result=#<struct Truemail::Validator::Result success=true, email="[email protected]", domain=nil, mail_servers=[], errors={}, smtp_debug=nil>, @validation_type=:whitelist> Truemail.validate('[email protected]') #<Truemail::Validator:0x000023y8429f3493 @result=#<struct Truemail::Validator::Result success=false, email="[email protected]", domain=nil, mail_servers=[], errors={}, smtp_debug=nil>, @validation_type=:blacklist>
๐ Changed
Truemail::VERSION
- ๐ gem documentation
-
v1.0 Changes
June 04, 2019โ Added
- Feature domain whitelist blacklist. Other validations will not processed even if it was defined in
validation_type_for
.
Truemail.configure do |config| # Optional parameter. Validation of email which contains whitelisted domain # always will return true. config.whitelisted_domains = ['somedomain1.com', 'somedomain2.com'] # Optional parameter. Validation of email which contains whitelisted domain # always will return false. config.blacklisted_domains = ['somedomain1.com', 'somedomain2.com'] end
and
Truemail.configuration.whitelisted_domains = ['somedomain1.com', 'somedomain2.com'] Truemail.configuration.blacklisted_domains = ['somedomain1.com', 'somedomain2.com']
โ Removed
:skip
validation type forvalidation_type_for
๐ Fixed
- error key in
lower_snake_case
๐ Changed
Truemail::VERSION
- ๐ gem documentation
- Feature domain whitelist blacklist. Other validations will not processed even if it was defined in
-
v0.2 Changes
May 23, 2019โ Added
- skip validation by domain for
validation_type_for
configuration option:
Truemail.configure do |config| config.validation_type_for = { 'somedomain.com' => :skip } end
and
Truemail.configuration.validation_type_for = { 'somedomain.com' => :skip }
๐ Changed
Truemail::VERSION
- ๐ gem documentation
- skip validation by domain for
-
v0.1.10 Changes
May 10, 2019โ Added
- ๐ง SMTP error body configurable option, issue details
๐ Changed
Truemail::VERSION
- ๐ gem documentation
-
v0.1.9 Changes
April 29, 2019๐ Fixed
- Empty ptr constant