github truemail-rb/truemail v1.4.0

latest releases: v3.3.1, v3.3.0, v3.2.0...
5 years ago

Event logger feature

  1. Implemented Truemail::Logger class
  2. Implemented Truemail::Log::Event class
  3. Implemented Truemail::Log::Serializer::Base class
  4. Implemented Truemail::Log::Serializer::Text class
  5. Implemented Truemail::Log::Serializer::Json class
  6. Updated Truemail::Configuration
  7. Updated Truemail::Validator
  8. Updated Truemail::Validate::Regex
  9. Added changelog
  10. Updated gem version to 1.4.0
  11. Updated gem description
  12. Updated readme

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('nonexistent_email@bestweb.com.ua'))

Don't miss a new truemail release

NewReleases is sending notifications on new releases.