Sha256: 8e81faed46583d3fb3170b98b4e4e6f726fa15f7bd76d0b5fbb68516c4fdda81
Contents?: true
Size: 807 Bytes
Versions: 6
Compression:
Stored size: 807 Bytes
Contents
# frozen_string_literal: true require "valid_email2/email_validator" module ValidEmail2 BLACKLIST_FILE = "config/blacklisted_email_domains.yml" WHITELIST_FILE = "config/whitelisted_email_domains.yml" def self.disposable_emails @disposable_emails ||= YAML.load_file( File.expand_path('../config/disposable_email_domains.yml', __dir__) ) end def self.blacklist @blacklist ||= if File.exist?(BLACKLIST_FILE) YAML.load_file(File.expand_path(BLACKLIST_FILE)) else [] end end def self.whitelist @whitelist ||= if File.exist?(WHITELIST_FILE) YAML.load_file(File.expand_path(WHITELIST_FILE)) else [] end end end
Version data entries
6 entries across 6 versions & 1 rubygems