Bot releases are hidden (Show)
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.3.0...v1.3.1
Published by bestwebua 9 months ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.2.0...v1.3.0
Published by bestwebua 12 months ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.1.2...v1.2.0
Published by bestwebua about 1 year ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.1.1...v1.1.2
Published by bestwebua about 1 year ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.1.0...v1.1.1
Published by bestwebua over 1 year ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.0.0...v1.1.0
Published by bestwebua almost 2 years ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.9.2...v1.0.0
Published by bestwebua about 2 years ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.9.1...v0.9.2
Published by bestwebua over 2 years ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.9.0...v0.9.1
Published by bestwebua over 2 years ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.8.0...v0.9.0
Published by bestwebua over 2 years ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.7.0...v0.8.0
Published by bestwebua over 2 years ago
Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.6.0...v0.7.0
Ability to create Truemail::Validator
instance for MxBlacklist
validation layer:
# Truemail::Validator instance, successful case
create_validator(:mx_blacklist)
=> #<Truemail::Validator:0x00007fea91a1d528
@result=
#<struct Truemail::Validator::Result
success=true,
email="[email protected]",
domain="brakus-dooley.co",
mail_servers=["175.244.212.125", "69.106.253.221", "7.125.70.85", "152.249.195.7"],
errors={},
smtp_debug=nil,
configuration=
#<Truemail::Configuration:0x00007fea98977248
@blacklisted_domains=[],
@blacklisted_mx_ip_addresses=[],
@connection_attempts=2,
@connection_timeout=2,
@default_validation_type=:smtp,
@dns=[],
@email_pattern=/(?=\A.{6,255}\z)(\A([\p{L}0-9]+[\w|\-.+]*)@((?i-mx:[\p{L}0-9]+([\-.]{1}[\p{L}0-9]+)*\.\p{L}{2,63}))\z)/,
@not_rfc_mx_lookup_flow=false,
@response_timeout=2,
@smtp_error_body_pattern=/(?=.*550)(?=.*(user|account|customer|mailbox)).*/i,
@smtp_fail_fast=false,
@smtp_safe_check=false,
@validation_type_by_domain={},
@verifier_domain="lubowitz.com",
@verifier_email="[email protected]",
@whitelist_validation=false,
@whitelisted_domains=[]>>,
@validation_type=:mx_blacklist>
# Truemail::Validator instance, failure case
create_validator(:mx_blacklist, success: false)
=> #<Truemail::Validator:0x00007fea988cfd18
@result=
#<struct Truemail::Validator::Result
success=false,
email="[email protected]",
domain="heathcote.biz",
mail_servers=["212.76.177.170", "253.244.87.72", "144.225.110.224"],
errors={:mx_blacklist=>"blacklisted mx server ip address"},
smtp_debug=nil,
configuration=
#<Truemail::Configuration:0x00007fea988ee150
@blacklisted_domains=[],
@blacklisted_mx_ip_addresses=["212.76.177.170", "253.244.87.72", "144.225.110.224"],
@connection_attempts=2,
@connection_timeout=2,
@default_validation_type=:smtp,
@dns=[],
@email_pattern=/(?=\A.{6,255}\z)(\A([\p{L}0-9]+[\w|\-.+]*)@((?i-mx:[\p{L}0-9]+([\-.]{1}[\p{L}0-9]+)*\.\p{L}{2,63}))\z)/,
@not_rfc_mx_lookup_flow=false,
@response_timeout=2,
@smtp_error_body_pattern=/(?=.*550)(?=.*(user|account|customer|mailbox)).*/i,
@smtp_fail_fast=false,
@smtp_safe_check=false,
@validation_type_by_domain={},
@verifier_domain="grant-flatley.org",
@verifier_email="[email protected]",
@whitelist_validation=false,
@whitelisted_domains=[]>>,
@validation_type=:mx_blacklist>
Truemail::RSpec::ValidatorHelper
, tests0.6.0
Added ability to set size for servers list:
create_servers_list # => returns array with random ip addresses
create_servers_list(42) # => returns array with 42 random ip addresses
#create_servers_list
0.5.0
Added ability to pass custom context into rcptto error:
create_validator(
validation_type, # optional, type:Symbol, can be :regex, :mx or :smtp, by default creates :smtp validation
email, # optional, type:String, by default random email
mail_servers, # optional, type:Array(String), by default array with random ip addresses
success: true, # optional, type:Bool, by default true
rcptto_error: 'custom context of rcptto error' # optional, type:String, by default it's equal to 'user not found'
configuration: create_configuration # optional, type:Truemail::Configuration, by default creates random configuration
)
Truemail::RSpec::ValidatorHelper
, tests0.3.0