v1.0.0
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']
- Added new feature
- Removed
:skip
validation type forvalidation_type_for
- Fixed error key in lower_snake_case
- Updated tests
- Updated documentation
- Updated wiki
- Updated gem version to
1.0.0