Add a bunch more UNDEFINED_CONSTANTS for startup.

This should avoid these getting included globally in future.

I found this list from a combination of
https://github.com/Homebrew/brew/pull/17707/files, looking at the
Gemfile and just looking around myself.
This commit is contained in:
Mike McQuaid 2024-08-16 12:33:26 +01:00
parent 21e3055eb5
commit f719090446
No known key found for this signature in database

View File

@ -4,11 +4,52 @@
require "cli/parser" require "cli/parser"
UNDEFINED_CONSTANTS = %w[ UNDEFINED_CONSTANTS = %w[
AbstractDownloadStrategy
Addressable
Base64
CacheStore
Cask::Cask Cask::Cask
Cask::CaskLoader
Completions
CSV
Formula Formula
Formulary Formulary
GitRepository
Homebrew::API Homebrew::API
Homebrew::Manpages
Homebrew::Settings
JSONSchemer
Kramdown
Metafiles
MethodSource
Minitest
Nokogiri
OS::Mac::Version
Parlour
PatchELF
Pry
ProgressBar
REXML
Red
RSpec
RuboCop
StackProf
Spoom
Tap Tap
Tapioca
UnpackStrategy
Utils::Analytics
Utils::Backtrace
Utils::Bottles
Utils::Curl
Utils::Fork
Utils::Git
Utils::GitHub
Utils::Link
Utils::Svn
Uri
Vernier
YARD
].freeze ].freeze
module Homebrew module Homebrew