lib/email_inquire/inquirer.rb in email_inquire-0.8.0 vs lib/email_inquire/inquirer.rb in email_inquire-0.9.0
- old
+ new
@@ -27,10 +27,11 @@
end
attr_reader :domain, :email, :name
VALIDATORS = %i[
+ validate_custom_valid_domains
validate_common_domains
validate_one_time_providers
validate_known_invalid_domains
validate_custom_invalid_domains
validate_common_domain_mistakes
@@ -169,9 +170,13 @@
response.invalid! if KNOWN_INVALID_DOMAINS.include?(domain)
end
def validate_custom_invalid_domains
response.invalid! if EmailInquire.custom_invalid_domains.include?(domain)
+ end
+
+ def validate_custom_valid_domains
+ response.valid! if EmailInquire.custom_valid_domains.include?(domain)
end
end
end