Sha256: 90909f851241b3fe69236d4fd5d588b080c23b21a3fe3389eaafa14c8989b658

Contents?: true

Size: 383 Bytes

Versions: 41

Compression:

Stored size: 383 Bytes

Contents

require "valid_email2/email_validator"

module ValidEmail2
  def self.disposable_emails
    @@disposable_emails ||= YAML.load_file(File.expand_path("../../vendor/disposable_emails.yml",__FILE__))
  end

  def self.blacklist
    blacklist_file = "vendor/blacklist.yml"
    @@blacklist ||= File.exists?(blacklist_file) ? YAML.load_file(File.expand_path(blacklist_file)) : []
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
valid_email2-2.2.3 lib/valid_email2.rb
valid_email2-2.2.2 lib/valid_email2.rb
valid_email2-2.2.1 lib/valid_email2.rb
valid_email2-2.2.0 lib/valid_email2.rb
valid_email2-1.2.22 lib/valid_email2.rb
valid_email2-1.2.21 lib/valid_email2.rb
valid_email2-1.2.20 lib/valid_email2.rb
valid_email2-1.2.19 lib/valid_email2.rb
valid_email2-1.2.18 lib/valid_email2.rb
valid_email2-1.2.17 lib/valid_email2.rb
valid_email2-1.2.16 lib/valid_email2.rb
valid_email2-1.2.15 lib/valid_email2.rb
valid_email2-1.2.14 lib/valid_email2.rb
valid_email2-1.2.13 lib/valid_email2.rb
valid_email2-1.2.12 lib/valid_email2.rb
valid_email2-1.2.11 lib/valid_email2.rb
valid_email2-1.2.10 lib/valid_email2.rb
valid_email2-1.2.9 lib/valid_email2.rb
valid_email2-1.2.8 lib/valid_email2.rb
valid_email2-1.2.7 lib/valid_email2.rb