From 3d66080a68595e8e6b90e5cbe29095dc29b93874 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 11 Aug 2020 12:33:51 +0100 Subject: [PATCH] global: tweak active_support requires. I was hoping that these would speed up boot but unfortunately they make no difference. They are a bit more minimal anyway so probably a good idea. --- Library/Homebrew/global.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 9276582221..30d0eacb94 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -10,11 +10,14 @@ require "pp" require_relative "load_path" require "rubygems" +# Only require "core_ext" here to ensure we're only requiring the minimum of +# what we need. require "active_support/core_ext/object/blank" require "active_support/core_ext/numeric/time" +require "active_support/core_ext/object/try" require "active_support/core_ext/array/access" -require "active_support/i18n" -require "active_support/inflector/inflections" +require "active_support/core_ext/string/inflections" +require "active_support/core_ext/array/conversions" I18n.backend.available_locales # Initialize locales so they can be overwritten. I18n.backend.store_translations :en, support: { array: { last_word_connector: " and " } }