Merge pull request #15815 from Homebrew/dependabot/bundler/Library/Homebrew/addressable-2.8.5
build(deps): bump addressable from 2.8.4 to 2.8.5 in /Library/Homebrew
This commit is contained in:
commit
a2b49440e7
@ -7,7 +7,7 @@ GEM
|
|||||||
minitest (>= 5.1)
|
minitest (>= 5.1)
|
||||||
tzinfo (~> 2.0)
|
tzinfo (~> 2.0)
|
||||||
zeitwerk (~> 2.3)
|
zeitwerk (~> 2.3)
|
||||||
addressable (2.8.4)
|
addressable (2.8.5)
|
||||||
public_suffix (>= 2.0.2, < 6.0)
|
public_suffix (>= 2.0.2, < 6.0)
|
||||||
ast (2.4.2)
|
ast (2.4.2)
|
||||||
bindata (2.4.15)
|
bindata (2.4.15)
|
||||||
|
@ -138,6 +138,7 @@ class Addressable::URI
|
|||||||
def domain; end
|
def domain; end
|
||||||
def dup; end
|
def dup; end
|
||||||
def empty?; end
|
def empty?; end
|
||||||
|
def encode_with(coder); end
|
||||||
def eql?(uri); end
|
def eql?(uri); end
|
||||||
def extname; end
|
def extname; end
|
||||||
def fragment; end
|
def fragment; end
|
||||||
@ -149,6 +150,7 @@ class Addressable::URI
|
|||||||
def hostname; end
|
def hostname; end
|
||||||
def hostname=(new_hostname); end
|
def hostname=(new_hostname); end
|
||||||
def inferred_port; end
|
def inferred_port; end
|
||||||
|
def init_with(coder); end
|
||||||
def inspect; end
|
def inspect; end
|
||||||
def ip_based?; end
|
def ip_based?; end
|
||||||
def join(uri); end
|
def join(uri); end
|
||||||
@ -252,7 +254,7 @@ Addressable::URI::CharacterClasses::SUB_DELIMS = T.let(T.unsafe(nil), String)
|
|||||||
Addressable::URI::CharacterClasses::UNRESERVED = T.let(T.unsafe(nil), String)
|
Addressable::URI::CharacterClasses::UNRESERVED = T.let(T.unsafe(nil), String)
|
||||||
Addressable::URI::EMPTY_STR = T.let(T.unsafe(nil), String)
|
Addressable::URI::EMPTY_STR = T.let(T.unsafe(nil), String)
|
||||||
class Addressable::URI::InvalidURIError < ::StandardError; end
|
class Addressable::URI::InvalidURIError < ::StandardError; end
|
||||||
Addressable::URI::NONE = T.let(T.unsafe(nil), Object)
|
module Addressable::URI::NONE; end
|
||||||
Addressable::URI::NORMPATH = T.let(T.unsafe(nil), Regexp)
|
Addressable::URI::NORMPATH = T.let(T.unsafe(nil), Regexp)
|
||||||
module Addressable::URI::NormalizeCharacterClasses; end
|
module Addressable::URI::NormalizeCharacterClasses; end
|
||||||
Addressable::URI::NormalizeCharacterClasses::FRAGMENT = T.let(T.unsafe(nil), Regexp)
|
Addressable::URI::NormalizeCharacterClasses::FRAGMENT = T.let(T.unsafe(nil), Regexp)
|
||||||
@ -268,8 +270,8 @@ Addressable::URI::RULE_2B_2C = T.let(T.unsafe(nil), Regexp)
|
|||||||
Addressable::URI::RULE_2D = T.let(T.unsafe(nil), Regexp)
|
Addressable::URI::RULE_2D = T.let(T.unsafe(nil), Regexp)
|
||||||
Addressable::URI::RULE_PREFIXED_PARENT = T.let(T.unsafe(nil), Regexp)
|
Addressable::URI::RULE_PREFIXED_PARENT = T.let(T.unsafe(nil), Regexp)
|
||||||
Addressable::URI::SELF_REF = T.let(T.unsafe(nil), String)
|
Addressable::URI::SELF_REF = T.let(T.unsafe(nil), String)
|
||||||
Addressable::URI::SEQUENCE_ENCODING_TABLE = T.let(T.unsafe(nil), Hash)
|
Addressable::URI::SEQUENCE_ENCODING_TABLE = T.let(T.unsafe(nil), Array)
|
||||||
Addressable::URI::SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE = T.let(T.unsafe(nil), Hash)
|
Addressable::URI::SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE = T.let(T.unsafe(nil), Array)
|
||||||
Addressable::URI::SLASH = T.let(T.unsafe(nil), String)
|
Addressable::URI::SLASH = T.let(T.unsafe(nil), String)
|
||||||
Addressable::URI::URIREGEX = T.let(T.unsafe(nil), Regexp)
|
Addressable::URI::URIREGEX = T.let(T.unsafe(nil), Regexp)
|
||||||
module Addressable::VERSION; end
|
module Addressable::VERSION; end
|
@ -30,7 +30,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
|||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/zeitwerk-2.6.11/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/zeitwerk-2.6.11/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/activesupport-6.1.7.4/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/activesupport-6.1.7.4/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/public_suffix-5.0.3/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/public_suffix-5.0.3/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/addressable-2.8.4/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/addressable-2.8.5/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ast-2.4.2/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ast-2.4.2/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/bindata-2.4.15/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/bindata-2.4.15/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-22/#{Gem.extension_api_version}/msgpack-1.7.2")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-22/#{Gem.extension_api_version}/msgpack-1.7.2")
|
||||||
|
@ -344,17 +344,13 @@ module Addressable
|
|||||||
##
|
##
|
||||||
# Tables used to optimize encoding operations in `self.encode_component`
|
# Tables used to optimize encoding operations in `self.encode_component`
|
||||||
# and `self.normalize_component`
|
# and `self.normalize_component`
|
||||||
SEQUENCE_ENCODING_TABLE = Hash.new do |hash, sequence|
|
SEQUENCE_ENCODING_TABLE = (0..255).map do |byte|
|
||||||
hash[sequence] = sequence.unpack("C*").map do |c|
|
format("%02x", byte).freeze
|
||||||
format("%02x", c)
|
end.freeze
|
||||||
end.join
|
|
||||||
end
|
|
||||||
|
|
||||||
SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE = Hash.new do |hash, sequence|
|
SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE = (0..255).map do |byte|
|
||||||
hash[sequence] = sequence.unpack("C*").map do |c|
|
format("%%%02X", byte).freeze
|
||||||
format("%%%02X", c)
|
end.freeze
|
||||||
end.join
|
|
||||||
end
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Percent encodes a URI component.
|
# Percent encodes a URI component.
|
||||||
@ -421,16 +417,17 @@ module Addressable
|
|||||||
component = component.dup
|
component = component.dup
|
||||||
component.force_encoding(Encoding::ASCII_8BIT)
|
component.force_encoding(Encoding::ASCII_8BIT)
|
||||||
# Avoiding gsub! because there are edge cases with frozen strings
|
# Avoiding gsub! because there are edge cases with frozen strings
|
||||||
component = component.gsub(character_class) do |sequence|
|
component = component.gsub(character_class) do |char|
|
||||||
SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE[sequence]
|
SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE[char.ord]
|
||||||
end
|
end
|
||||||
if upcase_encoded.length > 0
|
if upcase_encoded.length > 0
|
||||||
upcase_encoded_chars = upcase_encoded.chars.map do |char|
|
upcase_encoded_chars = upcase_encoded.bytes.map do |byte|
|
||||||
SEQUENCE_ENCODING_TABLE[char]
|
SEQUENCE_ENCODING_TABLE[byte]
|
||||||
end
|
end
|
||||||
component = component.gsub(/%(#{upcase_encoded_chars.join('|')})/,
|
component = component.gsub(/%(#{upcase_encoded_chars.join('|')})/,
|
||||||
&:upcase)
|
&:upcase)
|
||||||
end
|
end
|
||||||
|
|
||||||
return component
|
return component
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -560,10 +557,9 @@ module Addressable
|
|||||||
leave_re = if leave_encoded.length > 0
|
leave_re = if leave_encoded.length > 0
|
||||||
character_class = "#{character_class}%" unless character_class.include?('%')
|
character_class = "#{character_class}%" unless character_class.include?('%')
|
||||||
|
|
||||||
"|%(?!#{leave_encoded.chars.flat_map do |char|
|
bytes = leave_encoded.bytes
|
||||||
seq = SEQUENCE_ENCODING_TABLE[char]
|
leave_encoded_pattern = bytes.map { |b| SEQUENCE_ENCODING_TABLE[b] }.join('|')
|
||||||
[seq.upcase, seq.downcase]
|
"|%(?!#{leave_encoded_pattern}|#{leave_encoded_pattern.upcase})"
|
||||||
end.join('|')})"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
character_class = if leave_re
|
character_class = if leave_re
|
||||||
@ -2396,6 +2392,25 @@ module Addressable
|
|||||||
@validation_deferred = false
|
@validation_deferred = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def encode_with(coder)
|
||||||
|
instance_variables.each do |ivar|
|
||||||
|
value = instance_variable_get(ivar)
|
||||||
|
if value != NONE
|
||||||
|
key = ivar.to_s.slice(1..-1)
|
||||||
|
coder[key] = value
|
||||||
|
end
|
||||||
|
end
|
||||||
|
nil
|
||||||
|
end
|
||||||
|
|
||||||
|
def init_with(coder)
|
||||||
|
reset_ivs
|
||||||
|
coder.map.each do |key, value|
|
||||||
|
instance_variable_set("@#{key}", value)
|
||||||
|
end
|
||||||
|
nil
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
SELF_REF = '.'
|
SELF_REF = '.'
|
||||||
PARENT = '..'
|
PARENT = '..'
|
||||||
@ -2569,7 +2584,7 @@ module Addressable
|
|||||||
@query = nil
|
@query = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
NONE = Object.new.freeze
|
NONE = Module.new.freeze
|
||||||
|
|
||||||
private_constant :NONE
|
private_constant :NONE
|
||||||
end
|
end
|
@ -23,7 +23,7 @@ if !defined?(Addressable::VERSION)
|
|||||||
module VERSION
|
module VERSION
|
||||||
MAJOR = 2
|
MAJOR = 2
|
||||||
MINOR = 8
|
MINOR = 8
|
||||||
TINY = 4
|
TINY = 5
|
||||||
|
|
||||||
STRING = [MAJOR, MINOR, TINY].join('.')
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
||||||
end
|
end
|
Loading…
x
Reference in New Issue
Block a user