gman 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/gman.gemspec +1 -1
- data/lib/gman.rb +1 -1
- metadata +1 -1
data/gman.gemspec
CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = "gman"
|
3
3
|
s.summary = "Check if a given domain or email address belong to a governemnt entity"
|
4
4
|
s.description = "A ruby gem to check if the owner of a given email address is working for THE MAN."
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.1"
|
6
6
|
s.authors = ["Ben Balter"]
|
7
7
|
s.email = "ben.balter@github.com"
|
8
8
|
s.homepage = "https://github.com/benbalter/gman"
|
data/lib/gman.rb
CHANGED
@@ -44,7 +44,7 @@ module Gman
|
|
44
44
|
# returns an instance of our custom public suffix list
|
45
45
|
# list behaves like PublicSuffix::List but is limited to our whitelisted domains
|
46
46
|
def list
|
47
|
-
@list
|
47
|
+
@list ||= PublicSuffix::List::parse( File.new(File.join(File.dirname(__FILE__), "domains.txt"), "r:utf-8"))
|
48
48
|
end
|
49
49
|
|
50
50
|
# Get the FQDN name from a URL or email address.
|