Truemail v1.4.0 Release Notes
Release Date: 2019-10-28 // over 4 years ago-
โ 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