test/support/urls.rb in validators-2.8.1 vs test/support/urls.rb in validators-3.0.0

- old
+ new

@@ -1,6 +1,7 @@ -# encoding: utf-8 +# frozen_string_literal: true + VALID_URLS = [ "http://example.com", "http://example.com/", "http://www.example.com/", "http://sub.domain.example.com/", @@ -15,18 +16,18 @@ "http://example.museum", "http://1.0.255.249", "http://1.2.3.4:80", "HttP://example.com", "https://example.com", - # "http://räksmörgås.nu", # IDN - "http://xn--rksmrgs-5wao1o.nu", # Punycode + # "http://räksmörgås.nu", # IDN + "http://xn--rksmrgs-5wao1o.nu", # Punycode "http://www.xn--rksmrgs-5wao1o.nu", "http://foo.bar.xn--rksmrgs-5wao1o.nu", - "http://example.xy", # Only valid TLD - "http://example.com.", # Explicit TLD root period + "http://example.xy", # Only valid TLD + "http://example.com.", # Explicit TLD root period "http://example.com./foo" -] +].freeze INVALID_URLS = [ "url", "www.example.com", "http://ex ample.com", @@ -38,6 +39,6 @@ # These can all be valid local URLs, but should not be considered valid # for public consumption. "http://example", "http://example.c", "http://example.toolongtld" -] +].freeze