truemail-rspec

Truemail RSpec helpers

MIT License

Downloads
34.7K
Stars
2
Committers
1

Bot releases are hidden (Show)

truemail-rspec - v1.3.1 Latest Release

Published by bestwebua 8 months ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.3.0...v1.3.1

truemail-rspec - v1.3.0

Published by bestwebua 9 months ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.2.0...v1.3.0

truemail-rspec - v1.2.0

Published by bestwebua 12 months ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.1.2...v1.2.0

truemail-rspec - v1.1.2

Published by bestwebua about 1 year ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.1.1...v1.1.2

truemail-rspec - v1.1.1

Published by bestwebua about 1 year ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.1.0...v1.1.1

truemail-rspec - v1.1.0

Published by bestwebua over 1 year ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v1.0.0...v1.1.0

truemail-rspec - v1.0.0

Published by bestwebua almost 2 years ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.9.2...v1.0.0

truemail-rspec - v0.9.2

Published by bestwebua about 2 years ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.9.1...v0.9.2

truemail-rspec - v0.9.1

Published by bestwebua over 2 years ago

truemail-rspec - v0.9.0: Technical/Update gem dependencies

Published by bestwebua over 2 years ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.8.0...v0.9.0

truemail-rspec - v0.8.0: Technical/Update gem dependencies

Published by bestwebua over 2 years ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.7.0...v0.8.0

truemail-rspec - v0.7.0

Published by bestwebua over 2 years ago

What's Changed

Full Changelog: https://github.com/truemail-rb/truemail-rspec/compare/v0.6.0...v0.7.0

truemail-rspec -

Published by bestwebua over 3 years ago

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
truemail-rspec -

Published by bestwebua over 3 years ago

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
truemail-rspec -

Published by bestwebua over 3 years ago

  1. Updated runtime dependencies
  2. Updated gem version to 0.4.0
truemail-rspec -

Published by bestwebua almost 4 years ago

  1. Added import faker
  2. Updated gem version to 0.3.3
truemail-rspec -

Published by bestwebua almost 4 years ago

  1. Fixed namespace collisions for faker
  2. Updated gem version to 0.3.2
truemail-rspec -

Published by bestwebua almost 4 years ago

  1. Added faker as runtime dependency
  2. Updated gem version to 0.3.1
truemail-rspec -

Published by bestwebua almost 4 years ago

Migrated to Ruby 2.7.x syntax

  1. Updated gem dependencies
  2. Updated gem version to 0.2.1
truemail-rspec -

Published by bestwebua almost 4 years ago

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
Package Rankings
Top 18.31% on Rubygems.org
Badges
Extracted from project README
Maintainability Test Coverage CircleCI Gem Version Downloads Gitter GitHub Contributor Covenant
Related Projects