lib/email_inquire/inquirer.rb in email_inquire-0.7.0 vs lib/email_inquire/inquirer.rb in email_inquire-0.8.0
- old
+ new
@@ -30,10 +30,11 @@
VALIDATORS = %i[
validate_common_domains
validate_one_time_providers
validate_known_invalid_domains
+ validate_custom_invalid_domains
validate_common_domain_mistakes
validate_cc_tld
validate_common_tld_mistakes
validate_domains_with_unique_tld
].freeze
@@ -164,9 +165,13 @@
KNOWN_INVALID_DOMAINS = load_data("known_invalid_domains").freeze
def validate_known_invalid_domains
response.invalid! if KNOWN_INVALID_DOMAINS.include?(domain)
+ end
+
+ def validate_custom_invalid_domains
+ response.invalid! if EmailInquire.custom_invalid_domains.include?(domain)
end
end
end