lib/truemail/configuration.rb in truemail-2.6.6 vs lib/truemail/configuration.rb in truemail-2.7.0
- old
+ new
@@ -4,10 +4,11 @@
class Configuration
DEFAULT_CONNECTION_TIMEOUT = 2
DEFAULT_RESPONSE_TIMEOUT = 2
DEFAULT_CONNECTION_ATTEMPTS = 2
DEFAULT_VALIDATION_TYPE = :smtp
+ DEFAULT_SMTP_PORT = 25
DEFAULT_LOGGER_OPTIONS = { tracking_event: :error, stdout: false, log_absolute_path: nil }.freeze
SETTERS = %i[
email_pattern
smtp_error_body_pattern
connection_timeout
@@ -15,10 +16,11 @@
connection_attempts
whitelisted_domains
blacklisted_domains
blacklisted_mx_ip_addresses
dns
+ smtp_port
].freeze
attr_reader :verifier_email,
:verifier_domain,
:default_validation_type,
@@ -94,9 +96,10 @@
smtp_error_body_pattern: Truemail::RegexConstant::REGEX_SMTP_ERROR_BODY_PATTERN,
connection_timeout: Truemail::Configuration::DEFAULT_CONNECTION_TIMEOUT,
response_timeout: Truemail::Configuration::DEFAULT_RESPONSE_TIMEOUT,
connection_attempts: Truemail::Configuration::DEFAULT_CONNECTION_ATTEMPTS,
default_validation_type: Truemail::Configuration::DEFAULT_VALIDATION_TYPE,
+ smtp_port: Truemail::Configuration::DEFAULT_SMTP_PORT,
validation_type_by_domain: {},
whitelisted_domains: [],
whitelist_validation: false,
blacklisted_domains: [],
blacklisted_mx_ip_addresses: [],