Merge pull request #13135 from Homebrew/dependabot/bundler/Library/Homebrew/public_suffix-4.0.7
build(deps): bump public_suffix from 4.0.6 to 4.0.7 in /Library/Homebrew
This commit is contained in:
commit
e1c1157a76
@ -81,7 +81,7 @@ GEM
|
||||
pry (0.14.1)
|
||||
coderay (~> 1.1)
|
||||
method_source (~> 1.0)
|
||||
public_suffix (4.0.6)
|
||||
public_suffix (4.0.7)
|
||||
racc (1.6.0)
|
||||
rack (2.2.3)
|
||||
rainbow (3.1.1)
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `public_suffix` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem public_suffix`.
|
||||
|
||||
# typed: true
|
||||
|
||||
module PublicSuffix
|
||||
class << self
|
||||
def decompose(name, rule); end
|
||||
@ -9,7 +9,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.15.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.4/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.5.4/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/activesupport-6.1.5/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/public_suffix-4.0.6/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/public_suffix-4.0.7/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/addressable-2.8.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ast-2.4.2/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/bindata-2.4.10/lib"
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Domain name parser based on the Public Suffix List.
|
||||
#
|
||||
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
||||
# Copyright (c) 2009-2022 Simone Carletti <weppos@weppos.net>
|
||||
|
||||
require_relative "public_suffix/domain"
|
||||
require_relative "public_suffix/version"
|
||||
@ -57,15 +57,13 @@ module PublicSuffix
|
||||
# # => PublicSuffix::DomainInvalid: http://www.google.com is not expected to contain a scheme
|
||||
#
|
||||
#
|
||||
# @param [String, #to_s] name The domain name or fully qualified domain name to parse.
|
||||
# @param [PublicSuffix::List] list The rule list to search, defaults to the default {PublicSuffix::List}
|
||||
# @param [Boolean] ignore_private
|
||||
# @param name [#to_s] The domain name or fully qualified domain name to parse.
|
||||
# @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List}
|
||||
# @param ignore_private [Boolean]
|
||||
# @return [PublicSuffix::Domain]
|
||||
#
|
||||
# @raise [PublicSuffix::DomainInvalid]
|
||||
# If domain is not a valid domain.
|
||||
# @raise [PublicSuffix::DomainNotAllowed]
|
||||
# If a rule for +domain+ is found, but the rule doesn't allow +domain+.
|
||||
# @raise [PublicSuffix::DomainInvalid] If domain is not a valid domain.
|
||||
# @raise [PublicSuffix::DomainNotAllowed] If a rule for +domain+ is found, but the rule doesn't allow +domain+.
|
||||
def self.parse(name, list: List.default, default_rule: list.default_rule, ignore_private: false)
|
||||
what = normalize(name)
|
||||
raise what if what.is_a?(DomainInvalid)
|
||||
@ -119,8 +117,8 @@ module PublicSuffix
|
||||
# # => false
|
||||
#
|
||||
#
|
||||
# @param [String, #to_s] name The domain name or fully qualified domain name to validate.
|
||||
# @param [Boolean] ignore_private
|
||||
# @param name [#to_s] The domain name or fully qualified domain name to validate.
|
||||
# @param ignore_private [Boolean]
|
||||
# @return [Boolean]
|
||||
def self.valid?(name, list: List.default, default_rule: list.default_rule, ignore_private: false)
|
||||
what = normalize(name)
|
||||
@ -135,9 +133,9 @@ module PublicSuffix
|
||||
#
|
||||
# This method doesn't raise. Instead, it returns nil if the domain is not valid for whatever reason.
|
||||
#
|
||||
# @param [String, #to_s] name The domain name or fully qualified domain name to parse.
|
||||
# @param [PublicSuffix::List] list The rule list to search, defaults to the default {PublicSuffix::List}
|
||||
# @param [Boolean] ignore_private
|
||||
# @param name [#to_s] The domain name or fully qualified domain name to parse.
|
||||
# @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List}
|
||||
# @param ignore_private [Boolean]
|
||||
# @return [String]
|
||||
def self.domain(name, **options)
|
||||
parse(name, **options).domain
|
||||
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Domain name parser based on the Public Suffix List.
|
||||
#
|
||||
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
||||
# Copyright (c) 2009-2022 Simone Carletti <weppos@weppos.net>
|
||||
|
||||
module PublicSuffix
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Domain name parser based on the Public Suffix List.
|
||||
#
|
||||
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
||||
# Copyright (c) 2009-2022 Simone Carletti <weppos@weppos.net>
|
||||
|
||||
module PublicSuffix
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Domain name parser based on the Public Suffix List.
|
||||
#
|
||||
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
||||
# Copyright (c) 2009-2022 Simone Carletti <weppos@weppos.net>
|
||||
|
||||
module PublicSuffix
|
||||
|
||||
@ -63,7 +63,7 @@ module PublicSuffix
|
||||
#
|
||||
# See http://publicsuffix.org/format/ for more details about input format.
|
||||
#
|
||||
# @param string [#each_line] the list to parse
|
||||
# @param input [#each_line] the list to parse
|
||||
# @param private_domains [Boolean] whether to ignore the private domains section
|
||||
# @return [PublicSuffix::List]
|
||||
def self.parse(input, private_domains: true)
|
||||
@ -173,7 +173,7 @@ module PublicSuffix
|
||||
# @return [PublicSuffix::Rule::*]
|
||||
def find(name, default: default_rule, **options)
|
||||
rule = select(name, **options).inject do |l, r|
|
||||
return r if r.class == Rule::Exception
|
||||
return r if r.instance_of?(Rule::Exception)
|
||||
|
||||
l.length > r.length ? l : r
|
||||
end
|
||||
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Domain name parser based on the Public Suffix List.
|
||||
#
|
||||
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
||||
# Copyright (c) 2009-2022 Simone Carletti <weppos@weppos.net>
|
||||
|
||||
module PublicSuffix
|
||||
|
||||
@ -131,10 +131,9 @@ module PublicSuffix
|
||||
|
||||
# Checks whether this rule is equal to <tt>other</tt>.
|
||||
#
|
||||
# @param [PublicSuffix::Rule::*] other The rule to compare
|
||||
# @return [Boolean]
|
||||
# Returns true if this rule and other are instances of the same class
|
||||
# and has the same value, false otherwise.
|
||||
# @param other [PublicSuffix::Rule::*] The rule to compare
|
||||
# @return [Boolean] true if this rule and other are instances of the same class
|
||||
# and has the same value, false otherwise.
|
||||
def ==(other)
|
||||
equal?(other) || (self.class == other.class && value == other.value)
|
||||
end
|
||||
@ -176,7 +175,7 @@ module PublicSuffix
|
||||
end
|
||||
|
||||
# @abstract
|
||||
# @param [String, #to_s] name The domain name to decompose
|
||||
# @param domain [#to_s] The domain name to decompose
|
||||
# @return [Array<String, nil>]
|
||||
def decompose(*)
|
||||
raise NotImplementedError
|
||||
@ -196,7 +195,7 @@ module PublicSuffix
|
||||
|
||||
# Decomposes the domain name according to rule properties.
|
||||
#
|
||||
# @param [String, #to_s] name The domain name to decompose
|
||||
# @param domain [#to_s] The domain name to decompose
|
||||
# @return [Array<String>] The array with [trd + sld, tld].
|
||||
def decompose(domain)
|
||||
suffix = parts.join('\.')
|
||||
@ -228,6 +227,7 @@ module PublicSuffix
|
||||
# Initializes a new rule.
|
||||
#
|
||||
# @param value [String]
|
||||
# @param length [Integer]
|
||||
# @param private [Boolean]
|
||||
def initialize(value:, length: nil, private: false)
|
||||
super(value: value, length: length, private: private)
|
||||
@ -243,7 +243,7 @@ module PublicSuffix
|
||||
|
||||
# Decomposes the domain name according to rule properties.
|
||||
#
|
||||
# @param [String, #to_s] name The domain name to decompose
|
||||
# @param domain [#to_s] The domain name to decompose
|
||||
# @return [Array<String>] The array with [trd + sld, tld].
|
||||
def decompose(domain)
|
||||
suffix = ([".*?"] + parts).join('\.')
|
||||
@ -266,7 +266,7 @@ module PublicSuffix
|
||||
|
||||
# Initializes a new rule from the content.
|
||||
#
|
||||
# @param content [String] the content of the rule
|
||||
# @param content [#to_s] the content of the rule
|
||||
# @param private [Boolean]
|
||||
def self.build(content, private: false)
|
||||
new(value: content.to_s[1..-1], private: private)
|
||||
@ -281,7 +281,7 @@ module PublicSuffix
|
||||
|
||||
# Decomposes the domain name according to rule properties.
|
||||
#
|
||||
# @param [String, #to_s] name The domain name to decompose
|
||||
# @param domain [#to_s] The domain name to decompose
|
||||
# @return [Array<String>] The array with [trd + sld, tld].
|
||||
def decompose(domain)
|
||||
suffix = parts.join('\.')
|
||||
@ -321,7 +321,7 @@ module PublicSuffix
|
||||
# PublicSuffix::Rule.factory("!congresodelalengua3.ar")
|
||||
# # => #<PublicSuffix::Rule::Exception>
|
||||
#
|
||||
# @param [String] content The rule content.
|
||||
# @param content [#to_s] the content of the rule
|
||||
# @return [PublicSuffix::Rule::*] A rule instance.
|
||||
def self.factory(content, private: false)
|
||||
case content.to_s[0, 1]
|
||||
@ -5,9 +5,11 @@
|
||||
#
|
||||
# Domain name parser based on the Public Suffix List.
|
||||
#
|
||||
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
||||
# Copyright (c) 2009-2022 Simone Carletti <weppos@weppos.net>
|
||||
|
||||
module PublicSuffix
|
||||
# The current library version.
|
||||
VERSION = "4.0.6"
|
||||
|
||||
# @return [String] The current library version.
|
||||
VERSION = "4.0.7"
|
||||
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user