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/test/language/perl/shebang_spec.rb
Library/Homebrew/test/language/perl/shebang_spec.rb
# frozen_string_literal: true require "language/perl" require "utils/shebang" RSpec.describe Language::Perl::Shebang do let(:file) { Tempfile.new("perl-shebang") } let(:broken_file) { Tempfile.new("perl-shebang") } let(:f) do f = {} f[:perl] = formula "perl" do url "https://brew.sh/perl-1.0.tgz" ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/language/node/shebang_spec.rb
Library/Homebrew/test/language/node/shebang_spec.rb
# frozen_string_literal: true require "language/node" require "utils/shebang" RSpec.describe Language::Node::Shebang do let(:file) { Tempfile.new("node-shebang") } let(:broken_file) { Tempfile.new("node-shebang") } let(:f) do f = {} f[:node18] = formula "node@18" do url "https://brew.sh/node-18.0...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/language/php/shebang_spec.rb
Library/Homebrew/test/language/php/shebang_spec.rb
# frozen_string_literal: true require "language/php" require "utils/shebang" RSpec.describe Language::PHP::Shebang do let(:file) { Tempfile.new("php-shebang") } let(:broken_file) { Tempfile.new("php-shebang") } let(:f) do f = {} f[:php81] = formula "php@8.1" do url "https://brew.sh/node-18.0.0.tg...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/rubocop.rb
Library/Homebrew/utils/rubocop.rb
#!/usr/bin/env ruby # typed: strict # frozen_string_literal: true require_relative "../standalone" require_relative "../warnings" Warnings.ignore :parser_syntax do require "rubocop" end # TODO: Remove this workaround once TestProf fixes their RuboCop plugin. require_relative "test_prof_rubocop_stub" exit RuboCop:...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/gems.rb
Library/Homebrew/utils/gems.rb
# typed: true # rubocop:disable Sorbet/StrictSigil # frozen_string_literal: true # Never `require` anything in this file (except English). It needs to be able to # work as the first item in `brew.rb` so we can load gems with Bundler when # needed before anything else is loaded (e.g. `json`). Homebrew::FastBootRequir...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/path.rb
Library/Homebrew/utils/path.rb
# typed: strict # frozen_string_literal: true module Utils module Path sig { params(parent: T.any(Pathname, String), child: T.any(Pathname, String)).returns(T::Boolean) } def self.child_of?(parent, child) parent_pathname = Pathname(parent).expand_path child_pathname = Pathname(child).expand_path ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/curl.rb
Library/Homebrew/utils/curl.rb
# typed: strict # frozen_string_literal: true require "open3" require "utils/timer" require "system_command" module Utils # Helper function for interacting with `curl`. module Curl include SystemCommand::Mixin extend SystemCommand::Mixin extend T::Helpers requires_ancestor { Kernel } # Erro...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/bottles.rb
Library/Homebrew/utils/bottles.rb
# typed: strict # frozen_string_literal: true require "tab" module Utils # Helper functions for bottles. # # @api internal module Bottles class << self # Gets the tag for the running OS. # # @api internal sig { params(tag: T.nilable(T.any(Symbol, Tag))).returns(Tag) } def tag...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/attestation.rb
Library/Homebrew/utils/attestation.rb
# typed: strict # frozen_string_literal: true require "attestation" require "bottle" require "utils/output" module Utils module Attestation extend Utils::Output::Mixin sig { params(bottle: Bottle, quiet: T::Boolean).void } def self.check_attestation(bottle, quiet: false) ohai "Verifying attestati...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/tar.rb
Library/Homebrew/utils/tar.rb
# typed: strict # frozen_string_literal: true require "system_command" require "utils/output" module Utils # Helper functions for interacting with tar files. module Tar class << self include SystemCommand::Mixin include Utils::Output::Mixin TAR_FILE_EXTENSIONS = %w[.tar .tb2 .tbz .tbz2 .tgz...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/shebang.rb
Library/Homebrew/utils/shebang.rb
# typed: strict # frozen_string_literal: true module Utils # Helper functions for manipulating shebang lines. module Shebang extend T::Helpers requires_ancestor { Kernel } module_function # Specification on how to rewrite a given shebang. class RewriteInfo sig { returns(Regexp) } ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/socket.rb
Library/Homebrew/utils/socket.rb
# typed: strict # frozen_string_literal: true require "socket" module Utils # Wrapper around UNIXSocket to allow > 104 characters on macOS. module UNIXSocketExt extend T::Generic sig { type_parameters(:U).params( path: String, _block: T.proc.params(arg0: UNIXSocket).returns(T.type...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/tty.rb
Library/Homebrew/utils/tty.rb
# typed: strict # frozen_string_literal: true # Various helper functions for interacting with TTYs. module Tty @stream = T.let($stdout, T.nilable(T.any(IO, StringIO))) COLOR_CODES = T.let( { red: 31, green: 32, yellow: 33, blue: 34, magenta: 35, cyan: 36, ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/output.rb
Library/Homebrew/utils/output.rb
# typed: strict # frozen_string_literal: true module Utils module Output module Mixin extend T::Helpers requires_ancestor { Kernel } sig { params(title: String).returns(String) } def ohai_title(title) verbose = if respond_to?(:verbose?) T.unsafe(self).verbose? ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/autoremove.rb
Library/Homebrew/utils/autoremove.rb
# typed: strict # frozen_string_literal: true module Utils # Helper function for finding autoremovable formulae. # # @private module Autoremove class << self # An array of {Formula} without {Formula} or {Cask} # dependents that weren't installed on request and without # build dependencies...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/github.rb
Library/Homebrew/utils/github.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "uri" require "utils/github/actions" require "utils/github/api" require "utils/output" require "system_command" # A module that interfaces with GitHub, code like PAT scopes, credential handling and API errors. # # @api internal mod...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
true
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/backtrace.rb
Library/Homebrew/utils/backtrace.rb
# typed: strict # frozen_string_literal: true require "utils/output" module Utils module Backtrace extend Utils::Output::Mixin @print_backtrace_message = T.let(false, T::Boolean) # Cleans `sorbet-runtime` gem paths from the backtrace unless... # 1. `verbose` is set # 2. first backtrace line st...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/popen.rb
Library/Homebrew/utils/popen.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Utils IO_DEFAULT_BUFFER_SIZE = 4096 private_constant :IO_DEFAULT_BUFFER_SIZE def self.popen_read(*args, safe: false, **options, &block) output = popen(args, "rb", options, &block) return output if !safe || $CHILD_STATUS...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/string_inreplace_extension.rb
Library/Homebrew/utils/string_inreplace_extension.rb
# typed: strong # frozen_string_literal: true require "utils/output" # Used by the {Utils::Inreplace.inreplace} function. class StringInreplaceExtension include Utils::Output::Mixin sig { returns(T::Array[String]) } attr_accessor :errors sig { returns(String) } attr_accessor :inreplace_string sig { par...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/shared_audits.rb
Library/Homebrew/utils/shared_audits.rb
# typed: strict # frozen_string_literal: true require "utils/curl" require "utils/github/api" # Auditing functions for rules common to both casks and formulae. module SharedAudits URL_TYPE_HOMEPAGE = "homepage URL" sig { params(product: String, cycle: String).returns(T.nilable(T::Hash[String, T.untyped])) } de...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/repology.rb
Library/Homebrew/utils/repology.rb
# typed: strict # frozen_string_literal: true require "utils/curl" require "utils/output" # Repology API client. module Repology extend Utils::Output::Mixin HOMEBREW_CORE = "homebrew" HOMEBREW_CASK = "homebrew_casks" MAX_PAGINATION = 15 private_constant :MAX_PAGINATION sig { params(last_package_in_respo...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/uid.rb
Library/Homebrew/utils/uid.rb
# typed: strict # frozen_string_literal: true module Utils module UID sig { type_parameters(:U).params(_block: T.proc.returns(T.type_parameter(:U))).returns(T.type_parameter(:U)) } def self.drop_euid(&_block) return yield if Process.euid == Process.uid original_euid = Process.euid begin ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/link.rb
Library/Homebrew/utils/link.rb
# typed: strict # frozen_string_literal: true require "utils/output" module Utils # Helper functions for creating symlinks. module Link extend Utils::Output::Mixin sig { params(src_dir: Pathname, dst_dir: Pathname, command: String, link_dir: T::Boolean).void } def self.link_src_dst_dirs(src_dir, dst_...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/pypi.rb
Library/Homebrew/utils/pypi.rb
# typed: strict # frozen_string_literal: true require "utils/inreplace" require "utils/output" require "utils/ast" # Helper functions for updating PyPI resources. module PyPI extend Utils::Output::Mixin PYTHONHOSTED_URL_PREFIX = "https://files.pythonhosted.org/packages/" private_constant :PYTHONHOSTED_URL_PREF...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/git_repository.rb
Library/Homebrew/utils/git_repository.rb
# typed: strict # frozen_string_literal: true module Utils # Gets the full commit hash of the HEAD commit. sig { params( repo: T.any(String, Pathname), length: T.nilable(Integer), safe: T::Boolean, ).returns(T.nilable(String)) } def self.git_head(repo = Pathname.pwd, length: nil, ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/test_prof_rubocop_stub.rb
Library/Homebrew/utils/test_prof_rubocop_stub.rb
# typed: strict # frozen_string_literal: true require_relative "../warnings" # TestProf's RuboCop plugin has two issues that we need to work around: # # 1. It references RuboCop::TestProf::Plugin::VERSION, which does not exist. # To solve this, we define the constant ourselves, which requires creating a dummy Lint...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/svn.rb
Library/Homebrew/utils/svn.rb
# typed: strict # frozen_string_literal: true require "system_command" require "utils/output" module Utils # Helper functions for querying SVN information. module Svn class << self include SystemCommand::Mixin include Utils::Output::Mixin sig { returns(T::Boolean) } def available? ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/gzip.rb
Library/Homebrew/utils/gzip.rb
# typed: strict # frozen_string_literal: true require "utils/output" module Utils # Helper functions for creating gzip files. module Gzip extend ::Utils::Output::Mixin # Apple's gzip also uses zlib so use the same buffer size here. # https://github.com/apple-oss-distributions/file_cmds/blob/file_cmds...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/spdx.rb
Library/Homebrew/utils/spdx.rb
# typed: strict # frozen_string_literal: true require "utils/curl" require "utils/github" # Helper module for updating SPDX license data. module SPDX module_function DATA_PATH = T.let((HOMEBREW_DATA_PATH/"spdx").freeze, Pathname) API_URL = "https://api.github.com/repos/spdx/license-list-data/releases/latest" ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/topological_hash.rb
Library/Homebrew/utils/topological_hash.rb
# typed: strict # frozen_string_literal: true require "tsort" module Utils # Topologically sortable hash map. class TopologicalHash < Hash extend T::Generic include TSort CaskOrFormula = T.type_alias { T.any(Cask::Cask, Formula) } K = type_member { { fixed: CaskOrFormula } } V = type_member ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/pid_path.rb
Library/Homebrew/utils/pid_path.rb
#!/usr/bin/env ruby # typed: strict # frozen_string_literal: true pid = ARGV[0]&.to_i raise "Missing `pid` argument!" unless pid require "fiddle" # Canonically, this is a part of libproc.dylib. libproc is however just a symlink to libSystem # and some security tools seem to not support aliases from the dyld shared c...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/shell.rb
Library/Homebrew/utils/shell.rb
# typed: strict # frozen_string_literal: true module Utils module Shell extend T::Helpers requires_ancestor { Kernel } module_function # Take a path and heuristically convert it to a shell name, # return `nil` if there's no match. sig { params(path: String).returns(T.nilable(Symbol)) } ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/service.rb
Library/Homebrew/utils/service.rb
# typed: strict # frozen_string_literal: true module Utils # Helpers for `brew services` related code. module Service # Check if a service is running for a specified formula. sig { params(formula: Formula).returns(T::Boolean) } def self.running?(formula) if launchctl? quiet_system(launchc...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/cpan.rb
Library/Homebrew/utils/cpan.rb
# typed: strict # frozen_string_literal: true require "utils/inreplace" require "utils/output" # Helper functions for updating CPAN resources. module CPAN METACPAN_URL_PREFIX = "https://cpan.metacpan.org/authors/id/" CPAN_ARCHIVE_REGEX = /^(.+)-([0-9.v]+)\.(?:tar\.gz|tgz)$/ private_constant :METACPAN_URL_PREFIX...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/formatter.rb
Library/Homebrew/utils/formatter.rb
# typed: strict # frozen_string_literal: true require "utils/tty" # Helper module for formatting output. # # @api internal module Formatter COMMAND_DESC_WIDTH = 80 OPTION_DESC_WIDTH = 45 sig { params(string: String, color: T.nilable(Symbol)).returns(String) } def self.arrow(string, color: nil) prefix("==...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/timer.rb
Library/Homebrew/utils/timer.rb
# typed: strong # frozen_string_literal: true module Utils module Timer sig { params(time: T.nilable(Time)).returns(T.nilable(T.any(Float, Integer))) } def self.remaining(time) return unless time [0, time - Time.now].max end sig { params(time: T.nilable(Time)).returns(T.nilable(T.any(Fl...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/ruby_check_version_script.rb
Library/Homebrew/utils/ruby_check_version_script.rb
#!/usr/bin/env ruby # typed: true # frozen_string_literal: true HOMEBREW_REQUIRED_RUBY_VERSION = ARGV.first.freeze raise "No Ruby version passed!" if HOMEBREW_REQUIRED_RUBY_VERSION.to_s.empty? require "rubygems" ruby_version = Gem::Version.new(RUBY_VERSION) homebrew_required_ruby_version = Gem::Version.new(HOMEBREW_...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/analytics.rb
Library/Homebrew/utils/analytics.rb
# typed: strict # frozen_string_literal: true require "context" require "erb" require "settings" require "cachable" require "utils/output" module Utils # Helper module for fetching and reporting analytics data. module Analytics INFLUX_BUCKET = "analytics" INFLUX_TOKEN = "iVdsgJ_OjvTYGAA79gOfWlA_fX0QCuj4eY...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/fork.rb
Library/Homebrew/utils/fork.rb
# typed: strict # frozen_string_literal: true require "fcntl" require "utils/socket" module Utils sig { params(child_error: T::Hash[String, T.untyped]).returns(Exception) } def self.rewrite_child_error(child_error) inner_class = Object.const_get(child_error["json_class"]) error = if child_error["cmd"] && ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/inreplace.rb
Library/Homebrew/utils/inreplace.rb
# typed: strict # frozen_string_literal: true require "utils/string_inreplace_extension" module Utils # Helper functions for replacing text in files in-place. module Inreplace # Error during text replacement. class Error < RuntimeError sig { params(errors: T::Hash[String, T::Array[String]]).void } ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/git.rb
Library/Homebrew/utils/git.rb
# typed: strict # frozen_string_literal: true require "system_command" module Utils # Helper functions for querying Git information. # # @see GitRepository module Git extend SystemCommand::Mixin sig { returns(T::Boolean) } def self.available? !version.null? end sig { returns(Versio...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/linkage.rb
Library/Homebrew/utils/linkage.rb
# typed: strict # frozen_string_literal: true module Utils sig { params(binary: T.any(String, Pathname), library: T.any(String, Pathname)).returns(T::Boolean) } def self.binary_linked_to_library?(binary, library) library = library.to_s library = File.realpath(library) if library.start_with?(HOMEBREW_...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/ast.rb
Library/Homebrew/utils/ast.rb
# typed: strict # frozen_string_literal: true require "ast_constants" require "rubocop-ast" module Utils # Helper functions for editing Ruby files. module AST Node = RuboCop::AST::Node SendNode = RuboCop::AST::SendNode BlockNode = RuboCop::AST::BlockNode ProcessedSource = RuboCop::AST::ProcessedSo...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/user.rb
Library/Homebrew/utils/user.rb
# typed: strict # frozen_string_literal: true require "delegate" require "etc" require "system_command" # A system user. class User < SimpleDelegator include SystemCommand::Mixin # Return whether the user has an active GUI session. sig { returns(T::Boolean) } def gui? out, _, status = system_command("wh...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/ruby_sh/ruby_gem_version.rb
Library/Homebrew/utils/ruby_sh/ruby_gem_version.rb
# typed: strict # frozen_string_literal: true require "rbconfig" puts RbConfig::CONFIG["ruby_version"]
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/github/actions.rb
Library/Homebrew/utils/github/actions.rb
# typed: strict # frozen_string_literal: true module GitHub # Helper functions for interacting with GitHub Actions. # # @api internal module Actions sig { params(string: String).returns(String) } def self.escape(string) # See https://github.community/t/set-output-truncates-multiline-strings/16852...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/github/api.rb
Library/Homebrew/utils/github/api.rb
# typed: strict # frozen_string_literal: true require "system_command" require "utils/output" module GitHub sig { params(scopes: T::Array[String]).returns(String) } def self.pat_blurb(scopes = ALL_SCOPES) require "utils/formatter" require "utils/shell" <<~EOS Create a GitHub personal access toke...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/github/artifacts.rb
Library/Homebrew/utils/github/artifacts.rb
# typed: strict # frozen_string_literal: true require "download_strategy" require "utils/github" module GitHub # Download an artifact from GitHub Actions and unpack it into the current working directory. # # @param url [String] URL to download from # @param artifact_id [String] a value that uniquely identifie...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/lock_sh/ruby_check_version.rb
Library/Homebrew/utils/lock_sh/ruby_check_version.rb
# typed: strict # frozen_string_literal: true ruby_version_to_check = ARGV.first exit(ruby_version_to_check < RUBY_VERSION)
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/utils/lock_sh/ruby_lock_file_descriptor.rb
Library/Homebrew/utils/lock_sh/ruby_lock_file_descriptor.rb
# typed: strict # frozen_string_literal: true file_descriptor = ARGV.first.to_i file = File.new(file_descriptor) file.flock(File::LOCK_EX | File::LOCK_NB) || exit(1)
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/requirements/macos_requirement.rb
Library/Homebrew/requirements/macos_requirement.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "requirement" # A requirement on macOS. class MacOSRequirement < Requirement fatal true attr_reader :comparator, :version # Keep these around as empty arrays so we can keep the deprecation/disabling code the same. # Treat ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/requirements/xcode_requirement.rb
Library/Homebrew/requirements/xcode_requirement.rb
# typed: strict # frozen_string_literal: true require "requirement" # A requirement on Xcode. class XcodeRequirement < Requirement fatal true sig { returns(T.nilable(String)) } attr_reader :version satisfy(build_env: false) do T.bind(self, XcodeRequirement) xcode_installed_version! end sig { pa...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/requirements/codesign_requirement.rb
Library/Homebrew/requirements/codesign_requirement.rb
# typed: strict # frozen_string_literal: true # A requirement on a code-signing identity. class CodesignRequirement < Requirement fatal true sig { returns(String) } attr_reader :identity sig { params(tags: T::Array[T.untyped]).void } def initialize(tags) options = tags.shift raise ArgumentError, "C...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/requirements/arch_requirement.rb
Library/Homebrew/requirements/arch_requirement.rb
# typed: strict # frozen_string_literal: true require "requirement" # A requirement on a specific architecture. class ArchRequirement < Requirement fatal true @arch = T.let(nil, T.nilable(Symbol)) sig { returns(T.nilable(Symbol)) } attr_reader :arch sig { params(tags: T::Array[Symbol]).void } def initi...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/requirements/linux_requirement.rb
Library/Homebrew/requirements/linux_requirement.rb
# typed: strict # frozen_string_literal: true # A requirement on Linux. class LinuxRequirement < Requirement fatal true satisfy(build_env: false) { OS.linux? } sig { returns(String) } def message "Linux is required for this software." end end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api/json_download.rb
Library/Homebrew/api/json_download.rb
# typed: strict # frozen_string_literal: true require "downloadable" module Homebrew module API class JSONDownloadStrategy < AbstractDownloadStrategy sig { params(url: String, name: String, version: T.nilable(T.any(String, Version)), meta: T.untyped).void } def initialize(url, name, version, **meta)...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api/source_download.rb
Library/Homebrew/api/source_download.rb
# typed: strict # frozen_string_literal: true require "downloadable" module Homebrew module API class SourceDownloadStrategy < CurlDownloadStrategy sig { override.returns(Pathname) } def symlink_location cache/name end end class SourceDownload include Downloadable ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api/formula_struct.rb
Library/Homebrew/api/formula_struct.rb
# typed: strict # frozen_string_literal: true require "service" require "utils/spdx" module Homebrew module API class FormulaStruct < T::Struct PREDICATES = [ :bottle, :deprecate, :disable, :head, :keg_only, :no_autobump_message, :pour_bottle, ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api/formula.rb
Library/Homebrew/api/formula.rb
# typed: strict # frozen_string_literal: true require "cachable" require "api" require "api/source_download" require "download_queue" require "autobump_constants" module Homebrew module API # Helper functions for using the formula JSON API. module Formula extend Cachable DEFAULT_API_FILENAME = ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api/cask.rb
Library/Homebrew/api/cask.rb
# typed: strict # frozen_string_literal: true require "cachable" require "api" require "api/source_download" require "download_queue" module Homebrew module API # Helper functions for using the cask JSON API. module Cask extend Cachable DEFAULT_API_FILENAME = "cask.jws.json" private_clas...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api/internal.rb
Library/Homebrew/api/internal.rb
# typed: strict # frozen_string_literal: true require "cachable" require "api" require "api/source_download" require "download_queue" require "formula_stub" module Homebrew module API # Helper functions for using the JSON internal API. module Internal extend Cachable private_class_method :cache...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api/analytics.rb
Library/Homebrew/api/analytics.rb
# typed: strict # frozen_string_literal: true module Homebrew module API # Helper functions for using the analytics JSON API. module Analytics class << self sig { returns(String) } def analytics_api_path "analytics" end sig { params(category: String, days: T.a...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/api/cask_struct.rb
Library/Homebrew/api/cask_struct.rb
# typed: strict # frozen_string_literal: true module Homebrew module API class CaskStruct < T::Struct PREDICATES = [ :auto_updates, :caveats, :conflicts, :container, :depends_on, :deprecate, :desc, :disable, ].freeze ArtifactArgs ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/go_checker.rb
Library/Homebrew/bundle/go_checker.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module Checker class GoChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :go PACKAGE_TYPE_NAME = "Go Package" sig { params(package: String, no_upgrade: T::Boolean).returns(String) } def failu...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/vscode_extension_dumper.rb
Library/Homebrew/bundle/vscode_extension_dumper.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module VscodeExtensionDumper sig { void } def self.reset! @extensions = nil end sig { returns(T::Array[String]) } def self.extensions @extensions ||= T.let(nil, T.nilable(T::Array[String])) ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/mac_app_store_dumper.rb
Library/Homebrew/bundle/mac_app_store_dumper.rb
# typed: strict # frozen_string_literal: true require "json" module Homebrew module Bundle module MacAppStoreDumper sig { void } def self.reset! @apps = nil end sig { returns(T::Array[[String, String]]) } def self.apps @apps ||= T.let(nil, T.nilable(T::Array[[Strin...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/tap_checker.rb
Library/Homebrew/bundle/tap_checker.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module Checker class TapChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :tap PACKAGE_TYPE_NAME = "Tap" sig { params(entries: T::Array[Homebrew::Bundle::Dsl::Entry], exit_on_first_error: T...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/vscode_extension_installer.rb
Library/Homebrew/bundle/vscode_extension_installer.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module VscodeExtensionInstaller sig { void } def self.reset! @installed_extensions = nil end sig { params(name: String, no_upgrade: T::Boolean, verbose: T::Boolean).returns(T::Boolean) } def self.pr...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/flatpak_dumper.rb
Library/Homebrew/bundle/flatpak_dumper.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module FlatpakDumper sig { void } def self.reset! @packages = nil @packages_with_remotes = nil @remote_urls = nil end sig { returns(T::Hash[String, String]) } def self.remote_urls ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/skipper.rb
Library/Homebrew/bundle/skipper.rb
# typed: strict # frozen_string_literal: true require "hardware" module Homebrew module Bundle module Skipper class << self sig { params(entry: Dsl::Entry, silent: T::Boolean).returns(T::Boolean) } def skip?(entry, silent: false) require "bundle/formula_dumper" return ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/brew_checker.rb
Library/Homebrew/bundle/brew_checker.rb
# typed: strict # frozen_string_literal: true require "bundle/formula_installer" module Homebrew module Bundle module Checker class BrewChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :brew PACKAGE_TYPE_NAME = "Formula" sig { params(formula: String, no_upgrade: 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/bundle/go_installer.rb
Library/Homebrew/bundle/go_installer.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module GoInstaller sig { void } def self.reset! @installed_packages = nil end sig { params(name: String, verbose: T::Boolean, _options: T.anything).returns(T::Boolean) } def self.preinstall!(name, v...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/brew_service_checker.rb
Library/Homebrew/bundle/brew_service_checker.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module Bundle module Checker class BrewServiceChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :brew PACKAGE_TYPE_NAME = "Service" PACKAGE_ACTION_PREDICATE = "needs to be started." ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/flatpak_installer.rb
Library/Homebrew/bundle/flatpak_installer.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module FlatpakInstaller sig { void } def self.reset! @installed_packages = nil end sig { params( name: String, verbose: T::Boolean, remote: String, u...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/dsl.rb
Library/Homebrew/bundle/dsl.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module Bundle class Dsl class Entry attr_reader :type, :name, :options def initialize(type, name, options = {}) @type = type @name = name @options = options 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/brewfile.rb
Library/Homebrew/bundle/brewfile.rb
# typed: strict # frozen_string_literal: true require "bundle/dsl" module Homebrew module Bundle module Brewfile sig { params( dash_writes_to_stdout: T::Boolean, global: T::Boolean, file: T.nilable(String), ).returns(Pathname) ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/cask_installer.rb
Library/Homebrew/bundle/cask_installer.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module Bundle module CaskInstaller extend ::Utils::Output::Mixin def self.reset! @installed_casks = nil @outdated_casks = nil end private_class_method def self.upgrading?(no_upg...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/adder.rb
Library/Homebrew/bundle/adder.rb
# typed: strict # frozen_string_literal: true require "bundle/brewfile" require "bundle/dumper" module Homebrew module Bundle module Adder module_function sig { params(args: String, type: Symbol, global: T::Boolean, file: String).void } def add(*args, type:, global:, file:) brewfile_p...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/lister.rb
Library/Homebrew/bundle/lister.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module Lister sig { params(entries: T::Array[Homebrew::Bundle::Dsl::Entry], formulae: T::Boolean, casks: T::Boolean, taps: T::Boolean, mas: T::Boolean, vscode: T::Boolean, go: T::Boolean, cargo: 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/bundle/mac_app_store_checker.rb
Library/Homebrew/bundle/mac_app_store_checker.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "bundle/mac_app_store_installer" module Homebrew module Bundle module Checker class MacAppStoreChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :mas PACKAGE_TYPE_NAME = "App" def installe...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/installer.rb
Library/Homebrew/bundle/installer.rb
# typed: strict # frozen_string_literal: true require "bundle/dsl" require "bundle/formula_installer" require "bundle/cask_installer" require "bundle/mac_app_store_installer" require "bundle/vscode_extension_installer" require "bundle/go_installer" require "bundle/cargo_installer" require "bundle/flatpak_installer" re...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/formula_dumper.rb
Library/Homebrew/bundle/formula_dumper.rb
# typed: true # frozen_string_literal: true require "json" require "tsort" require "utils/output" module Homebrew module Bundle # TODO: refactor into multiple modules module FormulaDumper extend Utils::Output::Mixin def self.reset! require "bundle/brew_services" Homebrew::Bundl...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/tap_dumper.rb
Library/Homebrew/bundle/tap_dumper.rb
# typed: strict # frozen_string_literal: true require "json" module Homebrew module Bundle module TapDumper sig { void } def self.reset! @taps = nil end sig { returns(String) } def self.dump taps.map do |tap| remote = if tap.custom_remote? && (tap_remote ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/brew_services.rb
Library/Homebrew/bundle/brew_services.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true require "services/system" module Homebrew module Bundle module BrewServices def self.reset! @started_services = nil end def self.stop(name, keep: false, verbose: false) return true unless started?(na...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/cargo_dumper.rb
Library/Homebrew/bundle/cargo_dumper.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module CargoDumper sig { void } def self.reset! @packages = nil end sig { returns(T::Array[String]) } def self.packages @packages ||= T.let(nil, T.nilable(T::Array[String])) @package...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/flatpak_checker.rb
Library/Homebrew/bundle/flatpak_checker.rb
# typed: strict # frozen_string_literal: true require "bundle/checker" module Homebrew module Bundle module Checker class FlatpakChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :flatpak PACKAGE_TYPE_NAME = "Flatpak" sig { params(entries: T::Array[Homebrew::Bundl...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/tap_installer.rb
Library/Homebrew/bundle/tap_installer.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module TapInstaller sig { params(name: String, verbose: T::Boolean, _options: T.anything).returns(T::Boolean) } def self.preinstall!(name, verbose: false, **_options) if installed_taps.include? name puts "Sk...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/remover.rb
Library/Homebrew/bundle/remover.rb
# typed: strict # frozen_string_literal: true require "utils/output" module Homebrew module Bundle module Remover extend ::Utils::Output::Mixin sig { params(args: String, type: Symbol, global: T::Boolean, file: T.nilable(String)).void } def self.remove(*args, type:, global:, file:) re...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/mac_app_store_installer.rb
Library/Homebrew/bundle/mac_app_store_installer.rb
# typed: strict # frozen_string_literal: true require "os" module Homebrew module Bundle module MacAppStoreInstaller sig { void } def self.reset! @installed_app_ids = nil @outdated_app_ids = nil end sig { params(name: String, id: Integer, no_upgrade: T::Boolean, verbose:...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/cask_dumper.rb
Library/Homebrew/bundle/cask_dumper.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module CaskDumper sig { void } def self.reset! @casks = nil @cask_names = nil @cask_oldnames = nil end sig { returns(T::Array[String]) } def self.cask_names @cask_names ||= T...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/cargo_checker.rb
Library/Homebrew/bundle/cargo_checker.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module Checker class CargoChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :cargo PACKAGE_TYPE_NAME = "Cargo Package" sig { params(package: String, no_upgrade: T::Boolean).returns(String) } ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/vscode_extension_checker.rb
Library/Homebrew/bundle/vscode_extension_checker.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module Checker class VscodeExtensionChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :vscode PACKAGE_TYPE_NAME = "VSCode Extension" sig { params(extension: String, no_upgrade: T::Boolean).returns(St...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/go_dumper.rb
Library/Homebrew/bundle/go_dumper.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module GoDumper sig { void } def self.reset! @packages = nil end sig { returns(T::Array[String]) } def self.packages @packages ||= T.let(nil, T.nilable(T::Array[String])) @packages |...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/cask_checker.rb
Library/Homebrew/bundle/cask_checker.rb
# typed: strict # frozen_string_literal: true require "bundle/cask_installer" module Homebrew module Bundle module Checker class CaskChecker < Homebrew::Bundle::Checker::Base PACKAGE_TYPE = :cask PACKAGE_TYPE_NAME = "Cask" sig { params(cask: String, no_upgrade: T::Boolean).returns...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/checker.rb
Library/Homebrew/bundle/checker.rb
# typed: true # frozen_string_literal: true module Homebrew module Bundle module Checker class Base # Implement these in any subclass # PACKAGE_TYPE = :pkg # PACKAGE_TYPE_NAME = "Package" def exit_early_check(packages, no_upgrade:) work_to_be_done = packages.find ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/formula_installer.rb
Library/Homebrew/bundle/formula_installer.rb
# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Homebrew module Bundle class FormulaInstaller def self.reset! @installed_formulae = nil @outdated_formulae = nil @pinned_formulae = nil end def self.preinstall!(name, no_upgrade: false,...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/dumper.rb
Library/Homebrew/bundle/dumper.rb
# typed: strict # frozen_string_literal: true require "fileutils" require "pathname" module Homebrew module Bundle module Dumper sig { params(brewfile_path: Pathname, force: T::Boolean).returns(T::Boolean) } private_class_method def self.can_write_to_brewfile?(brewfile_path, force: false) ra...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/cargo_installer.rb
Library/Homebrew/bundle/cargo_installer.rb
# typed: strict # frozen_string_literal: true module Homebrew module Bundle module CargoInstaller sig { void } def self.reset! @installed_packages = nil end sig { params(name: String, verbose: T::Boolean, _options: T.anything).returns(T::Boolean) } def self.preinstall!(name...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/commands/add.rb
Library/Homebrew/bundle/commands/add.rb
# typed: strict # frozen_string_literal: true require "bundle/adder" module Homebrew module Bundle module Commands module Add sig { params(args: String, type: Symbol, global: T::Boolean, file: T.nilable(String)).void } def self.run(*args, type:, global:, file:) Homebrew::Bundle::...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/bundle/commands/dump.rb
Library/Homebrew/bundle/commands/dump.rb
# typed: strict # frozen_string_literal: true require "bundle/dumper" module Homebrew module Bundle module Commands module Dump sig { params(global: T::Boolean, file: T.nilable(String), describe: T::Boolean, force: T::Boolean, no_restart: T::Boolean, taps: T::Boolean, fo...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false