repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api.rb
Library/Homebrew/api.rb
# typed: strict # frozen_string_literal: true require "api/analytics" require "api/cask" require "api/formula" require "api/internal" require "api/formula_struct" require "api/cask_struct" require "base64" require "utils/output" module Homebrew # Helper functions for using Homebrew's formulae.brew.sh API. module ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/help.rb
Library/Homebrew/help.rb
# typed: strict # frozen_string_literal: true require "cli/parser" require "commands" require "utils/output" module Homebrew # Helper module for printing help output. module Help extend Utils::Output::Mixin sig { params( cmd: T.nilable(String), empty_argv: T::Boolean,...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/git_repository.rb
Library/Homebrew/git_repository.rb
# typed: strict # frozen_string_literal: true require "utils/git" require "utils/popen" # Given a {Pathname}, provides methods for querying Git repository information. # @see Utils::Git class GitRepository sig { returns(Pathname) } attr_reader :pathname sig { params(pathname: Pathname).void } def initialize(...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/github_runner_matrix.rb
Library/Homebrew/github_runner_matrix.rb
# typed: strict # frozen_string_literal: true require "test_runner_formula" require "github_runner" class GitHubRunnerMatrix # When bumping newest runner, run e.g. `git log -p --reverse -G "sha256 tahoe"` # on homebrew/core and tag the first commit with a bottle e.g. # `git tag 15-sequoia f42c4a659e4da887fc714f...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/settings.rb
Library/Homebrew/settings.rb
# typed: strict # frozen_string_literal: true require "utils/popen" module Homebrew # Helper functions for reading and writing settings. module Settings sig { params(setting: T.any(String, Symbol), repo: Pathname) .returns(T.nilable(String)) } def self.read(setting, repo: HOMEBREW_REPOSI...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/compilers.rb
Library/Homebrew/compilers.rb
# typed: strict # frozen_string_literal: true module CompilerConstants # GCC 7 - Ubuntu 18.04 (ESM ends 2028-04-01) # GCC 8 - RHEL 8 (ELS ends 2032-05-31) GNU_GCC_VERSIONS = %w[7 8 9 10 11 12 13 14 15].freeze GNU_GCC_REGEXP = /^gcc-(#{GNU_GCC_VERSIONS.join("|")})$/ COMPILER_SYMBOL_MAP = T.let({ "gc...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/dependencies_helpers.rb
Library/Homebrew/dependencies_helpers.rb
# typed: strict # frozen_string_literal: true require "cask_dependent" # Helper functions for dependencies. module DependenciesHelpers def args_includes_ignores(args) includes = [:required?, :recommended?] # included by default includes << :implicit? if args.include_implicit? includes << :build? if args...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/url.rb
Library/Homebrew/url.rb
# typed: strict # frozen_string_literal: true require "version" class URL sig { returns(T::Hash[Symbol, T.untyped]) } attr_reader :specs sig { returns(T.nilable(T.any(Symbol, T::Class[AbstractDownloadStrategy]))) } attr_reader :using sig { params(url: String, specs: T::Hash[Symbol, T.untyped]).void } de...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/global.rb
Library/Homebrew/global.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require_relative "startup" HOMEBREW_HELP_MESSAGE = ENV.fetch("HOMEBREW_HELP_MESSAGE").freeze HOMEBREW_API_DEFAULT_DOMAIN = ENV.fetch("HOMEBREW_API_DEFAULT_DOMAIN").freeze HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ENV.fetch("HOMEBREW_BOTTLE_DEFAULT_...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/formula_free_port.rb
Library/Homebrew/formula_free_port.rb
# typed: strict # frozen_string_literal: true require "socket" module Homebrew # Helper function for finding a free port. module FreePort # Returns a free port. # @api public sig { returns(Integer) } def free_port server = TCPServer.new 0 _, port, = server.addr server.close ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/retryable_download.rb
Library/Homebrew/retryable_download.rb
# typed: strict # frozen_string_literal: true require "bottle" require "api/json_download" require "utils/output" module Homebrew class RetryableDownload include Downloadable include Utils::Output::Mixin sig { override.returns(T.nilable(T.any(String, URL))) } def url = downloadable.url sig { o...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bottle.rb
Library/Homebrew/bottle.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true class Bottle include Downloadable class Filename attr_reader :name, :version, :tag, :rebuild sig { params(formula: Formula, tag: Utils::Bottles::Tag, rebuild: Integer).returns(T.attached_class) } def self.create(formula, ta...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/locale.rb
Library/Homebrew/locale.rb
# typed: strict # frozen_string_literal: true # Representation of a system locale. # # Used to compare the system language and languages defined using the cask `language` stanza. class Locale # Error when a string cannot be parsed to a `Locale`. class ParserError < StandardError end # ISO 639-1 or ISO 639-2 ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/rubocops.rb
Library/Homebrew/rubocops.rb
# typed: strict # frozen_string_literal: true require_relative "standalone" require "rubocops/all"
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/upgrade.rb
Library/Homebrew/upgrade.rb
# typed: strict # frozen_string_literal: true require "reinstall" require "formula_installer" require "development_tools" require "messages" require "cleanup" require "utils/topological_hash" require "utils/output" module Homebrew # Helper functions for upgrading formulae. module Upgrade extend Utils::Output:...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/diagnostic.rb
Library/Homebrew/diagnostic.rb
# typed: strict # frozen_string_literal: true require "keg" require "language/python" require "formula" require "formulary" require "version" require "development_tools" require "utils/shell" require "utils/output" require "system_config" require "cask/caskroom" require "cask/quarantine" require "system_command" modu...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
true
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/messages.rb
Library/Homebrew/messages.rb
# typed: strict # frozen_string_literal: true require "utils/output" # A {Messages} object collects messages that may need to be displayed together # at the end of a multi-step `brew` command run. class Messages include ::Utils::Output::Mixin sig { returns(T::Array[{ package: String, caveats: T.any(String, Cavea...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/official_taps.rb
Library/Homebrew/official_taps.rb
# typed: strict # frozen_string_literal: true DEPRECATED_OFFICIAL_TAPS = %w[ aliases apache binary bundle cask-drivers cask-eid cask-fonts cask-versions command-not-found completions devel-only dupes emacs formula-analytics fuse games gui head-only linux-fonts livecheck nginx ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/tap.rb
Library/Homebrew/tap.rb
# typed: strict # frozen_string_literal: true require "api" require "commands" require "settings" require "utils/output" # A {Tap} is used to encapsulate Homebrew formulae, casks and custom commands. # Usually, it's synced with a remote Git repository. And it's likely # a GitHub repository with the name of `user/home...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
true
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/dependents_message.rb
Library/Homebrew/dependents_message.rb
# typed: strict # frozen_string_literal: true require "utils/output" class DependentsMessage include ::Utils::Output::Mixin sig { returns(T::Array[T.any(String, Keg)]) } attr_reader :reqs sig { returns(T::Array[String]) } attr_reader :deps, :named_args sig { params(requireds: T::Array[T.any(String, Keg...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/fetch.rb
Library/Homebrew/fetch.rb
# typed: strict # frozen_string_literal: true module Homebrew module Fetch sig { params( formula: Formula, force_bottle: T::Boolean, bottle_tag: T.nilable(Symbol), build_from_source_formulae: T::Array[String], os: ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/pkg_version.rb
Library/Homebrew/pkg_version.rb
# typed: strict # frozen_string_literal: true require "version" # Combination of a version and a revision. class PkgVersion include Comparable extend Forwardable REGEX = /\A(.+?)(?:_(\d+))?\z/ private_constant :REGEX sig { returns(Version) } attr_reader :version sig { returns(Integer) } attr_reader...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot.rb
Library/Homebrew/test_bot.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "test_bot/step" require "test_bot/test_runner" require "date" require "json" require "development_tools" require "formula" require "formula_installer" require "os" require "tap" require "utils" require "utils/bottles" module Homeb...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/dependable.rb
Library/Homebrew/dependable.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "options" # Shared functions for classes which can be depended upon. module Dependable extend T::Helpers # `:run` and `:linked` are no longer used but keep them here to avoid their # misuse in future. RESERVED_TAGS = [:buil...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/formula_auditor.rb
Library/Homebrew/formula_auditor.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "deprecate_disable" require "formula_versions" require "formula_name_cask_token_auditor" require "resource_auditor" require "utils/shared_audits" require "utils/output" require "utils/git" module Homebrew # Auditor for checking co...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
true
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/PATH.rb
Library/Homebrew/PATH.rb
# typed: strict # frozen_string_literal: true require "forwardable" # Representation of a `*PATH` environment variable. class PATH include Enumerable extend Forwardable extend T::Generic delegate each: :@paths Elem = type_member(:out) { { fixed: String } } Element = T.type_alias { T.nilable(T.any(Pathna...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/system_config.rb
Library/Homebrew/system_config.rb
# typed: strict # frozen_string_literal: true require "hardware" require "software_spec" require "development_tools" require "extend/ENV" require "system_command" require "git_repository" # Helper module for querying information about the system configuration. module SystemConfig class << self include SystemCom...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/downloadable.rb
Library/Homebrew/downloadable.rb
# typed: strict # frozen_string_literal: true require "url" require "checksum" require "download_strategy" require "utils/output" module Downloadable include Context include Utils::Output::Mixin extend T::Helpers abstract! requires_ancestor { Kernel } sig { overridable.returns(T.nilable(T.any(String, UR...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/unlink.rb
Library/Homebrew/unlink.rb
# typed: strict # frozen_string_literal: true module Homebrew # Provides helper methods for unlinking formulae and kegs with consistent output. module Unlink sig { params(formula: Formula, verbose: T::Boolean).void } def self.unlink_versioned_formulae(formula, verbose: false) formula.versioned_formul...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/formulary.rb
Library/Homebrew/formulary.rb
# typed: strict # frozen_string_literal: true require "digest/sha2" require "cachable" require "tab" require "utils" require "utils/bottles" require "utils/output" require "utils/path" require "service" require "utils/curl" require "deprecate_disable" require "extend/hash/deep_transform_values" require "extend/hash/ke...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
true
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/commands.rb
Library/Homebrew/commands.rb
# typed: strict # frozen_string_literal: true require "utils" # Helper functions for commands. module Commands HOMEBREW_CMD_PATH = T.let((HOMEBREW_LIBRARY_PATH/"cmd").freeze, Pathname) HOMEBREW_DEV_CMD_PATH = T.let((HOMEBREW_LIBRARY_PATH/"dev-cmd").freeze, Pathname) # If you are going to change anything in belo...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/lock_file.rb
Library/Homebrew/lock_file.rb
# typed: strict # frozen_string_literal: true require "fcntl" require "utils/output" # A lock file to prevent multiple Homebrew processes from modifying the same path. class LockFile include Utils::Output::Mixin class OpenFileChangedOnDisk < RuntimeError; end private_constant :OpenFileChangedOnDisk sig { re...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/formula_cellar_checks.rb
Library/Homebrew/formula_cellar_checks.rb
# typed: strict # frozen_string_literal: true require "utils/shell" # Checks to perform on a formula's keg (versioned Cellar path). module FormulaCellarChecks extend T::Helpers abstract! requires_ancestor { Kernel } sig { abstract.returns(Formula) } def formula; end sig { abstract.params(output: T.nila...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/shell_command.rb
Library/Homebrew/shell_command.rb
# typed: strict # frozen_string_literal: true module Homebrew module ShellCommand extend T::Helpers requires_ancestor { AbstractCommand } sig { void } def run T.bind(self, AbstractCommand) sh_cmd_path = "#{self.class.dev_cmd? ? "dev-cmd" : "cmd"}/#{self.class.command_name}.sh" ra...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/dependency_collector.rb
Library/Homebrew/dependency_collector.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "dependency" require "dependencies" require "requirement" require "requirements" require "cachable" # A dependency is a formula that another formula needs to install. # A requirement is something other than a formula that another fo...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/software_spec.rb
Library/Homebrew/software_spec.rb
# typed: strict # frozen_string_literal: true require "resource" require "download_strategy" require "checksum" require "version" require "options" require "build_options" require "dependency_collector" require "utils/bottles" require "patch" require "compilers" require "macos_version" require "on_system" class Softw...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/cxxstdlib.rb
Library/Homebrew/cxxstdlib.rb
# typed: strong # frozen_string_literal: true require "compilers" # Combination of C++ standard library and compiler. class CxxStdlib sig { params(type: T.nilable(Symbol), compiler: T.any(Symbol, String)).returns(CxxStdlib) } def self.create(type, compiler) raise ArgumentError, "Invalid C++ stdlib type: #{typ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/linkage_checker.rb
Library/Homebrew/linkage_checker.rb
# typed: strict # frozen_string_literal: true require "keg" require "formula" require "linkage_cache_store" require "utils/output" # Check for broken/missing linkage in a formula's keg. class LinkageChecker include Utils::Output::Mixin sig { returns(Keg) } attr_reader :keg sig { returns(T.nilable(Formula)) ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/cask_dependent.rb
Library/Homebrew/cask_dependent.rb
# typed: strict # frozen_string_literal: true require "requirement" # An adapter for casks to provide dependency information in a formula-like interface. class CaskDependent # Defines a dependency on another cask class Requirement < ::Requirement satisfy(build_env: false) do Cask::CaskLoader.load(cask)....
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/dependencies.rb
Library/Homebrew/dependencies.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "delegate" # A collection of dependencies. class Dependencies < SimpleDelegator def initialize(*args) super(args) end alias eql? == def optional __getobj__.select(&:optional?) end def recommended __getobj_...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/installed_dependents.rb
Library/Homebrew/installed_dependents.rb
# typed: strict # frozen_string_literal: true require "cask_dependent" # Helper functions for installed dependents. module InstalledDependents module_function # Given an array of kegs, this method will try to find some other kegs # or casks that depend on them. If it does, it returns: # # - some kegs in th...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/pour_bottle_check.rb
Library/Homebrew/pour_bottle_check.rb
# typed: strict # frozen_string_literal: true class PourBottleCheck include OnSystem::MacOSAndLinux sig { params(formula: T.class_of(Formula)).void } def initialize(formula) @formula = formula end sig { params(reason: String).void } def reason(reason) @formula.pour_bottle_check_unsatisfied_reason...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/formula.rb
Library/Homebrew/formula.rb
# typed: strict # frozen_string_literal: true require "autobump_constants" require "cache_store" require "did_you_mean" require "keg_only_reason" require "lock_file" require "formula_pin" require "hardware" require "utils" require "utils/bottles" require "utils/gzip" require "utils/inreplace" require "utils/shebang" r...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
true
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/abstract_command.rb
Library/Homebrew/abstract_command.rb
# typed: strong # frozen_string_literal: true require "cli/parser" require "shell_command" require "utils/output" module Homebrew # Subclass this to implement a `brew` command. This is preferred to declaring a named function in the `Homebrew` # module, because: # # - Each Command lives in an isolated namespac...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/keg.rb
Library/Homebrew/keg.rb
# typed: strict # frozen_string_literal: true require "keg_relocate" require "language/python" require "lock_file" require "cachable" require "utils/output" # Installation prefix of a formula. class Keg extend Cachable include Utils::Output::Mixin # Error for when a keg is already linked. class AlreadyLinked...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/lazy_object.rb
Library/Homebrew/lazy_object.rb
# typed: strict # frozen_string_literal: true require "delegate" # An object which lazily evaluates its inner block only once a method is called on it. class LazyObject < Delegator sig { params(callable: T.nilable(Proc)).void } def initialize(&callable) @__callable__ = T.let(nil, T.nilable(Proc)) @getobj_...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/cask.rb
Library/Homebrew/cask.rb
# typed: strict # frozen_string_literal: true require "cask/artifact" require "cask/audit" require "cask/auditor" require "cask/cache" require "cask/cask_loader" require "cask/cask" require "cask/caskroom" require "cask/config" require "cask/exceptions" require "cask/denylist" require "cask/download" require "cask/dsl...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/service.rb
Library/Homebrew/service.rb
# typed: strict # frozen_string_literal: true require "ipaddr" require "on_system" require "utils/service" module Homebrew # The {Service} class implements the DSL methods used in a formula's # `service` block and stores related instance variables. Most of these methods # also return the related instance variab...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/build_options.rb
Library/Homebrew/build_options.rb
# typed: strict # frozen_string_literal: true # Options for a formula build. class BuildOptions sig { params(args: Options, options: Options).void } def initialize(args, options) @args = args @options = options end # True if a {Formula} is being built with a specific option. # # ### Examples # ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/ignorable.rb
Library/Homebrew/ignorable.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "warnings" Warnings.ignore(/warning: callcc is obsolete; use Fiber instead/) do require "continuation" end # Provides the ability to optionally ignore errors raised and continue execution. module Ignorable # Marks exceptions whi...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/context.rb
Library/Homebrew/context.rb
# typed: strict # frozen_string_literal: true require "monitor" # Module for querying the current execution context. module Context extend MonitorMixin # Struct describing the current execution context. class ContextStruct sig { params(debug: T.nilable(T::Boolean), quiet: T.nilable(T::Boolean), verbose: T....
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/debrew.rb
Library/Homebrew/debrew.rb
# typed: strict # frozen_string_literal: true require "ignorable" # Helper module for debugging formulae. module Debrew # Module for allowing to debug formulae. module Formula sig { void } def install Debrew.debrew { super } end sig { void } def patch Debrew.debrew { super } e...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle_version.rb
Library/Homebrew/bundle_version.rb
# typed: strict # frozen_string_literal: true require "system_command" module Homebrew # Representation of a macOS bundle version, commonly found in `Info.plist` files. class BundleVersion include Comparable extend SystemCommand::Mixin sig { params(info_plist_path: Pathname).returns(T.nilable(T.atta...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/install.rb
Library/Homebrew/install.rb
# typed: strict # frozen_string_literal: true require "diagnostic" require "fileutils" require "hardware" require "development_tools" require "upgrade" require "download_queue" require "utils/output" module Homebrew # Helper module for performing (pre-)install checks. module Install extend Utils::Output::Mixi...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/github_runner.rb
Library/Homebrew/github_runner.rb
# typed: strict # frozen_string_literal: true require "linux_runner_spec" require "macos_runner_spec" class GitHubRunner < T::Struct const :platform, Symbol const :arch, Symbol const :spec, T.any(LinuxRunnerSpec, MacOSRunnerSpec) const :macos_version, T.nilable(MacOSVersion) prop :active, T::Boolean, defau...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/dependency.rb
Library/Homebrew/dependency.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "dependable" # A dependency on another Homebrew formula. # # @api internal class Dependency include Dependable sig { returns(String) } attr_reader :name sig { returns(T.nilable(Tap)) } attr_reader :tap def initialize(...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/macos_runner_spec.rb
Library/Homebrew/macos_runner_spec.rb
# typed: strict # frozen_string_literal: true class MacOSRunnerSpec < T::Struct const :name, String const :runner, String const :timeout, Integer const :cleanup, T::Boolean prop :testing_formulae, T::Array[String], default: [] sig { returns({ name: String, runner: St...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/github_releases.rb
Library/Homebrew/github_releases.rb
# typed: strict # frozen_string_literal: true require "utils/github" require "utils/output" require "json" # GitHub Releases client. class GitHubReleases include Context include Utils::Output::Mixin URL_REGEX = %r{https://github\.com/([\w-]+)/([\w-]+)?/releases/download/(.+)} sig { params(bottles_hash: T::H...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/simulate_system.rb
Library/Homebrew/simulate_system.rb
# typed: strict # frozen_string_literal: true require "macos_version" require "utils/bottles" module Homebrew # Helper module for simulating different system configurations. class SimulateSystem class << self sig { returns(T.nilable(Symbol)) } attr_reader :arch sig { returns(T.nilable(Symbo...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/requirements.rb
Library/Homebrew/requirements.rb
# typed: strict # frozen_string_literal: true require "requirement" require "requirements/arch_requirement" require "requirements/codesign_requirement" require "requirements/linux_requirement" require "requirements/macos_requirement" require "requirements/xcode_requirement"
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/development_tools.rb
Library/Homebrew/development_tools.rb
# typed: strict # frozen_string_literal: true require "version" # Helper class for gathering information about development tools. # # @api public class DevelopmentTools class << self # Locate a development tool. # # @api public sig { params(tool: T.any(String, Symbol)).returns(T.nilable(Pathname)) }...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/formula_stub.rb
Library/Homebrew/formula_stub.rb
# typed: strict # frozen_string_literal: true require "pkg_version" module Homebrew # A stub for a formula, with only the information needed to fetch the bottle manifest. class FormulaStub < T::Struct const :name, String const :pkg_version, PkgVersion const :version_scheme, Integer, default: 0 con...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/style.rb
Library/Homebrew/style.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "shellwords" require "source_location" require "system_command" require "utils/output" module Homebrew # Helper module for running RuboCop. module Style extend Utils::Output::Mixin extend SystemCommand::Mixin # Chec...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/build_environment.rb
Library/Homebrew/build_environment.rb
# typed: strict # frozen_string_literal: true # Settings for the build environment. class BuildEnvironment sig { params(settings: Symbol).void } def initialize(*settings) @settings = T.let(Set.new(settings), T::Set[Symbol]) end sig { params(args: T::Enumerable[Symbol]).returns(T.self_type) } def merge(*...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/readline_nonblock.rb
Library/Homebrew/readline_nonblock.rb
# typed: strict # frozen_string_literal: true class ReadlineNonblock sig { params(io: IO).returns(String) } def self.read(io) line = +"" buffer = +"" begin loop do break if buffer == $INPUT_RECORD_SEPARATOR io.read_nonblock(1, buffer) line.concat(buffer) end ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/standalone.rb
Library/Homebrew/standalone.rb
# typed: strict # frozen_string_literal: true # This file should be the first `require` in all entrypoints outside the `brew` environment. require_relative "standalone/init" require_relative "standalone/sorbet"
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/formula_installer.rb
Library/Homebrew/formula_installer.rb
# typed: strict # frozen_string_literal: true require "formula" require "keg" require "tab" require "utils/bottles" require "caveats" require "cleaner" require "formula_cellar_checks" require "install_renamed" require "sandbox" require "development_tools" require "cache_store" require "linkage_checker" require "messag...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
true
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/formula_creator.rb
Library/Homebrew/formula_creator.rb
# typed: strict # frozen_string_literal: true require "digest" require "erb" require "utils/github" require "utils/output" module Homebrew # Class for generating a formula from a template. class FormulaCreator include Utils::Output::Mixin sig { returns(String) } attr_accessor :name sig { returns...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/migrator.rb
Library/Homebrew/migrator.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "lock_file" require "keg" require "tab" require "utils/output" # Helper class for migrating a formula from an old to a new name. class Migrator extend Utils::Output::Mixin include Context include Utils::Output::Mixin # Erro...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/manpages.rb
Library/Homebrew/manpages.rb
# typed: strict # frozen_string_literal: true require "cli/parser" require "erb" module Homebrew # Helper functions for generating homebrew manual. module Manpages Variables = Struct.new( :alumni, :commands, :developer_commands, :environment_variables, :global_cask_options, ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/pypi_packages.rb
Library/Homebrew/pypi_packages.rb
# typed: strict # frozen_string_literal: true # Helper class for `pypi_packages` DSL. # @api internal class PypiPackages sig { returns(T.nilable(String)) } attr_reader :package_name sig { returns(T::Array[String]) } attr_reader :extra_packages sig { returns(T::Array[String]) } attr_reader :exclude_packag...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/env_config.rb
Library/Homebrew/env_config.rb
# typed: strict # frozen_string_literal: true require "utils/output" module Homebrew # Helper module for querying Homebrew-specific environment variables. # # @api internal module EnvConfig include Utils::Output::Mixin extend Utils::Output::Mixin module_function ENVS = T.let({ HOMEBREW...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
true
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/head_software_spec.rb
Library/Homebrew/head_software_spec.rb
# typed: strict # frozen_string_literal: true require "software_spec" class HeadSoftwareSpec < SoftwareSpec sig { params(flags: T::Array[String]).void } def initialize(flags: []) super @resource.version(Version.new("HEAD")) end sig { params(_filename: Pathname).returns(NilClass) } def verify_downlo...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/mktemp.rb
Library/Homebrew/mktemp.rb
# typed: strict # frozen_string_literal: true require "utils/output" # Performs {Formula#mktemp}'s functionality and tracks the results. # Each instance is only intended to be used once. # Can also be used to create a temporary directory with the brew instance's group. class Mktemp include Utils::Output::Mixin #...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/test.rb
Library/Homebrew/test_bot/test.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "utils/analytics" require "utils/output" module Homebrew module TestBot class Test include Utils::Output::Mixin def failed_steps @steps.select(&:failed?) end def ignored_steps @steps.s...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/cleanup_after.rb
Library/Homebrew/test_bot/cleanup_after.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class CleanupAfter < TestCleanup def run!(args:) if ENV["HOMEBREW_GITHUB_ACTIONS"].present? && ENV["GITHUB_ACTIONS_HOMEBREW_SELF_HOSTED"].blank? && # don't need to do post-build c...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/setup.rb
Library/Homebrew/test_bot/setup.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class Setup < Test def run!(args:) test_header(:Setup) test "brew", "install-bundler-gems", "--add-groups=ast,audit,bottle,formula_test,livecheck,style" # Always output `br...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/tap_syntax.rb
Library/Homebrew/test_bot/tap_syntax.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class TapSyntax < Test def run!(args:) test_header(:TapSyntax) return unless tap.installed? unless args.stable? # Run `brew typecheck` if this tap is typed. ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/formulae_detect.rb
Library/Homebrew/test_bot/formulae_detect.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class FormulaeDetect < Test attr_reader :testing_formulae, :added_formulae, :deleted_formulae def initialize(argument, tap:, git:, dry_run:, fail_fast:, verbose:) super(tap:, git:, dr...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/test_cleanup.rb
Library/Homebrew/test_bot/test_cleanup.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "os" require "tap" module Homebrew module TestBot class TestCleanup < Test protected ALLOWED_TAPS = [ CoreTap.instance.name, CoreCaskTap.instance.name, ].freeze def reset_if_needed(rep...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/step.rb
Library/Homebrew/test_bot/step.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "system_command" require "utils/github/actions" module Homebrew module TestBot # Wraps command invocations. Instantiated by Test#test. # Handles logging and pretty-printing. class Step include SystemCommand::Mixi...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/test_runner.rb
Library/Homebrew/test_bot/test_runner.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "test_bot/junit" require "test_bot/test" require "test_bot/test_cleanup" require "test_bot/test_formulae" require "test_bot/cleanup_after" require "test_bot/cleanup_before" require "test_bot/formulae_detect" require "test_bot/formula...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/junit.rb
Library/Homebrew/test_bot/junit.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot # Creates Junit report with only required by BuildPulse attributes # See https://github.com/Homebrew/homebrew-test-bot/pull/621#discussion_r658712640 class Junit def initialize(tests) ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/cleanup_before.rb
Library/Homebrew/test_bot/cleanup_before.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class CleanupBefore < TestCleanup def run!(args:) test_header(:CleanupBefore) if tap.to_s != CoreTap.instance.name && CoreTap.instance.installed? reset_if_needed(CoreTap.i...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/bottles_fetch.rb
Library/Homebrew/test_bot/bottles_fetch.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class BottlesFetch < TestFormulae attr_accessor :testing_formulae def run!(args:) info_header "Testing formulae:" puts testing_formulae puts testing_formulae....
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/formulae_dependents.rb
Library/Homebrew/test_bot/formulae_dependents.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class FormulaeDependents < TestFormulae attr_writer :testing_formulae, :tested_formulae def run!(args:) test "brew", "untap", "--force", "homebrew/cask" if !tap&.core_cask_tap? && Cor...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/test_formulae.rb
Library/Homebrew/test_bot/test_formulae.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class TestFormulae < Test attr_accessor :skipped_or_failed_formulae attr_reader :artifact_cache def initialize(tap:, git:, dry_run:, fail_fast:, verbose:) super @skippe...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test_bot/formulae.rb
Library/Homebrew/test_bot/formulae.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module TestBot class Formulae < TestFormulae attr_writer :testing_formulae, :added_formulae, :deleted_formulae def initialize(tap:, git:, dry_run:, fail_fast:, verbose:, output_paths:) super(tap:, g...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/cli.rb
Library/Homebrew/services/cli.rb
# typed: strict # frozen_string_literal: true require "services/formula_wrapper" require "fileutils" require "utils/output" module Homebrew module Services module Cli extend FileUtils extend Utils::Output::Mixin sig { returns(T.nilable(String)) } def self.sudo_service_user @sudo...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/system.rb
Library/Homebrew/services/system.rb
# typed: strict # frozen_string_literal: true require_relative "system/systemctl" require "utils/output" module Homebrew module Services module System extend Utils::Output::Mixin LAUNCHCTL_DOMAIN_ACTION_NOT_SUPPORTED = T.let(125, Integer) MISSING_DAEMON_MANAGER_EXCEPTION_MESSAGE = T.let( ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/formula_wrapper.rb
Library/Homebrew/services/formula_wrapper.rb
# typed: strict # frozen_string_literal: true require "utils/output" # Wrapper for a formula to handle service-related stuff like parsing and # generating the service/plist files. module Homebrew module Services class FormulaWrapper include Utils::Output::Mixin # Access the `Formula` instance. ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/formulae.rb
Library/Homebrew/services/formulae.rb
# typed: strict # frozen_string_literal: true require "services/formula_wrapper" module Homebrew module Services module Formulae # All available services, with optional filters applied # @private sig { params(loaded: T.nilable(T::Boolean), skip_root: T::Boolean).returns(T::Array[Services::Form...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/system/systemctl.rb
Library/Homebrew/services/system/systemctl.rb
# typed: strict # frozen_string_literal: true module Homebrew module Services module System module Systemctl sig { returns(T.nilable(Pathname)) } def self.executable @executable ||= T.let(which("systemctl"), T.nilable(Pathname)) end sig { void } def self.r...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/commands/start.rb
Library/Homebrew/services/commands/start.rb
# typed: strict # frozen_string_literal: true require "services/cli" module Homebrew module Services module Commands module Start TRIGGERS = %w[start launch load s l].freeze sig { params( targets: T::Array[Services::FormulaWrapper], custom_plist: T.n...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/commands/cleanup.rb
Library/Homebrew/services/commands/cleanup.rb
# typed: strict # frozen_string_literal: true require "services/cli" module Homebrew module Services module Commands module Cleanup TRIGGERS = %w[cleanup clean cl rm].freeze sig { void } def self.run cleaned = [] cleaned += Services::Cli.kill_orphaned_services...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/commands/info.rb
Library/Homebrew/services/commands/info.rb
# typed: strict # frozen_string_literal: true require "services/cli" module Homebrew module Services module Commands module Info TRIGGERS = %w[info i].freeze sig { params( targets: T::Array[Services::FormulaWrapper], verbose: T::Boolean, json:...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/commands/list.rb
Library/Homebrew/services/commands/list.rb
# typed: strict # frozen_string_literal: true require "services/cli" require "services/formulae" require "utils/output" module Homebrew module Services module Commands module List extend Utils::Output::Mixin TRIGGERS = T.let([nil, "list", "ls"].freeze, T::Array[T.nilable(String)]) ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/commands/stop.rb
Library/Homebrew/services/commands/stop.rb
# typed: strict # frozen_string_literal: true require "services/cli" module Homebrew module Services module Commands module Stop TRIGGERS = %w[stop unload terminate term t u].freeze sig { params( targets: T::Array[Services::FormulaWrapper], verbose: T::...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/commands/run.rb
Library/Homebrew/services/commands/run.rb
# typed: strict # frozen_string_literal: true require "services/cli" module Homebrew module Services module Commands module Run TRIGGERS = ["run"].freeze sig { params( targets: T::Array[Services::FormulaWrapper], custom_plist: T.nilable(String), ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/services/commands/kill.rb
Library/Homebrew/services/commands/kill.rb
# typed: strict # frozen_string_literal: true require "services/cli" module Homebrew module Services module Commands module Kill TRIGGERS = %w[kill k].freeze sig { params(targets: T::Array[Services::FormulaWrapper], verbose: T::Boolean).void } def self.run(targets, verbose:) ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false