lib/gman/identifier.rb in gman-6.0.1 vs lib/gman/identifier.rb in gman-7.0.0
- old
+ new
@@ -72,13 +72,13 @@
private
def list_category
@list_category ||= begin
- match = Gman.list.find(domain.to_s)
+ match = Gman.list.public_suffix_list.find(domain.to_s)
return unless match
regex = %r{// ([^\n]+)\n?[^/]*\n#{Regexp.escape(match.name)}\n}im
- matches = Gman.list_contents.match(regex)
+ matches = Gman.list.contents.match(regex)
matches[1] if matches
end
end
def matches