language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
Homebrew
brew
d0c138ad985fa70f55792288f73a31e01656e37b.json
cache: Remove slashes from documentation
Library/Homebrew/cmd/--cache.rb
@@ -11,11 +11,11 @@ module Homebrew def __cache_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `--cache` [<options>] [<formula/cask>] + `--cache` [<options>] [<formula>] Display Homebrew's download cache. See also `HOMEBREW_CACHE`. - If <formula/cask> is provide...
false
Other
Homebrew
brew
11fbf9d035033467009ae0252b4496b34923c425.json
cache: Add flags for printing only formulae or casks
Library/Homebrew/cmd/--cache.rb
@@ -11,17 +11,22 @@ module Homebrew def __cache_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `--cache` [<options>] [<formula>] + `--cache` [<options>] [<formula/cask>] Display Homebrew's download cache. See also `HOMEBREW_CACHE`. - If <formula> is provided, di...
false
Other
Homebrew
brew
01f78582fa064e807289bb73aed0ea176080eac8.json
Use commands cache in bash/fish completions
completions/bash/brew
@@ -96,8 +96,12 @@ __brew_complete_tapped() { __brew_complete_commands() { local cur="${COMP_WORDS[COMP_CWORD]}" + HOMEBREW_CACHE=$(brew --cache) + HOMEBREW_REPOSITORY=$(brew --repo) # Do not auto-complete "*instal" or "*uninstal" aliases for "*install" commands. - local cmds="$(brew commands --quiet --incl...
true
Other
Homebrew
brew
01f78582fa064e807289bb73aed0ea176080eac8.json
Use commands cache in bash/fish completions
completions/fish/brew.fish
@@ -181,7 +181,11 @@ function __fish_brew_suggest_taps_pinned -d "List only pinned taps" end function __fish_brew_suggest_commands -d "Lists all commands names, including aliases" - brew commands --quiet --include-aliases + if test -f (brew --cache)/all_commands_list.txt + cat (brew --cache)/all_comman...
true
Other
Homebrew
brew
6a3f18b0ae65806710c8d7d7a3b95bef81b05b11.json
OS::Mac::CPU: add Apple Silicon Co-authored-by: Shaun Jackman <sjackman@gmail.com>
Library/Homebrew/extend/os/mac/hardware/cpu.rb
@@ -11,12 +11,16 @@ def type case sysctl_int("hw.cputype") when 7 :intel + when MachO::Headers::CPU_TYPE_ARM64 + :arm else :dunno end end def family + return :dunno if arm? + case sysctl_int("hw.cpufamily") ...
false
Other
Homebrew
brew
6106bfc4976dff2b03cf3fadbbf92dd1fd9e0f09.json
Enable patchelf.rb for HOMEBREW_DEVELOPERs. HOMEBREW_PATCHELF_RB is enabled on 2 cases. 1) `HOMEBREW_PATCHELF_RB` is set 2) `HOMEBREW_DEVELOPER` is set , and `HOMEBREW_NO_PATCHELF_RB` is not set. use `HOMEBREW_NO_PATCHELF_RB` to turn it off for devs. Note: When HOMEBREW_PATCHELF_RB and HOMEBREW_NO_PATCHELF_RB both ...
Library/Homebrew/os/linux/global.rb
@@ -1,7 +1,8 @@ # frozen_string_literal: true # enables experimental readelf.rb, patchelf support. -HOMEBREW_PATCHELF_RB = ENV["HOMEBREW_PATCHELF_RB"].present?.freeze +HOMEBREW_PATCHELF_RB = (ENV["HOMEBREW_PATCHELF_RB"].present? || + (ENV["HOMEBREW_DEVELOPER"].present? && ENV["HOMEBREW_NO_PAT...
false
Other
Homebrew
brew
8d29e79f7eb4c6169fd6b0ec2149a7bcf51be45b.json
OS::Mac::Version: add Big Sur
Library/Homebrew/os/mac/version.rb
@@ -6,6 +6,7 @@ module OS module Mac class Version < ::Version SYMBOLS = { + big_sur: "10.16", catalina: "10.15", mojave: "10.14", high_sierra: "10.13",
false
Other
Homebrew
brew
7c24ff19d56b73051b3e7f8f6f3fd0a8b325dcb6.json
args: remove unused field
Library/Homebrew/cli/args.rb
@@ -38,7 +38,6 @@ def freeze_named_args!(named_args) @resolved_formulae = nil @formulae_paths = nil @casks = nil - @formulae_and_casks = nil @kegs = nil self[:named_args] = named_args
false
Other
Homebrew
brew
36520b0a9d54a19635b953613ed7a37863ae9a7e.json
cache: fix bug when calling class method
Library/Homebrew/cask/cmd/--cache.rb
@@ -16,7 +16,7 @@ def initialize(*) def run casks.each do |cask| - puts cached_location(cask) + puts self.class.cached_location(cask) end end
false
Other
Homebrew
brew
a919ba9ccd7c26179cd4490ce467ffa0f255ce80.json
srb: resolve error 4012. 18 errors => 13 errors
Library/Homebrew/os/mac/xquartz.rb
@@ -2,9 +2,7 @@ module OS module Mac - X11 = XQuartz = Module.new # rubocop:disable Style/MutableConstant - - module XQuartz + X11 = XQuartz = Module.new do # rubocop:disable Style/MutableConstant module_function DEFAULT_BUNDLE_PATH = Pathname.new("Applications/Utilities/XQuartz.app").fre...
false
Other
Homebrew
brew
cf6ff4d84ce30d79b2247d95daff96f01b917793.json
cache: add test for casks
Library/Homebrew/test/cmd/--cache_spec.rb
@@ -13,4 +13,18 @@ .and not_to_output.to_stderr .and be_a_success end + + it "prints the cache files for a given Cask" do + expect { brew "--cache", cask_path("local-caffeine") } + .to output(%r{cask: #{HOMEBREW_CACHE}/downloads/[\da-f]{64}--caffeine\.zip}).to_stdout + .and not_to_output....
false
Other
Homebrew
brew
049528132582a5587f353a8a015a8f918ecdab44.json
home: write tests using cask as argument
Library/Homebrew/cmd/--cache.rb
@@ -32,23 +32,20 @@ def __cache puts HOMEBREW_CACHE else args.named.each do |name| + formula = Formulary.factory name + if Fetch.fetch_bottle?(formula) + puts formula.bottle.cached_download + else + puts formula.cached_download + end + rescue Formula...
true
Other
Homebrew
brew
049528132582a5587f353a8a015a8f918ecdab44.json
home: write tests using cask as argument
Library/Homebrew/cmd/home.rb
@@ -25,21 +25,20 @@ def home if args.no_named? exec_browser HOMEBREW_WWW else - homepages = args.named.flat_map do |name| + homepages = args.named.flat_map do |ref| + [Formulary.factory(ref).homepage] + rescue FormulaUnavailableError => e + puts e.message begin - ...
true
Other
Homebrew
brew
049528132582a5587f353a8a015a8f918ecdab44.json
home: write tests using cask as argument
Library/Homebrew/test/cmd/home_spec.rb
@@ -1,17 +1,43 @@ # frozen_string_literal: true require "cmd/shared_examples/args_parse" +require "support/lib/config" describe "Homebrew.home_args" do it_behaves_like "parseable arguments" end describe "brew home", :integration_test do + let(:testballhome_homepage) { + Formula["testballhome"].homepag...
true
Other
Homebrew
brew
d6e587453e166c2c62ef05c06f19b70a21914c7f.json
srb: resolve error 4015. 25 errors => 18 errors
Library/Homebrew/os/linux.rb
@@ -27,7 +27,7 @@ module Mac # rubocop:disable Naming/ConstantName # rubocop:disable Style/MutableConstant - ::MacOS = self + ::MacOS = OS::Mac # rubocop:enable Naming/ConstantName # rubocop:enable Style/MutableConstant
true
Other
Homebrew
brew
d6e587453e166c2c62ef05c06f19b70a21914c7f.json
srb: resolve error 4015. 25 errors => 18 errors
Library/Homebrew/os/mac.rb
@@ -12,7 +12,7 @@ module Mac # rubocop:disable Naming/ConstantName # rubocop:disable Style/MutableConstant - ::MacOS = self + ::MacOS = OS::Mac # rubocop:enable Naming/ConstantName # rubocop:enable Style/MutableConstant
true
Other
Homebrew
brew
d6e587453e166c2c62ef05c06f19b70a21914c7f.json
srb: resolve error 4015. 25 errors => 18 errors
Library/Homebrew/sorbet/rbi/todo.rbi
@@ -7,13 +7,6 @@ module ELFShim::Metadata::PatchELF::PatchError; end module ELFShim::PatchELF::PatchError; end module ELFShim::PatchELF::Patcher; end module Homebrew::Error; end -module MacOS::CLT; end -module MacOS::CLT::PKG_PATH; end -module MacOS::Version; end -module MacOS::Version::SYMBOLS; end -module MacOS::X...
true
Other
Homebrew
brew
d1b6a8581900458ee5262d727b5611d7290d8ccf.json
show help for aliased commands
Library/Homebrew/brew.rb
@@ -58,6 +58,7 @@ def output_unsupported_error help_flag = true elsif !cmd && !help_flag_list.include?(arg) cmd = ARGV.delete_at(i) + cmd = Commands::HOMEBREW_INTERNAL_COMMAND_ALIASES.fetch(cmd, cmd) end end
false
Other
Homebrew
brew
2b990aa53c12d873ad2513e7168268c28ca234cf.json
pr-pull: pass verbose and debug to subcommands
Library/Homebrew/dev-cmd/pr-pull.rb
@@ -147,6 +147,8 @@ def mirror_formulae(tap, original_commit, publish: true, org:, repo:) else odebug "Mirroring #{mirror_url}" mirror_args = ["mirror", f.full_name] + mirror_args << "--debug" if Homebrew.args.debug? + mirror_args << "--verbose" if Homebrew.args.verbose?...
true
Other
Homebrew
brew
2b990aa53c12d873ad2513e7168268c28ca234cf.json
pr-pull: pass verbose and debug to subcommands
Library/Homebrew/dev-cmd/pr-upload.rb
@@ -21,6 +21,8 @@ def pr_upload_args description: "Upload to the specified Bintray organisation (default: homebrew)." flag "--root-url=", description: "Use the specified <URL> as the root of the bottle's URL instead of Homebrew's default." + switch :verbose + switch :debug ...
true
Other
Homebrew
brew
ceb56df834d558d94251414672b97d1c7833ab95.json
home: integrate brew home and cask home
Library/Homebrew/cmd/home.rb
@@ -23,7 +23,7 @@ def home if args.no_named? exec_browser HOMEBREW_WWW else - exec_browser(*args.formulae.map(&:homepage)) + exec_browser(*args.formulae_and_casks.map(&:homepage)) end end end
false
Other
Homebrew
brew
cf76f6e721354db4c0501aeb69164d785a3da13e.json
cache: integrate brew --cache and cask --cache
Library/Homebrew/cask/cmd/--cache.rb
@@ -16,10 +16,14 @@ def initialize(*) def run casks.each do |cask| - puts Download.new(cask).downloader.cached_location + puts cached_location(cask) end end + def self.cached_location(cask) + Download.new(cask).downloader.cached_location + end + ...
true
Other
Homebrew
brew
cf76f6e721354db4c0501aeb69164d785a3da13e.json
cache: integrate brew --cache and cask --cache
Library/Homebrew/cmd/--cache.rb
@@ -2,6 +2,7 @@ require "fetch" require "cli/parser" +require "cask/cmd" module Homebrew module_function @@ -29,13 +30,21 @@ def __cache if args.no_named? puts HOMEBREW_CACHE else - args.formulae.each do |f| - if Fetch.fetch_bottle?(f) - puts f.bottle.cached_download - ...
true
Other
Homebrew
brew
72ebd2127f65d3edf0951b5b3e39b277808ce9cb.json
args: add method to retrieve formula and casks
Library/Homebrew/cli/args.rb
@@ -38,6 +38,7 @@ def freeze_named_args!(named_args) @resolved_formulae = nil @formulae_paths = nil @casks = nil + @formulae_and_casks = nil @kegs = nil self[:named_args] = named_args @@ -107,6 +108,23 @@ def casks .freeze ...
false
Other
Homebrew
brew
c244e992afbab4e74fa5134c21c345e281b3f5aa.json
extend/pathname: add args argument to write_env_script
Library/Homebrew/extend/pathname.rb
@@ -346,13 +346,17 @@ def write_exec_script(*targets) end # Writes an exec script that sets environment variables - def write_env_script(target, env) + def write_env_script(target, args, env = nil) + unless env + env = args + args = nil + end env_export = +"" env.each { |key, value| ...
false
Other
Homebrew
brew
cd93d4e38a4a850680cde1edef63448633a9f1dd.json
language/java: add support for OpenJDK formula
Library/Homebrew/extend/os/mac/language/java.rb
@@ -4,17 +4,25 @@ module Language module Java def self.system_java_home_cmd(version = nil) version_flag = " --version #{version}" if version - "/usr/libexec/java_home#{version_flag}" + "/usr/libexec/java_home#{version_flag} --failfast 2>/dev/null" end private_class_method :system_java...
true
Other
Homebrew
brew
cd93d4e38a4a850680cde1edef63448633a9f1dd.json
language/java: add support for OpenJDK formula
Library/Homebrew/language/java.rb
@@ -2,7 +2,31 @@ module Language module Java + def self.find_openjdk_formula(version = nil) + can_be_newer = version&.end_with?("+") + version = version.to_i + + openjdk = Formula["openjdk"] + [openjdk, *openjdk.versioned_formulae].find do |f| + next false unless f.any_version_instal...
true
Other
Homebrew
brew
b2cccfcf68b131d2eab734b1e105a5b0407a06ba.json
Apply suggestions from code review Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/dev-cmd/audit.rb
@@ -353,7 +353,7 @@ def audit_license if @spdx_ids.key?(formula.license) return unless @online - user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}, false) + user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) return if user.ni...
false
Other
Homebrew
brew
eca528ccccf2c73c6059fc821f756de7630c6251.json
util github: remove nil as that is already expected behaviour Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/utils/github.rb
@@ -480,7 +480,7 @@ def get_repo_license(user, repo) res = GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/license") return unless res.key?("license") - res["license"]["spdx_id"] || nil + res["license"]["spdx_id"] rescue GitHub::HTTPNotFoundError nil end
false
Other
Homebrew
brew
4b8745f32b0220214084df67d6f67b3386724de4.json
srb: resolve error 4010. 28 errors=> 25 errors Sorbet was reporting errors (error code: 4010) on the auto-generated tapioca RBI files. Since sorbet-typed has a good enough RBI for json hence we can exclude json from tapioca generation using the --exclude flag.
Library/Homebrew/sorbet/rbi/gems/json@2.3.0.rbi
@@ -1,87 +0,0 @@ -# This file is autogenerated. Do not edit it by hand. Regenerate it with: -# tapioca sync - -# typed: true - -class Class < ::Module - def json_creatable?; end -end - -module JSON - - private - - def dump(obj, anIO = _, limit = _); end - def fast_generate(obj, opts = _); end - def fast_unparse(...
true
Other
Homebrew
brew
4b8745f32b0220214084df67d6f67b3386724de4.json
srb: resolve error 4010. 28 errors=> 25 errors Sorbet was reporting errors (error code: 4010) on the auto-generated tapioca RBI files. Since sorbet-typed has a good enough RBI for json hence we can exclude json from tapioca generation using the --exclude flag.
Library/Homebrew/sorbet/rbi/hidden-definitions/errors.txt
@@ -3499,6 +3499,7 @@ # wrong constant name class_attribute<defaultArg>4 # wrong constant name class_attribute<defaultArg>5 # wrong constant name class_attribute +# wrong constant name json_creatable? # wrong constant name <Class:Duo> # wrong constant name <Class:Encoders> # wrong constant name <Class:FileType> @...
true
Other
Homebrew
brew
4b8745f32b0220214084df67d6f67b3386724de4.json
srb: resolve error 4010. 28 errors=> 25 errors Sorbet was reporting errors (error code: 4010) on the auto-generated tapioca RBI files. Since sorbet-typed has a good enough RBI for json hence we can exclude json from tapioca generation using the --exclude flag.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -5854,6 +5854,8 @@ class Class def any_instance(); end def class_attribute(*attrs, instance_accessor: T.unsafe(nil), instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_predicate: T.unsafe(nil), default: T.unsafe(nil)); end + + def json_creatable?(); end end module CodeRay @@ -10311...
true
Other
Homebrew
brew
d92f747b1e1ac9e4fdc4f839174cf36d89aab879.json
create: add license field as parsable arg
Library/Homebrew/dev-cmd/create.rb
@@ -45,8 +45,11 @@ def create_args description: "Explicitly set the <name> of the new formula." flag "--set-version=", description: "Explicitly set the <version> of the new formula." + flag "--set-license=", + description: "Explicitly set the <license> of the new ...
true
Other
Homebrew
brew
d92f747b1e1ac9e4fdc4f839174cf36d89aab879.json
create: add license field as parsable arg
Library/Homebrew/formula_creator.rb
@@ -5,8 +5,8 @@ module Homebrew class FormulaCreator - attr_reader :url, :sha256, :desc, :homepage, :license - attr_accessor :name, :version, :tap, :path, :mode + attr_reader :url, :sha256, :desc, :homepage + attr_accessor :name, :version, :tap, :path, :mode, :license def url=(url) @url ...
true
Other
Homebrew
brew
b5584fc03516189befad312aead01c2c3dc002eb.json
update: Update the symbolic ref origin/HEAD
Library/Homebrew/cmd/update-reset.sh
@@ -38,6 +38,7 @@ homebrew-update-reset() { cd "$DIR" || continue ohai "Fetching $DIR..." git fetch --force --tags origin + git remote set-head origin --auto >/dev/null echo ohai "Resetting $DIR..."
true
Other
Homebrew
brew
b5584fc03516189befad312aead01c2c3dc002eb.json
update: Update the symbolic ref origin/HEAD
Library/Homebrew/cmd/update.sh
@@ -38,6 +38,7 @@ git_init_if_necessary() { git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" latest_tag="$(git ls-remote --tags --refs -q origin | tail -n1 | cut -f2)" git fetch --force origin --shallow-since="$latest_tag" + git remote set-head origin --auto >/dev/null git res...
true
Other
Homebrew
brew
ba824d9488de3ad4e8efd58478f3ba3d9aaf1684.json
audit: remove spdx-id as a attr_reader attribute
Library/Homebrew/dev-cmd/audit.rb
@@ -206,7 +206,7 @@ def reverse_line_number(regex) class FormulaAuditor include FormulaCellarChecks - attr_reader :formula, :text, :problems, :new_formula_problems, :spdx_ids + attr_reader :formula, :text, :problems, :new_formula_problems def initialize(formula, options = {}) @formula = fo...
false
Other
Homebrew
brew
ff1016b72997c3f6f33d39d48b335c08c734df24.json
Modify code to load spdx data once
Library/Homebrew/dev-cmd/audit.rb
@@ -110,7 +110,9 @@ def audit # Check style in a single batch run up front for performance style_results = Style.check_style_json(style_files, options) if style_files - + # load licenses + path = File.join(File.dirname(__FILE__),"spdx.json") + spdx_ids = JSON.load( File.open(File.expand_path(path))...
false
Other
Homebrew
brew
73d2c986893139e4a479d4c12e7eeab70c541a97.json
Gemfile: add tapioca gem
.gitignore
@@ -130,6 +130,7 @@ **/vendor/bundle/ruby/*/gems/simplecov-html-*/ **/vendor/bundle/ruby/*/gems/sorbet-*/ **/vendor/bundle/ruby/*/gems/sorbet-runtime-*/ +**/vendor/bundle/ruby/*/gems/tapioca-*/ **/vendor/bundle/ruby/*/gems/term-ansicolor-*/ **/vendor/bundle/ruby/*/gems/thor-*/ **/vendor/bundle/ruby/*/gems/tins-*/
true
Other
Homebrew
brew
73d2c986893139e4a479d4c12e7eeab70c541a97.json
Gemfile: add tapioca gem
Library/Homebrew/Gemfile
@@ -16,6 +16,7 @@ gem "simplecov", require: false if ENV["HOMEBREW_SORBET"] gem "sorbet" gem "sorbet-runtime" + gem "tapioca" end # vendored gems
true
Other
Homebrew
brew
f94a38e4b1c0276557a2e2807554bd729ded6864.json
tap-new: restrict new tap names. Don't want to restrict this for all taps otherwise existing ones may explode. Fixes #7734
Library/Homebrew/dev-cmd/tap-new.rb
@@ -22,7 +22,10 @@ def tap_new_args def tap_new tap_new_args.parse + tap_name = args.named.first tap = Tap.fetch(args.named.first) + raise "Invalid tap name '#{tap_name}'" unless tap.path.to_s.match?(HOMEBREW_TAP_PATH_REGEX) + titleized_user = tap.user.dup titleized_repo = tap.repo.dup ...
true
Other
Homebrew
brew
f94a38e4b1c0276557a2e2807554bd729ded6864.json
tap-new: restrict new tap names. Don't want to restrict this for all taps otherwise existing ones may explode. Fixes #7734
Library/Homebrew/tap.rb
@@ -34,10 +34,7 @@ def self.fetch(*args) return CoreTap.instance if ["Homebrew", "Linuxbrew"].include?(user) && ["core", "homebrew"].include?(repo) cache_key = "#{user}/#{repo}".downcase - tap = cache.fetch(cache_key) { |key| cache[key] = Tap.new(user, repo) } - raise "Invalid tap name '#{args.join("/...
true
Other
Homebrew
brew
0495b533264ae1a566790180a7a1333e85f3186d.json
add files.yaml to override typed sigil
Library/Homebrew/sorbet/files.yaml
@@ -0,0 +1,937 @@ +ignore: + - ./bintray.rb + - ./bottle_publisher.rb + - ./brew.rb + - ./build.rb + - ./cask/artifact/abstract_artifact.rb + - ./cask/artifact/abstract_flight_block.rb + - ./cask/artifact/abstract_uninstall.rb + - ./cask/artifact/app.rb + - ./cask/artifact/artifact.rb + - ./cask/artifact/audi...
false
Other
Homebrew
brew
2427e063402d3196c7ffd3515013ab5419458cd8.json
docs: restore h1 headings for pages with front matter Plus other fixes for Homebrew-on-Linux.md. GitHub Pages' jekyll-titles-from-headings sets a page's title to its first Markdown heading.
docs/Brew-Test-Bot.md
@@ -1,8 +1,10 @@ --- -title: Brew Test Bot logo: https://brew.sh/assets/img/brewtestbot.png image: https://brew.sh/assets/img/brewtestbot.png --- + +# Brew Test Bot + `brew test-bot` is the name for the automated review and testing system funded by [our Kickstarter in 2013](https://www.kickstarter.com/projects/ho...
true
Other
Homebrew
brew
2427e063402d3196c7ffd3515013ab5419458cd8.json
docs: restore h1 headings for pages with front matter Plus other fixes for Homebrew-on-Linux.md. GitHub Pages' jekyll-titles-from-headings sets a page's title to its first Markdown heading.
docs/Homebrew-on-Linux.md
@@ -1,15 +1,17 @@ --- -title: Homebrew on Linux logo: https://brew.sh/assets/img/linuxbrew.png image: https://brew.sh/assets/img/linuxbrew.png redirect_from: - /linux - /Linux - /Linuxbrew --- + +# Homebrew on Linux + The Homebrew package manager may be used on Linux and [Windows Subsystem for Linux (WSL...
true
Other
Homebrew
brew
4a24908fe4e54c8a3c44a44d8190ccf6e0d2cd23.json
cask: codify the token rules
Library/Homebrew/cask/audit.rb
@@ -38,6 +38,8 @@ def run! check_sha256 check_url check_generic_artifacts + check_token_valid + check_token_bad_words check_token_conflicts check_download check_https_availability @@ -282,6 +284,56 @@ def check_token_conflicts add_warning "possible duplicate, c...
true
Other
Homebrew
brew
4a24908fe4e54c8a3c44a44d8190ccf6e0d2cd23.json
cask: codify the token rules
Library/Homebrew/test/cask/audit_spec.rb
@@ -40,11 +40,13 @@ def include_msg?(messages, msg) let(:cask) { instance_double(Cask::Cask) } let(:download) { false } let(:token_conflicts) { false } + let(:strict) { false } let(:fake_system_command) { class_double(SystemCommand) } let(:audit) { described_class.new(cask, download: downloa...
true
Other
Homebrew
brew
89bd6a76ee6983768dbceb2a41c59264eb6b29fc.json
docs: clarify Formula location in Tap repositories Make clear that Formula locations cannot be mixed, they are mutually exclusive. This avoids the (false) implication that top-level Formula can override those in the Formula subdirectory. This makes no change in recommendations following the original discussion in htt...
docs/How-to-Create-and-Maintain-a-Tap.md
@@ -16,10 +16,11 @@ See the [manpage](Manpage.md) for more information on repository naming. The `brew tap-new` command can be used to create a new tap along with some template files. -Tap formulae follow the same format as the core’s ones, and can be added at the -repository’s root, or under `Formula` or `Homebrew...
false
Other
Homebrew
brew
536726799d24afb704d420f772a8f9b60150fa32.json
Gemfile: add sorbet and sorbet-runtime bundler/setup: add sorbet and sorbet-runtime
.gitignore
@@ -82,6 +82,7 @@ # Ignore dependencies we don't wish to vendor **/vendor/bundle/ruby/*/gems/ast-*/ **/vendor/bundle/ruby/*/gems/bundler-*/ +**/vendor/bundle/ruby/*/gems/byebug-*/ **/vendor/bundle/ruby/*/gems/coderay-*/ **/vendor/bundle/ruby/*/gems/connection_pool-*/ **/vendor/bundle/ruby/*/gems/coveralls-*/ @@ -...
true
Other
Homebrew
brew
536726799d24afb704d420f772a8f9b60150fa32.json
Gemfile: add sorbet and sorbet-runtime bundler/setup: add sorbet and sorbet-runtime
Library/Homebrew/Gemfile
@@ -13,6 +13,8 @@ gem "rspec-retry", require: false gem "rspec-wait", require: false gem "rubocop" gem "simplecov", require: false +gem "sorbet" +gem "sorbet-runtime" # vendored gems gem "activesupport"
true
Other
Homebrew
brew
536726799d24afb704d420f772a8f9b60150fa32.json
Gemfile: add sorbet and sorbet-runtime bundler/setup: add sorbet and sorbet-runtime
Library/Homebrew/Gemfile.lock
@@ -104,6 +104,10 @@ GEM json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) + sorbet (0.5.5742) + sorbet-static (= 0.5.5742) + sorbet-runtime (0.5.5742) + sorbet-static (0.5.5742-universal-darwin-14) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) @...
true
Other
Homebrew
brew
536726799d24afb704d420f772a8f9b60150fa32.json
Gemfile: add sorbet and sorbet-runtime bundler/setup: add sorbet and sorbet-runtime
Library/Homebrew/vendor/bundle/bundler/setup.rb
@@ -20,6 +20,8 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/docile-1.3.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-html-0.10.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-0.16.1/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/...
true
Other
Homebrew
brew
2a50ef045fdb6a56a018853f70ef0a0d36a153a7.json
on_os blocks: remove url tests This is not allowed by the style audit, and we do not want to allow different source url's depending on the os.
Library/Homebrew/test/os/linux/formula_spec.rb
@@ -33,26 +33,6 @@ end end - describe "#on_linux" do - it "defines an url on Linux only" do - f = formula do - homepage "https://brew.sh" - - on_macos do - url "https://brew.sh/test-macos-0.1.tbz" - sha256 TEST_SHA256 - end - - on_linux do - url ...
true
Other
Homebrew
brew
2a50ef045fdb6a56a018853f70ef0a0d36a153a7.json
on_os blocks: remove url tests This is not allowed by the style audit, and we do not want to allow different source url's depending on the os.
Library/Homebrew/test/os/mac/formula_spec.rb
@@ -40,26 +40,6 @@ end end - describe "#on_macos" do - it "defines an url on macos only" do - f = formula do - homepage "https://brew.sh" - - on_macos do - url "https://brew.sh/test-macos-0.1.tbz" - sha256 TEST_SHA256 - end - - on_linux do - url ...
true
Other
Homebrew
brew
1f8ebf5d20f81aea87b95710a2841134dbfa4a32.json
resource: allow on_os blocks
Library/Homebrew/extend/os/linux/resource.rb
@@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class Resource + undef on_linux + + def on_linux(&_block) + yield + end +end
true
Other
Homebrew
brew
1f8ebf5d20f81aea87b95710a2841134dbfa4a32.json
resource: allow on_os blocks
Library/Homebrew/extend/os/mac/resource.rb
@@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class Resource + undef on_macos + + def on_macos(&_block) + yield + end +end
true
Other
Homebrew
brew
1f8ebf5d20f81aea87b95710a2841134dbfa4a32.json
resource: allow on_os blocks
Library/Homebrew/extend/os/resource.rb
@@ -0,0 +1,7 @@ +# frozen_string_literal: true + +if OS.mac? + require "extend/os/mac/resource" +elsif OS.linux? + require "extend/os/linux/resource" +end
true
Other
Homebrew
brew
1f8ebf5d20f81aea87b95710a2841134dbfa4a32.json
resource: allow on_os blocks
Library/Homebrew/formula.rb
@@ -2474,13 +2474,13 @@ def uses_from_macos(dep, bounds = {}) specs.each { |spec| spec.uses_from_macos(dep, bounds) } end - # Block executed only executed on macOS. No-op on Linux. + # Block only executed on macOS. No-op on Linux. # <pre>on_macos do # depends_on "mac_only_dep" # end...
true
Other
Homebrew
brew
1f8ebf5d20f81aea87b95710a2841134dbfa4a32.json
resource: allow on_os blocks
Library/Homebrew/resource.rb
@@ -178,6 +178,18 @@ def patch(strip = :p1, src = nil, &block) patches << p end + # Block only executed on macOS. No-op on Linux. + # <pre>on_macos do + # url "mac_only_url" + # end</pre> + def on_macos(&_block); end + + # Block only executed on Linux. No-op on macOS. + # <pre>on_linux do + # url ...
true
Other
Homebrew
brew
1f8ebf5d20f81aea87b95710a2841134dbfa4a32.json
resource: allow on_os blocks
Library/Homebrew/test/os/linux/formula_spec.rb
@@ -110,4 +110,23 @@ expect(f.patchlist.second.url).to eq("patch_linux") end end + + describe "#on_linux" do + it "uses on_linux within a resource block" do + f = formula do + homepage "https://brew.sh" + + url "https://brew.sh/test-0.1.tbz" + sha256 TEST_SHA256 + + r...
true
Other
Homebrew
brew
1f8ebf5d20f81aea87b95710a2841134dbfa4a32.json
resource: allow on_os blocks
Library/Homebrew/test/os/mac/formula_spec.rb
@@ -117,4 +117,23 @@ expect(f.patchlist.second.url).to eq("patch_macos") end end + + describe "#on_macos" do + it "uses on_macos within a resource block" do + f = formula do + homepage "https://brew.sh" + + url "https://brew.sh/test-0.1.tbz" + sha256 TEST_SHA256 + + r...
true
Other
Homebrew
brew
b07685291b65e51e0afc2b6cee91251419e0b3c1.json
Add license to formula DSL
Library/Homebrew/formula.rb
@@ -351,6 +351,9 @@ def bottle # @see .desc= delegate desc: :"self.class" + # The SPDX ID of the software license. + delegate license: :"self.class" + # The homepage for the software. # @method homepage # @see .homepage= @@ -1678,6 +1681,7 @@ def to_hash "aliases" => aliases.s...
false
Other
Homebrew
brew
bbb269674270b145614780dbaa2258f6c770ff65.json
language/java: add support for OpenJDK formula
Library/Homebrew/extend/os/mac/language/java.rb
@@ -4,17 +4,25 @@ module Language module Java def self.system_java_home_cmd(version = nil) version_flag = " --version #{version}" if version - "/usr/libexec/java_home#{version_flag}" + "/usr/libexec/java_home#{version_flag} --failfast 2>/dev/null" end private_class_method :system_java...
true
Other
Homebrew
brew
bbb269674270b145614780dbaa2258f6c770ff65.json
language/java: add support for OpenJDK formula
Library/Homebrew/language/java.rb
@@ -2,7 +2,31 @@ module Language module Java + def self.find_openjdk_formula(version = nil) + can_be_newer = version&.end_with?("+") + version = version.to_i + + openjdk = Formula["openjdk"] + [openjdk, *openjdk.versioned_formulae].find do |f| + next false unless f.any_version_instal...
true
Other
Homebrew
brew
a793bc500cf5f4c00fb37e15688b7dc6ade1e1a3.json
Fix failing appcast check.
Library/Homebrew/cask/audit.rb
@@ -310,10 +310,16 @@ def check_appcast_contains_version return if cask.appcast.must_contain == :no_check appcast_stanza = cask.appcast.to_s - appcast_contents, = curl_output("--compressed", "--user-agent", HOMEBREW_USER_AGENT_FAKE_SAFARI, "--location", - "--glo...
false
Other
Homebrew
brew
87931e1c038ebc79c6688d926adb5ea9a303f62b.json
utils/ruby.sh: set TERMINFO_DIRS to bundled terminfo
Library/Homebrew/utils/ruby.sh
@@ -23,9 +23,11 @@ If there's no Homebrew Portable Ruby available for your processor: " vendor_dir="$HOMEBREW_LIBRARY/Homebrew/vendor" - vendor_ruby_path="$vendor_dir/portable-ruby/current/bin/ruby" + vendor_ruby_root="$vendor_dir/portable-ruby/current" + vendor_ruby_path="$vendor_ruby_root/bin/ruby" + vendor...
false
Other
Homebrew
brew
ee9c335b513cb49a9e853d2f5ff316e2933bc8bd.json
pr-pull: preserve trailers when signing off commit
Library/Homebrew/dev-cmd/pr-pull.rb
@@ -70,12 +70,22 @@ def setup_git_environment! def signoff!(pr, path: ".") message = Utils.popen_read "git", "-C", path, "log", "-1", "--pretty=%B" + subject = message.lines.first.strip + + # Skip the subject and separate lines that look like trailers (e.g. "Co-authored-by") + # from lines that look ...
false
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/exceptions.rb
@@ -612,3 +612,12 @@ def initialize(inner) set_backtrace inner["b"] end end + +class MacOSVersionError < RuntimeError + attr_reader :version + + def initialize(version) + @version = version + super "unknown or unsupported macOS version: #{version.inspect}" + end +end
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/extend/os/mac/formula_cellar_checks.rb
@@ -10,10 +10,6 @@ def check_shadowed_headers end return if formula.name&.match?(Version.formula_optionally_versioned_regex(:php)) - - return if MacOS.version < :mavericks && formula.name.start_with?("postgresql") - return if MacOS.version < :yosemite && formula.name.start_with?("memcached") - r...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/extend/os/mac/utils/bottles.rb
@@ -30,13 +30,13 @@ def find_matching_tag(tag) def find_older_compatible_tag(tag) tag_version = begin MacOS::Version.from_symbol(tag) - rescue ArgumentError + rescue MacOSVersionError return end keys.find do |key| MacOS::Version.from_sym...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/formula.rb
@@ -2327,9 +2327,9 @@ def mirror(val) # prefix "/opt/homebrew" # Optional HOMEBREW_PREFIX in which the bottles were built. # cellar "/opt/homebrew/Cellar" # Optional HOMEBREW_CELLAR in which the bottles were built. # rebuild 1 # Making the old bottle outdated without bumping the version/revision of...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/os/mac/version.rb
@@ -12,13 +12,10 @@ class Version < ::Version sierra: "10.12", el_capitan: "10.11", yosemite: "10.10", - mavericks: "10.9", }.freeze def self.from_symbol(sym) - str = SYMBOLS.fetch(sym) do - raise ArgumentError, "unknown version #{sym.inspect}...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/os/mac/xcode.rb
@@ -287,13 +287,7 @@ def outdated? end def detect_clang_version - path = if MacOS.version >= :mavericks - "#{PKG_PATH}/usr/bin/clang" - else - "/usr/bin/clang" - end - - version_output = Utils.popen_read("#{path} --version") + version_output = Utils.p...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/requirements/macos_requirement.rb
@@ -8,10 +8,16 @@ class MacOSRequirement < Requirement attr_reader :comparator, :version def initialize(tags = [], comparator: ">=") - if comparator == "==" && tags.first.respond_to?(:map) - @version = tags.shift.map { |s| MacOS::Version.from_symbol(s) } - else - @version = MacOS::Version.from_s...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/software_spec.rb
@@ -386,7 +386,7 @@ def checksums # Sort non-MacOS tags below MacOS tags. OS::Mac::Version.from_symbol tag - rescue ArgumentError + rescue MacOSVersionError "0.#{tag}" end checksums = {}
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/os/mac/software_spec_spec.rb
@@ -46,7 +46,7 @@ it "raises an error if passing invalid OS versions" do expect { spec.uses_from_macos("foo", since: :bar) - }.to raise_error(ArgumentError, "unknown version :bar") + }.to raise_error(MacOSVersionError, "unknown or unsupported macOS version: :bar") end end end
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/os/mac/version_spec.rb
@@ -4,13 +4,13 @@ require "os/mac/version" describe OS::Mac::Version do - subject { described_class.new("10.10") } + subject { described_class.new("10.14") } specify "comparison with Symbol" do - expect(subject).to be > :mavericks - expect(subject).to be == :yosemite - expect(subject).to be === :yos...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/requirements/macos_requirement_spec.rb
@@ -16,8 +16,8 @@ end it "supports maximum versions", :needs_macos do - requirement = described_class.new([:mavericks], comparator: "<=") - expect(requirement.satisfied?).to eq MacOS.version <= :mavericks + requirement = described_class.new([:catalina], comparator: "<=") + expect(require...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/support/fixtures/cask/Casks/invalid/invalid-depends-on-macos-conflicting-forms.rb
@@ -1,12 +1,14 @@ -cask 'invalid-depends-on-macos-conflicting-forms' do - version '1.2.3' - sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94' +# frozen_string_literal: true + +cask "invalid-depends-on-macos-conflicting-forms" do + version "1.2.3" + sha256 "67cdb8a02803ef37fdbf7e0be205863172e...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/support/fixtures/cask/Casks/with-depends-on-macos-array.rb
@@ -1,12 +1,14 @@ -cask 'with-depends-on-macos-array' do - version '1.2.3' - sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94' +# frozen_string_literal: true + +cask "with-depends-on-macos-array" do + version "1.2.3" + sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/support/fixtures/cask/Casks/with-depends-on-macos-comparison.rb
@@ -1,11 +1,13 @@ -cask 'with-depends-on-macos-comparison' do - version '1.2.3' - sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94' +# frozen_string_literal: true + +cask "with-depends-on-macos-comparison" do + version "1.2.3" + sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7a...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/support/fixtures/cask/Casks/with-depends-on-macos-failure.rb
@@ -6,7 +6,7 @@ homepage 'https://brew.sh/with-depends-on-macos-failure' # guarantee a mismatched release - depends_on macos: MacOS.version == :mavericks ? :sierra : :mavericks + depends_on macos: MacOS.version == :catalina ? :mojave : :catalina app 'Caffeine.app' end
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/utils/bottles/bottles_spec.rb
@@ -4,9 +4,9 @@ describe Utils::Bottles do describe "#tag", :needs_macos do - it "returns :mavericks on Mavericks" do - allow(MacOS).to receive(:version).and_return(MacOS::Version.new("10.9")) - expect(described_class.tag).to eq(:mavericks) + it "returns :catalina on Catalina" do + allow(MacO...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
Library/Homebrew/test/utils/bottles/collector_spec.rb
@@ -5,41 +5,41 @@ describe Utils::Bottles::Collector do describe "#fetch_checksum_for" do it "returns passed tags" do - subject[:yosemite] = "foo" - subject[:el_captain] = "bar" - expect(subject.fetch_checksum_for(:el_captain)).to eq(["bar", :el_captain]) + subject[:mojave] = "foo" + s...
true
Other
Homebrew
brew
b58fa4ebb1e6b918d8556cba629cb55b79d423f5.json
Drop Mavericks support. Companion to https://github.com/Homebrew/brew/pull/7698. Provide better, `odeprecated` messaging for `depends_on :macos => :mavericks` and otherwise just fix up the code that relied on `:mavericks`.
docs/Formula-Cookbook.md
@@ -11,7 +11,7 @@ A *formula* is a package definition written in Ruby. It can be created with `bre | **opt prefix** | A symlink to the active version of a **Keg** | `/usr/local/opt/foo ` | | **Cellar** | All **Kegs** are installed here ...
true
Other
Homebrew
brew
1eefc4c5846a7035e7ab42435a86db12c7871a02.json
Adjust documentation for `devel` deprecation. Update the documentation to be consistent with #7688.
Library/Homebrew/formula.rb
@@ -2383,6 +2383,7 @@ def stable(&block) # depends_on "cairo" # depends_on "pixman" # end</pre> + # @private def devel(&block) @devel ||= SoftwareSpec.new return @devel unless block_given? @@ -2415,7 +2416,7 @@ def head(val = nil, specs = {}, &block) end # Additional...
true
Other
Homebrew
brew
1eefc4c5846a7035e7ab42435a86db12c7871a02.json
Adjust documentation for `devel` deprecation. Update the documentation to be consistent with #7688.
docs/Formula-Cookbook.md
@@ -476,7 +476,7 @@ patch :p0 do end ``` -[`patch`](https://rubydoc.brew.sh/Formula#patch-class_method)es can be declared in [`stable`](https://rubydoc.brew.sh/Formula#stable-class_method), [`devel`](https://rubydoc.brew.sh/Formula#devel-class_method), and [`head`](https://rubydoc.brew.sh/Formula#head-class_method)...
true
Other
Homebrew
brew
1eefc4c5846a7035e7ab42435a86db12c7871a02.json
Adjust documentation for `devel` deprecation. Update the documentation to be consistent with #7688.
docs/How-To-Open-a-Homebrew-Pull-Request.md
@@ -63,7 +63,7 @@ To make a new branch and submit it for review, create a GitHub pull request with brew audit --strict <CHANGED_FORMULA> ``` 6. [Make a separate commit](Formula-Cookbook.md#commit) for each changed formula with `git add` and `git commit`. - * Please note that our preferred commit message for...
true
Other
Homebrew
brew
0dd004f53d8c513b9b0f5fffcbf07e82bfb567fe.json
dev-cmd/audit: handle nil newest_committed_revision. Fixes #7712.
Library/Homebrew/dev-cmd/audit.rb
@@ -786,7 +786,8 @@ def audit_revision_and_version_scheme !previous_revision.nil? && current_revision < previous_revision problem "revision should not decrease (from #{previous_revision} to #{current_revision})" - elsif current_revision > (newest_committed_revision + 1) + el...
false
Other
Homebrew
brew
2a94d382ac03a1766a2de5edde536a4a5ce4585f.json
audit: make audit_revision_and_version_scheme faster. This is really, really slow at the moment for a few reasons: - it goes through the list of revisions twice - it checks many more revisions than it needs to Even after these improvements it's still by far the slowest audit so am also making it a `--git` only audit....
Library/Homebrew/dev-cmd/audit.rb
@@ -23,11 +23,13 @@ def audit_args Check <formula> for Homebrew coding style violations. This should be run before submitting a new formula. If no <formula> are provided, check all locally - available formulae. Will exit with a non-zero status if any errors are - found, which can be us...
true
Other
Homebrew
brew
2a94d382ac03a1766a2de5edde536a4a5ce4585f.json
audit: make audit_revision_and_version_scheme faster. This is really, really slow at the moment for a few reasons: - it goes through the list of revisions twice - it checks many more revisions than it needs to Even after these improvements it's still by far the slowest audit so am also making it a `--git` only audit....
Library/Homebrew/formula_versions.rb
@@ -65,66 +65,4 @@ def bottle_version_map(branch) end map end - - def previous_version_and_checksum(branch) - map = {} - - rev_list(branch) do |rev| - formula_at_revision(rev) do |f| - [:stable, :devel].each do |spec_sym| - next unless spec = f.send(spec_sym) - - map[sp...
true
Other
Homebrew
brew
2a94d382ac03a1766a2de5edde536a4a5ce4585f.json
audit: make audit_revision_and_version_scheme faster. This is really, really slow at the moment for a few reasons: - it goes through the list of revisions twice - it checks many more revisions than it needs to Even after these improvements it's still by far the slowest audit so am also making it a `--git` only audit....
Library/Homebrew/test/dev-cmd/audit_spec.rb
@@ -302,7 +302,7 @@ class Foo < Formula describe "#audit_revision_and_version_scheme" do subject { - fa = described_class.new(Formulary.factory(formula_path)) + fa = described_class.new(Formulary.factory(formula_path), git: true) fa.audit_revision_and_version_scheme fa.prob...
true
Other
Homebrew
brew
2a94d382ac03a1766a2de5edde536a4a5ce4585f.json
audit: make audit_revision_and_version_scheme faster. This is really, really slow at the moment for a few reasons: - it goes through the list of revisions twice - it checks many more revisions than it needs to Even after these improvements it's still by far the slowest audit so am also making it a `--git` only audit....
docs/Manpage.md
@@ -634,11 +634,13 @@ Homebrew/homebrew-cask (if tapped) to standard output. Check *`formula`* for Homebrew coding style violations. This should be run before submitting a new formula. If no *`formula`* are provided, check all locally -available formulae. Will exit with a non-zero status if any errors are found, -w...
true
Other
Homebrew
brew
2a94d382ac03a1766a2de5edde536a4a5ce4585f.json
audit: make audit_revision_and_version_scheme faster. This is really, really slow at the moment for a few reasons: - it goes through the list of revisions twice - it checks many more revisions than it needs to Even after these improvements it's still by far the slowest audit so am also making it a `--git` only audit....
manpages/brew.1
@@ -801,13 +801,17 @@ Print the version numbers of Homebrew, Homebrew/homebrew\-core and Homebrew/home .SH "DEVELOPER COMMANDS" . .SS "\fBaudit\fR [\fIoptions\fR] [\fIformula\fR]" -Check \fIformula\fR for Homebrew coding style violations\. This should be run before submitting a new formula\. If no \fIformula\fR are ...
true
Other
Homebrew
brew
16f304c3e01203005b72338ba81aff585dd73e75.json
workflows/doctor: add macOS `brew doctor` CI. When we change any of the files related to `brew doctor` or Xcode versions ensure that we test them on the macOS self-hosted workers so we don't merge changes here that break `brew doctor` there.
.github/workflows/doctor.yml
@@ -0,0 +1,50 @@ +name: brew doctor +on: + pull_request: + paths: + - .github/workflows/doctor.yml + - Library/Homebrew/cmd/doctor.rb + - Library/Homebrew/diagnostic.rb + - Library/Homebrew/extend/os/diagnostic.rb + - Library/Homebrew/extend/os/mac/diagnostic.rb + - Library/Homebrew/os...
false
Other
Homebrew
brew
0041ea21f57c8abf4a543d8645ec25e1704542a6.json
Change occurrences of "whitelist" to "allowlist"
Library/Homebrew/.rubocop.yml
@@ -74,7 +74,7 @@ Naming/PredicateName: # can't rename these AllowedMethods: is_32_bit?, is_64_bit? -# whitelist those that are standard +# allow those that are standard # TODO: try to remove some of these Naming/MethodParameterName: AllowedNames:
true
Other
Homebrew
brew
0041ea21f57c8abf4a543d8645ec25e1704542a6.json
Change occurrences of "whitelist" to "allowlist"
Library/Homebrew/dev-cmd/audit.rb
@@ -327,7 +327,7 @@ def audit_formula_name problem "Formula name conflicts with existing core formula." end - USES_FROM_MACOS_WHITELIST = %w[ + USES_FROM_MACOS_ALLOWLIST = %w[ apr apr-util openblas @@ -369,7 +369,7 @@ def audit_deps dep_f.keg_only? && ...
true
Other
Homebrew
brew
0041ea21f57c8abf4a543d8645ec25e1704542a6.json
Change occurrences of "whitelist" to "allowlist"
Library/Homebrew/diagnostic.rb
@@ -171,11 +171,11 @@ def check_for_anaconda EOS end - def __check_stray_files(dir, pattern, white_list, message) + def __check_stray_files(dir, pattern, allow_list, message) return unless File.directory?(dir) files = Dir.chdir(dir) do - (Dir.glob(pattern) - Dir....
true
Other
Homebrew
brew
0041ea21f57c8abf4a543d8645ec25e1704542a6.json
Change occurrences of "whitelist" to "allowlist"
Library/Homebrew/download_strategy.rb
@@ -603,7 +603,7 @@ def clone_repo end class GitDownloadStrategy < VCSDownloadStrategy - SHALLOW_CLONE_WHITELIST = [ + SHALLOW_CLONE_ALLOWLIST = [ %r{git://}, %r{https://github\.com}, %r{http://git\.sv\.gnu\.org}, @@ -654,7 +654,7 @@ def shallow_dir? end def support_depth? - @ref_type !=...
true
Other
Homebrew
brew
0041ea21f57c8abf4a543d8645ec25e1704542a6.json
Change occurrences of "whitelist" to "allowlist"
Library/Homebrew/extend/os/linux/linkage_checker.rb
@@ -2,7 +2,7 @@ class LinkageChecker # Libraries provided by glibc and gcc. - SYSTEM_LIBRARY_WHITELIST = %w[ + SYSTEM_LIBRARY_ALLOWLIST = %w[ ld-linux-x86-64.so.2 libanl.so.1 libc.so.6 @@ -28,7 +28,7 @@ def check_dylibs(rebuild_cache:) # glibc and gcc are implicit dependencies. # No oth...
true