Skip to content

Releases: truemail-rb/truemail

v1.3.0

16 Sep 19:58
Compare
Choose a tag to compare

Implemented ability to use independent configuration instance

  1. Updated all methods that have used Truemail.configuration
  2. Updated tests
  3. Updated documentation
  4. Updated wiki
  5. Updated gem version to 1.3.0

v1.2.1

27 Jun 09:39
db5d59d
Compare
Choose a tag to compare

Removed memoization from DomainListMatch#whitelisted_domain?

  1. Fixed bug with memoization in DomainListMatch#whitelisted_domain?
  2. Updated tests
  3. Updated documentation
  4. Updated wiki
  5. Updated gem version to 1.2.1

v1.2.0

26 Jun 11:32
78abfbe
Compare
Choose a tag to compare

Implemented configurable option: validation for whitelisted domains only.

When email domain in whitelist and whitelist_validation is sets equal to true validation type will be passed to other validators. Validation of email which not contains whitelisted domain always will return false.

Truemail.configure do |config|
  config.verifier_email = '[email protected]'
  config.whitelisted_domains = ['white-domain.com']
  config.whitelist_validation = true
end

Email has whitelisted domain

Truemail.validate('[email protected]', with: :regex)

#<Truemail::Validator:0x000055b8429f3490
  @result=#<struct Truemail::Validator::Result
    success=true,
    email="[email protected]",
    domain=nil,
    mail_servers=[],
    errors={},
    smtp_debug=nil>,
  @validation_type=:regex>

Email hasn't whitelisted domain

Truemail.validate('[email protected]', with: :regex)

#<Truemail::Validator:0x000055b8429f3490
  @result=#<struct Truemail::Validator::Result
    success=false,
    email="[email protected]",
    domain=nil,
    mail_servers=[],
    errors={},
    smtp_debug=nil>,
  @validation_type=:blacklist>

  1. Added validation for whitelisted domains configurable option
  2. Updated tests
  3. Updated documentation
  4. Updated wiki
  5. Updated gem version to 1.2.0

v1.1.0

18 Jun 05:43
a8152d4
Compare
Choose a tag to compare

Implemented configurable default validation type.

You can predefine default validation type for Truemail.validate('[email protected]') call without with-parameter. Available validation types: :regex, :mx, :smtp. By default validation type still remains :smtp

Truemail.configure do |config|
  config.verifier_email = '[email protected]'
  config.default_validation_type = :mx
end
  1. Added configurable default validation type option, #48
  2. Updated tests
  3. Updated documentation
  4. Updated wiki
  5. Updated gem version to 1.1.0

v1.0.1

08 Jun 17:54
c48766e
Compare
Choose a tag to compare

Implemented result validation type marker for domain list match check.

Truemail.validate('[email protected]')

#<Truemail::Validator:0x000055b8429f3490
  @result=#<struct Truemail::Validator::Result
    success=true,
    email="[email protected]",
    domain=nil,
    mail_servers=[],
    errors={},
    smtp_debug=nil>,
  @validation_type=:whitelist>

Truemail.validate('[email protected]')

#<Truemail::Validator:0x000023y8429f3493
  @result=#<struct Truemail::Validator::Result
    success=false,
    email="[email protected]",
    domain=nil,
    mail_servers=[],
    errors={},
    smtp_debug=nil>,
  @validation_type=:blacklist>
  1. Added result validation type marker to domain list match check
  2. Updated tests
  3. Updated documentation
  4. Updated wiki
  5. Updated gem version to 1.0.1

v1.0.0

04 Jun 11:19
d507760
Compare
Choose a tag to compare

Implemented feature domain whitelist blacklist. Other validations will not processed even if it was defined in validation_type_for.

Truemail.configure do |config|
  # Optional parameter. Validation of email which contains whitelisted domain
  # always will return true.
  config.whitelisted_domains = ['somedomain1.com', 'somedomain2.com']

  # Optional parameter. Validation of email which contains whitelisted domain
  # always will return false.
  config.blacklisted_domains = ['somedomain1.com', 'somedomain2.com']
end

and

Truemail.configuration.whitelisted_domains = ['somedomain1.com', 'somedomain2.com']
Truemail.configuration.blacklisted_domains = ['somedomain1.com', 'somedomain2.com']
  1. Added new feature
  2. Removed :skip validation type for validation_type_for
  3. Fixed error key in lower_snake_case
  4. Updated tests
  5. Updated documentation
  6. Updated wiki
  7. Updated gem version to 1.0.0

v0.2.0

23 May 08:04
37387d2
Compare
Choose a tag to compare

Implement skip validation by domain for validation_type_for configuration option:

Truemail.configure do |config|
  config.validation_type_for = { 'somedomain.com' => :skip }
end

and

Truemail.configuration.validation_type_for = { 'somedomain.com' => :skip }
  1. Added new feature
  2. Updated tests
  3. Updated documentation
  4. Updated wiki
  5. Updated gem version to 0.2.0

v0.1.10

10 May 08:02
ef26feb
Compare
Choose a tag to compare
  1. Added SMTP error body configurable option, #19
  2. Updated tests
  3. Updated documentation
  4. Updated wiki
  5. Updated gem version to 0.1.10

P.S.: Big thanks @AlexeyDemidov for Truemail issues reports.

v0.1.9

29 Apr 19:46
22ead56
Compare
Choose a tag to compare
  1. Fixed empty ptr constant
  2. Updated gem version to 0.1.9

v0.1.8

29 Apr 18:33
9171352
Compare
Choose a tag to compare
  1. Fixed behaviour of current host address resolver, #18
  2. Added reverse trace, #18
  3. Updated gem version to 0.1.8

P.S.: Big thanks @AlexeyDemidov for PTR audit issues reporting.