Truemail v1.4.0 Release Notes

Release Date: 2019-10-28 // over 2 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 (when smtp_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