Sha256: c1e2266d852f5bbe6e419a7c77d2ccc1356c21f1f18adf658212c403fe20a5b2

Contents?: true

Size: 957 Bytes

Versions: 14

Compression:

Stored size: 957 Bytes

Contents

# frozen_string_literal: true

VALID_HOSTNAMES = %w[
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com
  a-b.com
  a-b-.com
  a123.com
  123a.com
  ABC123.com
  123ABC.com
].freeze

INVALID_HOSTNAMES = %W[
  192.168.42.42
  a..com
  #{'a' * 64}.com
  http://example.com
  https://example.com
  example.com?a=1
  example.com#fragment
  -example.com
  1234
  example.-test.com
  example.1234.com
  example_domain.com
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com
].freeze

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
validators-3.4.2 test/support/hostnames.rb
validators-3.4.1 test/support/hostnames.rb
validators-3.4.0 test/support/hostnames.rb
validators-3.3.0 test/support/hostnames.rb
validators-3.2.1 test/support/hostnames.rb
validators-3.2.0 test/support/hostnames.rb
validators-3.1.1 test/support/hostnames.rb
validators-3.1.0 test/support/hostnames.rb
validators-3.0.5 test/support/hostnames.rb
validators-3.0.4 test/support/hostnames.rb
validators-3.0.3 test/support/hostnames.rb
validators-3.0.2 test/support/hostnames.rb
validators-3.0.1 test/support/hostnames.rb
validators-3.0.0 test/support/hostnames.rb