Merge pull request #12374 from Homebrew/dependabot/bundler/Library/Homebrew/i18n-1.8.11

build(deps): bump i18n from 1.8.10 to 1.8.11 in /Library/Homebrew
This commit is contained in:
Rylan Polster 2021-11-03 14:48:40 -04:00 committed by GitHub
commit a3a7c04005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 12 additions and 9 deletions

View File

@ -33,7 +33,7 @@ GEM
hpricot (0.8.6) hpricot (0.8.6)
http-cookie (1.0.4) http-cookie (1.0.4)
domain_name (~> 0.5) domain_name (~> 0.5)
i18n (1.8.10) i18n (1.8.11)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
json_schemer (0.2.18) json_schemer (0.2.18)
ecma-re-validator (~> 0.3) ecma-re-validator (~> 0.3)

View File

@ -1,9 +1,9 @@
# typed: true
# DO NOT EDIT MANUALLY # DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `i18n` gem. # This is an autogenerated file for types exported from the `i18n` gem.
# Please instead update this file by running `bin/tapioca gem i18n`. # Please instead update this file by running `bin/tapioca gem i18n`.
# typed: true
module I18n module I18n
extend ::I18n::Base extend ::I18n::Base

View File

@ -4,7 +4,7 @@ ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
ruby_version = RbConfig::CONFIG["ruby_version"] ruby_version = RbConfig::CONFIG["ruby_version"]
path = File.expand_path('..', __FILE__) path = File.expand_path('..', __FILE__)
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.8.10/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.8.11/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.14.4/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.14.4/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.4/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.4/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.5.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.5.1/lib"

View File

@ -240,7 +240,11 @@ module I18n
# toplevel keys. # toplevel keys.
def load_yml(filename) def load_yml(filename)
begin begin
YAML.load_file(filename) if YAML.respond_to?(:unsafe_load_file) # Psych 4.0 way
YAML.unsafe_load_file(filename)
else
YAML.load_file(filename)
end
rescue TypeError, ScriptError, StandardError => e rescue TypeError, ScriptError, StandardError => e
raise InvalidLocaleData.new(filename, e.inspect) raise InvalidLocaleData.new(filename, e.inspect)
end end

View File

@ -35,8 +35,7 @@ module I18n
def store_translations(locale, data, options = EMPTY_HASH) def store_translations(locale, data, options = EMPTY_HASH)
if I18n.enforce_available_locales && if I18n.enforce_available_locales &&
I18n.available_locales_initialized? && I18n.available_locales_initialized? &&
!I18n.available_locales.include?(locale.to_sym) && !I18n.locale_available?(locale)
!I18n.available_locales.include?(locale.to_s)
return data return data
end end
locale = locale.to_sym locale = locale.to_sym

View File

@ -46,7 +46,7 @@
# fallbacks[:"ar-PS"] # => [:"ar-PS", :ar, :"he-IL", :he, :"en-US", :en] # fallbacks[:"ar-PS"] # => [:"ar-PS", :ar, :"he-IL", :he, :"en-US", :en]
# fallbacks[:"ar-EG"] # => [:"ar-EG", :ar, :"en-US", :en] # fallbacks[:"ar-EG"] # => [:"ar-EG", :ar, :"en-US", :en]
# #
# # people speaking Sami as spoken in Finnland also speak Swedish and Finnish as spoken in Finnland # # people speaking Sami as spoken in Finland also speak Swedish and Finnish as spoken in Finland
# fallbacks.map(:sms => [:"se-FI", :"fi-FI"]) # fallbacks.map(:sms => [:"se-FI", :"fi-FI"])
# fallbacks[:sms] # => [:sms, :"se-FI", :se, :"fi-FI", :fi, :"en-US", :en] # fallbacks[:sms] # => [:sms, :"se-FI", :se, :"fi-FI", :fi, :"en-US", :en]

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module I18n module I18n
VERSION = "1.8.10" VERSION = "1.8.11"
end end