Merge pull request #15162 from Homebrew/dependabot/bundler/Library/Homebrew/addressable-2.8.3

build(deps): bump addressable from 2.8.2 to 2.8.3 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2023-04-06 08:42:08 +01:00 committed by GitHub
commit b9fb7c5dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 6 additions and 9 deletions

View File

@ -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.2) addressable (2.8.3)
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)

View File

@ -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.7/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/zeitwerk-2.6.7/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/activesupport-6.1.7.3/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/activesupport-6.1.7.3/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/public_suffix-5.0.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/public_suffix-5.0.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/addressable-2.8.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/addressable-2.8.3/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-21/#{Gem.extension_api_version}/msgpack-1.7.0") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/msgpack-1.7.0")

View File

@ -896,19 +896,16 @@ module Addressable
# #
# @return [Hash, Array, String] The normalized values # @return [Hash, Array, String] The normalized values
def normalize_value(value) def normalize_value(value)
unless value.is_a?(Hash)
value = value.respond_to?(:to_ary) ? value.to_ary : value.to_str
end
# Handle unicode normalization # Handle unicode normalization
if value.kind_of?(Array) if value.respond_to?(:to_ary)
value.map! { |val| normalize_value(val) } value.to_ary.map! { |val| normalize_value(val) }
elsif value.kind_of?(Hash) elsif value.kind_of?(Hash)
value = value.inject({}) { |acc, (k, v)| value = value.inject({}) { |acc, (k, v)|
acc[normalize_value(k)] = normalize_value(v) acc[normalize_value(k)] = normalize_value(v)
acc acc
} }
else else
value = value.to_s if !value.kind_of?(String)
if value.encoding != Encoding::UTF_8 if value.encoding != Encoding::UTF_8
value = value.dup.force_encoding(Encoding::UTF_8) value = value.dup.force_encoding(Encoding::UTF_8)
end end

View File

@ -23,7 +23,7 @@ if !defined?(Addressable::VERSION)
module VERSION module VERSION
MAJOR = 2 MAJOR = 2
MINOR = 8 MINOR = 8
TINY = 2 TINY = 3
STRING = [MAJOR, MINOR, TINY].join('.') STRING = [MAJOR, MINOR, TINY].join('.')
end end