brew vendor-gems: commit updates.
This commit is contained in:
parent
20643589a0
commit
e039d4797d
@ -4,7 +4,7 @@ ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
|
||||
ruby_version = RbConfig::CONFIG["ruby_version"]
|
||||
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/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/tzinfo-2.0.4/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.5.1/lib"
|
||||
|
||||
@ -240,7 +240,11 @@ module I18n
|
||||
# toplevel keys.
|
||||
def load_yml(filename)
|
||||
begin
|
||||
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
|
||||
raise InvalidLocaleData.new(filename, e.inspect)
|
||||
end
|
||||
@ -35,8 +35,7 @@ module I18n
|
||||
def store_translations(locale, data, options = EMPTY_HASH)
|
||||
if I18n.enforce_available_locales &&
|
||||
I18n.available_locales_initialized? &&
|
||||
!I18n.available_locales.include?(locale.to_sym) &&
|
||||
!I18n.available_locales.include?(locale.to_s)
|
||||
!I18n.locale_available?(locale)
|
||||
return data
|
||||
end
|
||||
locale = locale.to_sym
|
||||
@ -46,7 +46,7 @@
|
||||
# fallbacks[:"ar-PS"] # => [:"ar-PS", :ar, :"he-IL", :he, :"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[:sms] # => [:sms, :"se-FI", :se, :"fi-FI", :fi, :"en-US", :en]
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module I18n
|
||||
VERSION = "1.8.10"
|
||||
VERSION = "1.8.11"
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user