Skip to content

Releases: truemail-rb/truemail-rspec

v0.8.0: Technical/Update gem dependencies

25 Jan 08:52
83f3b22
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.8.0

v0.7.0

24 Jan 20:39
16d76e6
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.0...v0.7.0

v0.6.0

13 May 09:12
739350c
Compare
Choose a tag to compare

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>
  1. Updated Truemail::RSpec::ValidatorHelper, tests
  2. Fixed simplecov coverage issues
  3. Updated CircleCI config for using multiple Ruby versions
  4. Updated reek config
  5. Updated documentation
  6. Updated gem version to 0.6.0

v0.5.0

05 May 19:46
14c3adc
Compare
Choose a tag to compare

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
  1. Updated #create_servers_list
  2. Updated runtime/development dependencies
  3. Updated gem version to 0.5.0

v0.4.0

24 Feb 08:42
22b05d2
Compare
Choose a tag to compare
  1. Updated runtime dependencies
  2. Updated gem version to 0.4.0

v0.3.3

06 Dec 16:12
f8b965b
Compare
Choose a tag to compare
  1. Added import faker
  2. Updated gem version to 0.3.3

v0.3.2

06 Dec 11:58
8f20c54
Compare
Choose a tag to compare
  1. Fixed namespace collisions for faker
  2. Updated gem version to 0.3.2

v0.3.1

06 Dec 11:41
14c6030
Compare
Choose a tag to compare
  1. Added faker as runtime dependency
  2. Updated gem version to 0.3.1

v0.3.0

05 Dec 22:53
ea6334a
Compare
Choose a tag to compare

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
)
  1. Updated Truemail::RSpec::ValidatorHelper, tests
  2. Added new github issue templates
  3. Updated gem development, runtime dependencies
  4. Updated linter configs
  5. Updated gem documentation, changelog
  6. Updated gem version to 0.3.0

v0.2.1

05 Dec 22:55
7749500
Compare
Choose a tag to compare

Migrated to Ruby 2.7.x syntax

  1. Updated gem dependencies
  2. Updated gem version to 0.2.1