Sha256: 20e4ad2f4389e08aced5af712468a5bd667b9a28ad7cd5d75ea81f7e81a84cf9
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
# # Public Suffix # # Domain name parser based on the Public Suffix List. # # Copyright (c) 2009-2015 Simone Carletti <weppos@weppos.net> # module PublicSuffix class Error < StandardError end # Raised when trying to parse an invalid domain. # A domain is considered invalid when no rule is found # in the definition list. # # @example # # PublicSuffix.parse("nic.test") # # => PublicSuffix::DomainInvalid # # PublicSuffix.parse("http://www.nic.it") # # => PublicSuffix::DomainInvalid # class DomainInvalid < Error end # Raised when trying to parse a domain # which is formally defined by a rule, # but the rules set a requirement which is not satisfied # by the input you are trying to parse. # # @example # # PublicSuffix.parse("nic.do") # # => PublicSuffix::DomainNotAllowed # # PublicSuffix.parse("www.nic.do") # # => PublicSuffix::Domain # class DomainNotAllowed < DomainInvalid end # Backward Compatibility # # @deprecated Use {PublicSuffix::DomainInvalid}. # InvalidDomain = DomainInvalid end
Version data entries
4 entries across 4 versions & 1 rubygems