Remove old gem def

This commit is contained in:
Lee Reilly 2012-02-04 14:50:39 -08:00
parent f633e573be
commit 5eb93c54c4
2 changed files with 0 additions and 92 deletions

View File

@ -1,62 +0,0 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = "email"
s.version = "0.1.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Lee Reilly"]
s.date = "2012-01-31"
s.description = "email helpers"
s.email = "lee@leereilly.net"
s.extra_rdoc_files = [
"LICENSE.txt",
"README.rdoc"
]
s.files = [
".document",
".rbenv-version",
"Gemfile",
"Gemfile.lock",
"LICENSE.txt",
"README.rdoc",
"Rakefile",
"VERSION",
"lib/email.rb",
"test/helper.rb",
"test/test_email.rb"
]
s.homepage = "http://github.com/leereilly/email"
s.licenses = ["MIT"]
s.require_paths = ["lib"]
s.rubygems_version = "1.8.11"
s.summary = "email helpers"
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<public_suffix>, [">= 0"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
else
s.add_dependency(%q<public_suffix>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<rdoc>, ["~> 3.12"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
end
else
s.add_dependency(%q<public_suffix>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<rdoc>, ["~> 3.12"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
end
end

View File

@ -1,30 +0,0 @@
require 'public_suffix'
module Email
VERSION = "0.1.0"
ACADEMIC_TLDS = %w(edu ac.uk)
ACADEMIC_DOMAINS = %w(ugr.es uottawa.ca)
class << self
def academic?(email)
domain = PublicSuffix.parse(email.split("@")[1])
if ACADEMIC_TLDS.include?(domain.tld)
true
elsif ACADEMIC_DOMAINS.include? (domain.domain)
true
else
false
end
end
def populate_academic_domains
Dir::foreach("lib/config") do |file|
unless file == '_lookup.txt' || file == "."
puts file
end
end
end
end
end