Sha256: 64224b65c97afc9a10f1fc3636233815b93d6e23fe10939ca85ba775d7ece8b5

Contents?: true

Size: 874 Bytes

Versions: 80

Compression:

Stored size: 874 Bytes

Contents

# frozen_string_literal: true

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

80 entries across 70 versions & 10 rubygems

Version Path
cloudsmith-api-1.42.3 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
cloudsmith-api-1.33.7 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
cloudsmith-api-1.30.0 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb