Skip to content

v1.0.0

Compare
Choose a tag to compare
@bestwebua bestwebua released this 04 Jun 11:19
· 216 commits to master since this release
d507760

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