Sha256: bbb08b1df37284942b37396ad1cbcd99fdcd248e89ddfd2e527d67c7390fb1ac

Contents?: true

Size: 843 Bytes

Versions: 26

Compression:

Stored size: 843 Bytes

Contents

# = Public Suffix
#
# Domain name parser based on the Public Suffix List.
#
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>

module PublicSuffix

  class Error < StandardError
  end

  # Raised when trying to parse an invalid name.
  # A name 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 name that matches a suffix.
  #
  # @example
  #
  #   PublicSuffix.parse("nic.do")
  #   # => PublicSuffix::DomainNotAllowed
  #
  #   PublicSuffix.parse("www.nic.do")
  #   # => PublicSuffix::Domain
  #
  class DomainNotAllowed < DomainInvalid
  end

end

Version data entries

26 entries across 23 versions & 8 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
tdiary-5.0.13 vendor/bundle/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
tdiary-5.0.12.1 vendor/bundle/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
tdiary-5.0.11 vendor/bundle/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/public_suffix-3.0.3/lib/public_suffix/errors.rb
public_suffix-3.0.3 lib/public_suffix/errors.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/public_suffix-3.0.2/lib/public_suffix/errors.rb
tdiary-5.0.9 vendor/bundle/gems/public_suffix-3.0.2/lib/public_suffix/errors.rb
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/public_suffix-3.0.2/lib/public_suffix/errors.rb