Sha256: bd2075a3ab4f90585b946b8baae6e317d08685e9fb99f8613a84d753de021b22

Contents?: true

Size: 1.07 KB

Versions: 26

Compression:

Stored size: 1.07 KB

Contents

#--
# Public Suffix
#
# Domain name parser based on the Public Suffix List.
#
# Copyright (c) 2009-2014 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

26 entries across 26 versions & 3 rubygems

Version Path
test_track_rails_client-2.0.0 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-1.3.0 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-1.2.0 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-1.1.0 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-1.0.0 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.20 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.19 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/public_suffix-1.4.6/lib/public_suffix/errors.rb
test_track_rails_client-0.9.18 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.17 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.16 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.15 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.14 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.13 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.12 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.11 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.10 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.9 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
test_track_rails_client-0.9.8 vendor/gems/publicsuffix-ruby/lib/public_suffix/errors.rb
public_suffix-1.4.6 lib/public_suffix/errors.rb