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
e74e265e1da8a588895a8dfed4c685547b1b85ce.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -27089,6 +27089,11 @@ class RuboCop::Cop::FormulaCop def required_dependency_name?(param0, param1); end end +class RuboCop::Cop::Style::UnlessMultipleConditions + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + module RuboCop::RSpec::ExpectOffense def...
false
Other
Homebrew
brew
1d576d2754999c6ca0b14ee096eeecc99374d8c8.json
shims/super/cc: fix most style errors
Library/Homebrew/shims/super/cc
@@ -30,19 +30,19 @@ class Cmd def initialize(arg0, args) @arg0 = arg0 @args = args.freeze - @config = ENV.fetch("HOMEBREW_CCCFG") { "" } + @config = ENV.fetch("HOMEBREW_CCCFG", "") @prefix = ENV["HOMEBREW_PREFIX"] @cellar = ENV["HOMEBREW_CELLAR"] @cachedir = ENV["HOMEBREW_CACHE"] ...
false
Other
Homebrew
brew
17c25980f97e6f8176a5fa05ff7d4a207a7a09de.json
Governance: Accept suggestions of Rylan Change "majority vote" to "ordinary resolution". Change "Project Leadership Committee" to "PLC". Add "with compromise".
docs/Homebrew-Governance.md
@@ -10,13 +10,13 @@ ## 2. Members -1. New members will be admitted by majority vote of the Project Leadership Committee (PLC) and added to the Homebrew organisation on GitHub. +1. New members will be admitted by an ordinary resolution of the PLC and added to the Homebrew organisation on GitHub. 2. Members may v...
false
Other
Homebrew
brew
74787ca0eeb3a1d4c19420dced32c9f5965175b0.json
docs: update shell completions instructions
docs/Shell-Completion.md
@@ -4,7 +4,9 @@ Homebrew comes with completion definitions for the `brew` command. Some packages `zsh`, `bash` and `fish` are currently supported. -You must configure your shell to enable its completion support. This is because the Homebrew-managed completions are stored under `HOMEBREW_PREFIX` which your system s...
false
Other
Homebrew
brew
234267cc937dbd59ef1219537f5bd07e24ef4c7f.json
completions: make opt-in only
Library/Homebrew/cmd/completions.rb
@@ -0,0 +1,52 @@ +# typed: true +# frozen_string_literal: true + +require "cli/parser" +require "completions" + +module Homebrew + extend T::Sig + + module_function + + sig { returns(CLI::Parser) } + def completions_args + Homebrew::CLI::Parser.new do + usage_banner <<~EOS + `completions` [<subcomman...
true
Other
Homebrew
brew
234267cc937dbd59ef1219537f5bd07e24ef4c7f.json
completions: make opt-in only
Library/Homebrew/cmd/update-report.rb
@@ -8,6 +8,7 @@ require "cleanup" require "description_cache_store" require "cli/parser" +require "completions" module Homebrew extend T::Sig @@ -150,6 +151,15 @@ def update_report puts "Already up-to-date." unless args.quiet? end + if Completions.read_completions_option.empty? + ohai "Ho...
true
Other
Homebrew
brew
234267cc937dbd59ef1219537f5bd07e24ef4c7f.json
completions: make opt-in only
Library/Homebrew/completions.rb
@@ -0,0 +1,53 @@ +# typed: true +# frozen_string_literal: true + +require "utils/link" + +# Helper functions for generating shell completions. +# +# @api private +module Completions + extend T::Sig + + module_function + + sig { params(command: String).void } + def link_if_allowed!(command: "brew completions link") ...
true
Other
Homebrew
brew
234267cc937dbd59ef1219537f5bd07e24ef4c7f.json
completions: make opt-in only
Library/Homebrew/utils/link.rb
@@ -1,6 +1,8 @@ # typed: true # frozen_string_literal: true +require "completions" + module Utils # Helper functions for creating symlinks. # @@ -64,6 +66,11 @@ def unlink_manpages(path) end def link_completions(path, command) + unless Completions.link_completions? + unlink_completion...
true
Other
Homebrew
brew
234267cc937dbd59ef1219537f5bd07e24ef4c7f.json
completions: make opt-in only
completions/internal_commands_list.txt
@@ -25,6 +25,7 @@ cat cleanup command commands +completions config configure create
true
Other
Homebrew
brew
234267cc937dbd59ef1219537f5bd07e24ef4c7f.json
completions: make opt-in only
docs/Manpage.md
@@ -94,6 +94,17 @@ Show lists of built-in and external commands. * `--include-aliases`: Include aliases of internal commands. +### `completions` [*`subcommand`*] + +Control whether Homebrew automatically links shell files. +Read more at <https://docs.brew.sh/Shell-Completion>. + +`brew completions` [`state`] +<b...
true
Other
Homebrew
brew
234267cc937dbd59ef1219537f5bd07e24ef4c7f.json
completions: make opt-in only
manpages/brew.1
@@ -93,6 +93,17 @@ List only the names of commands without category headers\. \fB\-\-include\-aliases\fR Include aliases of internal commands\. . +.SS "\fBcompletions\fR [\fIsubcommand\fR]" +Control whether Homebrew automatically links shell files\. Read more at \fIhttps://docs\.brew\.sh/Shell\-Completion\fR\. +. +....
true
Other
Homebrew
brew
6472936f25192148bc8be232517bec2d2e124301.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.8.0.rbi
@@ -174,6 +174,7 @@ end class RuboCop::CommentConfig def initialize(processed_source); end + def comment_only_line?(line_number); end def cop_disabled_line_ranges; end def cop_enabled_at_line?(cop, line_number); end def extra_enabled_comments; end @@ -187,7 +188,6 @@ class RuboCop::CommentConfig def ...
true
Other
Homebrew
brew
6472936f25192148bc8be232517bec2d2e124301.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi
@@ -1,13 +1,18 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `unicode-display_width` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync`. # typed: true module Unicode end -mo...
true
Other
Homebrew
brew
6472936f25192148bc8be232517bec2d2e124301.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -26570,7 +26570,6 @@ end class Resource include ::FileUtils::StreamUtils_ - def sha256(val); end end class Resource::Partial @@ -30075,6 +30074,11 @@ module Utils::Svn extend ::T::Private::Methods::SingletonMethodHooks end +module Utils + extend ::T::Private::Methods::MethodHooks + extend ::T::Pri...
true
Other
Homebrew
brew
cb5bf64f117ea3c5f1b7ce6902973bca7dfa9216.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/gems/nokogiri@1.11.1.rbi
@@ -596,6 +596,12 @@ Nokogiri::PRECOMPILED_LIBRARIES = T.let(T.unsafe(nil), TrueClass) class Nokogiri::SyntaxError < ::StandardError end +module Nokogiri::Test + class << self + def __foreign_error_handler; end + end +end + Nokogiri::VERSION = T.let(T.unsafe(nil), String) Nokogiri::VERSION_INFO = T.let(T.u...
true
Other
Homebrew
brew
cb5bf64f117ea3c5f1b7ce6902973bca7dfa9216.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13124,6 +13124,7 @@ class Object CROSS_COMPILING = ::T.let(nil, ::T.untyped) DEPRECATED_OFFICIAL_TAPS = ::T.let(nil, ::T.untyped) ENV = ::T.let(nil, ::T.untyped) + FORMULA_COMPONENT_PRECEDENCE_LIST = ::T.let(nil, ::T.untyped) HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ::T.let(nil, ::T.untyped) HOMEBREW_BREW_D...
true
Other
Homebrew
brew
1810a1d6876689357d6dfb431da48976c49ecc51.json
Update RBI files for rubocop-ast.
Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.4.0.rbi
@@ -617,6 +617,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node def ivasgn_type?; end def keyword?; end def kwarg_type?; end + def kwargs_type?; end def kwbegin_type?; end def kwnilarg_type?; end def kwoptarg_type?; end @@ -639,6 +640,8 @@ class RuboCop::AST::Node < ::Parser::AST::Node def matc...
true
Other
Homebrew
brew
1810a1d6876689357d6dfb431da48976c49ecc51.json
Update RBI files for rubocop-ast.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13124,6 +13124,7 @@ class Object CROSS_COMPILING = ::T.let(nil, ::T.untyped) DEPRECATED_OFFICIAL_TAPS = ::T.let(nil, ::T.untyped) ENV = ::T.let(nil, ::T.untyped) + FORMULA_COMPONENT_PRECEDENCE_LIST = ::T.let(nil, ::T.untyped) HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ::T.let(nil, ::T.untyped) HOMEBREW_BREW_D...
true
Other
Homebrew
brew
4886b3b13845c8c76ebefd1a586a367961eab427.json
github: check token scopes even if authorized
Library/Homebrew/utils/github.rb
@@ -141,9 +141,8 @@ def api_credentials_type def api_credentials_error_message(response_headers, needed_scopes) return if response_headers.empty? - unauthorized = (response_headers["http/1.1"] == "401 Unauthorized") scopes = response_headers["x-accepted-oauth-scopes"].to_s.split(", ") - return unle...
false
Other
Homebrew
brew
d2fe763ec37f147e00364b1e4a46ef60af554041.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13124,6 +13124,7 @@ class Object CROSS_COMPILING = ::T.let(nil, ::T.untyped) DEPRECATED_OFFICIAL_TAPS = ::T.let(nil, ::T.untyped) ENV = ::T.let(nil, ::T.untyped) + FORMULA_COMPONENT_PRECEDENCE_LIST = ::T.let(nil, ::T.untyped) HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ::T.let(nil, ::T.untyped) HOMEBREW_BREW_D...
false
Other
Homebrew
brew
02c207a9ec6ccec1899cf8428a05bb2682235f90.json
git_repository: replace compound `unless` with equivalent `if`
Library/Homebrew/extend/git_repository.rb
@@ -18,56 +18,56 @@ def git? # Gets the URL of the Git origin remote. sig { returns(T.nilable(String)) } def git_origin - return unless git? && Utils::Git.available? + return if !git? || !Utils::Git.available? Utils.popen_read("git", "config", "--get", "remote.origin.url", chdir: self).chomp.prese...
true
Other
Homebrew
brew
02c207a9ec6ccec1899cf8428a05bb2682235f90.json
git_repository: replace compound `unless` with equivalent `if`
Library/Homebrew/tap.rb
@@ -172,7 +172,7 @@ def git_head def git_short_head raise TapUnavailableError, name unless installed? - path.git_short_head + path.git_short_head(length: 4) end # Time since last git commit for this {Tap}.
true
Other
Homebrew
brew
1395259ad67c29c353ad0528bdc297d1bb2d39ab.json
bump-*-pr: check existing PRs for exact file match
Library/Homebrew/dev-cmd/bump-cask-pr.rb
@@ -200,13 +200,10 @@ def fetch_resource(cask, new_version, url, **specs) end def check_open_pull_requests(cask, tap_full_name, args:) - GitHub.check_for_duplicate_pull_requests(cask.token, tap_full_name, state: "open", args: args) - end - - def check_closed_pull_requests(cask, tap_full_name, version:, arg...
true
Other
Homebrew
brew
1395259ad67c29c353ad0528bdc297d1bb2d39ab.json
bump-*-pr: check existing PRs for exact file match
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -460,7 +460,10 @@ def formula_version(formula, spec, contents = nil) end def check_open_pull_requests(formula, tap_full_name, args:) - GitHub.check_for_duplicate_pull_requests(formula.name, tap_full_name, state: "open", args: args) + GitHub.check_for_duplicate_pull_requests(formula.name, tap_full_name,...
true
Other
Homebrew
brew
1395259ad67c29c353ad0528bdc297d1bb2d39ab.json
bump-*-pr: check existing PRs for exact file match
Library/Homebrew/utils/github.rb
@@ -628,8 +628,12 @@ def fetch_pull_requests(query, tap_full_name, state: nil) [] end - def check_for_duplicate_pull_requests(query, tap_full_name, state:, args:) + def check_for_duplicate_pull_requests(query, tap_full_name, state:, file:, args:) pull_requests = fetch_pull_requests(query, tap_full_name...
true
Other
Homebrew
brew
014985fc5cc311587501a327183e5dd79ae38818.json
Update RBI files for sorbet.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -532,14 +532,6 @@ class ActiveSupport::CurrentAttributes def _reset_callbacks(); end def _run_reset_callbacks(&block); end - - def attributes(); end - - def attributes=(attributes); end - - def reset(); end - - def set(set_attributes); end end class ActiveSupport::CurrentAttributes @@ -561,17 +553,9 ...
false
Other
Homebrew
brew
62d44b5c8acd5686bb7f4aa6599e25e5a1c784fc.json
.vscode: add more settings, extensions.
.vscode/extensions.json
@@ -0,0 +1,8 @@ +{ + "recommendations": [ + "kaiwood.endwise", + "misogi.ruby-rubocop", + "rebornix.ruby", + "wingrunr21.vscode-ruby" + ] +}
true
Other
Homebrew
brew
62d44b5c8acd5686bb7f4aa6599e25e5a1c784fc.json
.vscode: add more settings, extensions.
.vscode/settings.json
@@ -1,3 +1,6 @@ { - "ruby.rubocop.executePath": "/usr/local/Homebrew/Library/Homebrew/shims/gems/" -} \ No newline at end of file + "ruby.rubocop.executePath": "Library/Homebrew/shims/gems/", + "files.trimTrailingWhitespace": true, + "editor.tabSize": 2, + "files.insertFinalNewline": true, +}
true
Other
Homebrew
brew
dc072afdb175f2e8629e015952bcdcfde7038539.json
rubocop: add shim and command. Add a shim and a command that can be used to easily add a single directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it automatically install, configure and run `rubocop` so you can use it for in-editor integrations.
Library/Homebrew/dev-cmd/rubocop.sh
@@ -0,0 +1,25 @@ +#: * `rubocop` +#: +#: Installs, configures and runs Homebrew's `rubocop`. + +homebrew-rubocop() { + # Don't need shellcheck to follow this `source`. + # shellcheck disable=SC1090 + source "$HOMEBREW_LIBRARY/Homebrew/utils/ruby.sh" + setup-ruby-path + + GEM_VERSION="$("$HOMEBREW_RUBY_PATH" "$RU...
true
Other
Homebrew
brew
dc072afdb175f2e8629e015952bcdcfde7038539.json
rubocop: add shim and command. Add a shim and a command that can be used to easily add a single directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it automatically install, configure and run `rubocop` so you can use it for in-editor integrations.
Library/Homebrew/shims/gems/rubocop
@@ -0,0 +1,2 @@ +#!/bin/bash +exec brew rubocop "$@"
true
Other
Homebrew
brew
dc072afdb175f2e8629e015952bcdcfde7038539.json
rubocop: add shim and command. Add a shim and a command that can be used to easily add a single directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it automatically install, configure and run `rubocop` so you can use it for in-editor integrations.
completions/internal_commands_list.txt
@@ -74,6 +74,7 @@ reinstall release-notes remove rm +rubocop ruby search sh
true
Other
Homebrew
brew
dc072afdb175f2e8629e015952bcdcfde7038539.json
rubocop: add shim and command. Add a shim and a command that can be used to easily add a single directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it automatically install, configure and run `rubocop` so you can use it for in-editor integrations.
docs/Manpage.md
@@ -1206,6 +1206,10 @@ a warning will be shown if the latest minor release was less than one month ago. * `--markdown`: Print as a Markdown list. +### `rubocop` + +Installs, configures and runs Homebrew's `rubocop`. + ### `ruby` (`-e` *`text`*|*`file`*) Run a Ruby instance with Homebrew's libraries loaded, e....
true
Other
Homebrew
brew
dc072afdb175f2e8629e015952bcdcfde7038539.json
rubocop: add shim and command. Add a shim and a command that can be used to easily add a single directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it automatically install, configure and run `rubocop` so you can use it for in-editor integrations.
manpages/brew.1
@@ -1683,6 +1683,9 @@ If \fB\-\-markdown\fR and a \fIprevious_tag\fR are passed, an extra line contain \fB\-\-markdown\fR Print as a Markdown list\. . +.SS "\fBrubocop\fR" +Installs, configures and runs Homebrew\'s \fBrubocop\fR\. +. .SS "\fBruby\fR (\fB\-e\fR \fItext\fR|\fIfile\fR)" Run a Ruby instance with Homeb...
true
Other
Homebrew
brew
8af489547945bd9fb3b42c9e99123ca5d1b0ec2e.json
Improve submitted analytics data - Use default `custom-prefix` label on macOS ARM (as `/usr/local` is not the default). - Add architecture (or Rosetta) to analytics event label. - Don't send minor versions on Big Sur. - Remove defunct `HOMEBREW_OSX_VERSION` reference.
Library/Homebrew/brew.sh
@@ -313,14 +313,21 @@ then HOMEBREW_SYSTEM="Macintosh" [[ "$HOMEBREW_PROCESSOR" = "x86_64" ]] && HOMEBREW_PROCESSOR="Intel" HOMEBREW_MACOS_VERSION="$(/usr/bin/sw_vers -productVersion)" - HOMEBREW_OS_VERSION="macOS $HOMEBREW_MACOS_VERSION" # Don't change this from Mac OS X to match what macOS itself does in...
true
Other
Homebrew
brew
8af489547945bd9fb3b42c9e99123ca5d1b0ec2e.json
Improve submitted analytics data - Use default `custom-prefix` label on macOS ARM (as `/usr/local` is not the default). - Add architecture (or Rosetta) to analytics event label. - Don't send minor versions on Big Sur. - Remove defunct `HOMEBREW_OSX_VERSION` reference.
Library/Homebrew/extend/os/mac/utils/analytics.rb
@@ -5,10 +5,24 @@ module Utils module Analytics class << self extend T::Sig + sig { returns(String) } def custom_prefix_label + return generic_custom_prefix_label if Hardware::CPU.arm? + "non-/usr/local" end + + sig { returns(String) } + def arch_label + ...
true
Other
Homebrew
brew
8af489547945bd9fb3b42c9e99123ca5d1b0ec2e.json
Improve submitted analytics data - Use default `custom-prefix` label on macOS ARM (as `/usr/local` is not the default). - Add architecture (or Rosetta) to analytics event label. - Don't send minor versions on Big Sur. - Remove defunct `HOMEBREW_OSX_VERSION` reference.
Library/Homebrew/os/mac.rb
@@ -31,7 +31,7 @@ def version # This can be compared to numerics, strings, or symbols # using the standard Ruby Comparable methods. def full_version - @full_version ||= Version.new((ENV["HOMEBREW_MACOS_VERSION"] || ENV["HOMEBREW_OSX_VERSION"]).chomp) + @full_version ||= Version.new((ENV["HOMEBR...
true
Other
Homebrew
brew
8af489547945bd9fb3b42c9e99123ca5d1b0ec2e.json
Improve submitted analytics data - Use default `custom-prefix` label on macOS ARM (as `/usr/local` is not the default). - Add architecture (or Rosetta) to analytics event label. - Don't send minor versions on Big Sur. - Remove defunct `HOMEBREW_OSX_VERSION` reference.
Library/Homebrew/test/utils/analytics_spec.rb
@@ -5,24 +5,24 @@ require "formula_installer" describe Utils::Analytics do - describe "::os_prefix_ci" do - context "when os_prefix_ci is not set" do + describe "::os_arch_prefix_ci" do + context "when os_arch_prefix_ci is not set" do before do - described_class.clear_os_prefix_ci + des...
true
Other
Homebrew
brew
8af489547945bd9fb3b42c9e99123ca5d1b0ec2e.json
Improve submitted analytics data - Use default `custom-prefix` label on macOS ARM (as `/usr/local` is not the default). - Add architecture (or Rosetta) to analytics event label. - Don't send minor versions on Big Sur. - Remove defunct `HOMEBREW_OSX_VERSION` reference.
Library/Homebrew/utils/analytics.rb
@@ -62,7 +62,7 @@ def report(type, metadata = {}) end end - def report_event(category, action, label = os_prefix_ci, value = nil) + def report_event(category, action, label = os_arch_prefix_ci, value = nil) report(:event, ec: category, ea: action, @@ ...
true
Other
Homebrew
brew
e5712fc6d31c0e11117c2c0af406d95604b7ca8a.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -30877,6 +30877,10 @@ class User extend ::T::Private::Methods::SingletonMethodHooks end +module Utils::AST + extend ::T::Private::Methods::SingletonMethodHooks +end + module Utils::Analytics extend ::T::Private::Methods::SingletonMethodHooks end
false
Other
Homebrew
brew
465cd9c9cabd097e63a328195cde88e4542074ca.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/gems/mini_portile2@2.4.0.rbi
@@ -1,7 +0,0 @@ -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `mini_portile2` gem. -# Please instead update this file by running `tapioca generate --exclude json`. - -# typed: true - -
true
Other
Homebrew
brew
465cd9c9cabd097e63a328195cde88e4542074ca.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/gems/mini_portile2@2.5.0.rbi
@@ -0,0 +1,8 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `mini_portile2` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
true
Other
Homebrew
brew
465cd9c9cabd097e63a328195cde88e4542074ca.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/gems/nokogiri@1.11.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `nokogiri` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync`. # typed: true @@ -14,7 +14,7 @@ module Nokogiri de...
true
Other
Homebrew
brew
465cd9c9cabd097e63a328195cde88e4542074ca.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/gems/racc@1.5.2.rbi
@@ -0,0 +1,57 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `racc` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +ParseError = Racc::ParseError + +Racc::Copyright = T.let(T.unsafe(nil), String) + +class Racc::Parser + def _racc_do_parse_...
true
Other
Homebrew
brew
465cd9c9cabd097e63a328195cde88e4542074ca.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13950,8 +13950,6 @@ end module Parlour end -ParseError = Racc::ParseError - class Parser::Ruby24 def _reduce_10(val, _values, result); end @@ -25536,21 +25534,6 @@ end class Racc::CparseParams end -class Racc::Parser - Racc_Main_Parsing_Routine = ::T.let(nil, ::T.untyped) - Racc_Runtime_Core_Id_C = ...
true
Other
Homebrew
brew
da86bb50c92f055218b8f2db10b0d750b7369153.json
Ignore `racc` gem.
.gitignore
@@ -117,6 +117,7 @@ **/vendor/bundle/ruby/*/gems/powerpack-*/ **/vendor/bundle/ruby/*/gems/psych-*/ **/vendor/bundle/ruby/*/gems/pry-*/ +**/vendor/bundle/ruby/*/gems/racc-*/ **/vendor/bundle/ruby/*/gems/rainbow-*/ **/vendor/bundle/ruby/*/gems/rdiscount-*/ **/vendor/bundle/ruby/*/gems/regexp_parser-*/
false
Other
Homebrew
brew
924d42e4cb80d3a1a64118cf82819372cba1187c.json
cask: add DSL methods to RBI file
Library/Homebrew/cask/cask.rbi
@@ -2,10 +2,44 @@ module Cask class Cask + def appcast; end + def artifacts; end + def auto_updates; end + + def caveats; end + + def conflicts_with; end + + def container; end + + def desc; end + + def depends_on; end + def homepage; end + def language; end + + def langua...
false
Other
Homebrew
brew
8828b4bd68b01acc1ea641a00e0428bae428a96e.json
utils/ast: add `stanza_text` helper function
Library/Homebrew/dev-cmd/bump-revision.rb
@@ -37,24 +37,25 @@ def bump_revision args.named.to_formulae.each do |formula| current_revision = formula.revision - text = "revision #{current_revision+1}" + new_revision = current_revision + 1 if args.dry_run? unless args.quiet? + old_text = "revision #{current_revis...
true
Other
Homebrew
brew
8828b4bd68b01acc1ea641a00e0428bae428a96e.json
utils/ast: add `stanza_text` helper function
Library/Homebrew/test/utils/ast_spec.rb
@@ -20,7 +20,7 @@ class Foo < Formula describe ".replace_formula_stanza!" do it "replaces the specified stanza in a formula" do contents = initial_formula.dup - described_class.replace_formula_stanza!(contents, :license, "license :public_domain") + described_class.replace_formula_stanza!(conten...
true
Other
Homebrew
brew
8828b4bd68b01acc1ea641a00e0428bae428a96e.json
utils/ast: add `stanza_text` helper function
Library/Homebrew/utils/ast.rb
@@ -29,7 +29,7 @@ def formula_stanza(formula_contents, name, type: nil) end def replace_bottle_stanza!(formula_contents, bottle_output) - replace_formula_stanza!(formula_contents, :bottle, bottle_output.strip, type: :block_call) + replace_formula_stanza!(formula_contents, :bottle, bottle_o...
true
Other
Homebrew
brew
8dcd2d2ba87f4677b1348ada1959d526c9769722.json
Add a missing backtick
docs/Shell-Completion.md
@@ -8,7 +8,7 @@ You must configure your shell to enable its completion support. This is because ## Configuring Completions in `bash` -To make Homebrew's completions available in `bash`, you must source the definitions as part of your shell's startup. Add the following to your `~/.bash_profile` (or, if it doesn't e...
false
Other
Homebrew
brew
e5d656bcce8b68bb11d4bd7a6f2160e6b7ba2bc7.json
Avoid unnecessary downloads in `audit`.
Library/Homebrew/utils/curl.rb
@@ -154,12 +154,25 @@ def url_protected_by_incapsula?(details) def curl_check_http_content(url, user_agents: [:default], check_content: false, strict: false) return unless url.start_with? "http" + secure_url = url.sub(/\Ahttp:/, "https:") + secure_details = nil + hash_needed = false + ...
false
Other
Homebrew
brew
ec841e7b6217e3038b2ca74c2c60084f1a0fd11f.json
bottle: add `old_checksums` helper function
Library/Homebrew/dev-cmd/bottle.rb
@@ -489,36 +489,21 @@ def merge(args:) bottle.sha256 tag_hash["sha256"] => tag.to_sym end - output = bottle_output bottle - if args.write? path = Pathname.new((HOMEBREW_REPOSITORY/bottle_hash["formula"]["path"]).to_s) - update_or_add = T.let(nil, T.nilable(String)) + ...
false
Other
Homebrew
brew
7d9f05153401e5e0a7bfb2af8e68b0e9a95cca5c.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.9.2.rbi
@@ -630,15 +630,13 @@ class RuboCop::Cop::Performance::ReverseEach < ::RuboCop::Cop::Base private - def replacement_range(node); end + def offense_range(node); end end RuboCop::Cop::Performance::ReverseEach::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Performance::ReverseEach::RESTRICT_ON_SEND = T....
true
Other
Homebrew
brew
7d9f05153401e5e0a7bfb2af8e68b0e9a95cca5c.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `ruby-progressbar` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync`. # typed: true @@ -47,27 +47,27 @@ class Progres...
true
Other
Homebrew
brew
4cbd4f296bd101ba17b94b1e9383fc5d7f5ba5fd.json
bottle: add tests for `merge_bottle_spec`
Library/Homebrew/dev-cmd/bottle.rb
@@ -549,24 +549,26 @@ def merge_bottle_spec(old_keys, old_bottle_spec, new_bottle_hash) new_values = { root_url: new_bottle_hash["root_url"], prefix: new_bottle_hash["prefix"], - cellar: new_bottle_hash["cellar"].to_sym, + cellar: new_bottle_hash["cellar"], rebuild: new_bottle...
true
Other
Homebrew
brew
4cbd4f296bd101ba17b94b1e9383fc5d7f5ba5fd.json
bottle: add tests for `merge_bottle_spec`
Library/Homebrew/test/dev-cmd/bottle_spec.rb
@@ -173,6 +173,66 @@ def stub_hash(parameters) "d9cc50eec8ac243148a121049c236cba06af4a0b1156ab397d0a2850aa79c137", ) end + + describe "#merge_bottle_spec" do + it "allows new bottle hash to be empty" do + valid_keys = [:root_url, :prefix, :cellar, :rebuild, :sha256] + old_spec = BottleSpeci...
true
Other
Homebrew
brew
86fee106a3b042ccd8c1c207a93f1cf0dfa8bd5a.json
livecheck: strengthen URL patterns
Library/Homebrew/livecheck/strategy/gnome.rb
@@ -20,7 +20,7 @@ class Gnome NICE_NAME = "GNOME" # The `Regexp` used to determine if the strategy applies to the URL. - URL_MATCH_REGEX = /download\.gnome\.org/i.freeze + URL_MATCH_REGEX = %r{^https?://download\.gnome\.org/sources/[^/]+/}i.freeze # Whether the strategy can ...
true
Other
Homebrew
brew
86fee106a3b042ccd8c1c207a93f1cf0dfa8bd5a.json
livecheck: strengthen URL patterns
Library/Homebrew/livecheck/strategy/hackage.rb
@@ -18,7 +18,7 @@ module Strategy # @api public class Hackage # The `Regexp` used to determine if the strategy applies to the URL. - URL_MATCH_REGEX = /(?:downloads|hackage)\.haskell\.org/i.freeze + URL_MATCH_REGEX = %r{^https?://(?:downloads|hackage)\.haskell\.org(?:/[^/]+){3}}i.fr...
true
Other
Homebrew
brew
86fee106a3b042ccd8c1c207a93f1cf0dfa8bd5a.json
livecheck: strengthen URL patterns
Library/Homebrew/livecheck/strategy/npm.rb
@@ -20,7 +20,7 @@ class Npm NICE_NAME = "npm" # The `Regexp` used to determine if the strategy applies to the URL. - URL_MATCH_REGEX = /registry\.npmjs\.org/i.freeze + URL_MATCH_REGEX = %r{^https?://registry\.npmjs\.org(?:/[^/]+)?/[^/]+/-/}i.freeze # Whether the strategy can...
true
Other
Homebrew
brew
86fee106a3b042ccd8c1c207a93f1cf0dfa8bd5a.json
livecheck: strengthen URL patterns
Library/Homebrew/livecheck/strategy/pypi.rb
@@ -20,7 +20,7 @@ class Pypi NICE_NAME = "PyPI" # The `Regexp` used to determine if the strategy applies to the URL. - URL_MATCH_REGEX = /files\.pythonhosted\.org/i.freeze + URL_MATCH_REGEX = %r{^https?://files\.pythonhosted\.org/packages(?:/[^/]+){4}i}.freeze # Whether the ...
true
Other
Homebrew
brew
86fee106a3b042ccd8c1c207a93f1cf0dfa8bd5a.json
livecheck: strengthen URL patterns
Library/Homebrew/test/livecheck/strategy/hackage_spec.rb
@@ -7,11 +7,13 @@ subject(:hackage) { described_class } let(:hackage_url) { "https://hackage.haskell.org/package/abc-1.2.3/def-1.2.3.tar.gz" } + let(:hackage_downloads_url) { "https://downloads.haskell.org/~abc/1.2.3/def-1.2.3-src.tar.xz" } let(:non_hackage_url) { "https://brew.sh/test" } describe "::m...
true
Other
Homebrew
brew
86fee106a3b042ccd8c1c207a93f1cf0dfa8bd5a.json
livecheck: strengthen URL patterns
Library/Homebrew/test/livecheck/strategy/npm_spec.rb
@@ -7,11 +7,13 @@ subject(:npm) { described_class } let(:npm_url) { "https://registry.npmjs.org/abc/-/def-1.2.3.tgz" } + let(:npm_scoped_url) { "https://registry.npmjs.org/@example/abc/-/def-1.2.3.tgz" } let(:non_npm_url) { "https://brew.sh/test" } describe "::match?" do it "returns true if the ar...
true
Other
Homebrew
brew
7ab50ef6f611b88915112b8b96db93f198e43e1a.json
rubocops/homepage: fix frozen string error.
Library/Homebrew/rubocops/homepage.rb
@@ -89,7 +89,7 @@ def autocorrect(node) lambda do |corrector| return if node.nil? - homepage = string_content(node) + homepage = string_content(node).dup homepage.sub!("readthedocs.org", "readthedocs.io") homepage.delete_suffix!(".git") if homepa...
false
Other
Homebrew
brew
7cc48a03d5c69ddb5e3504baf2fb5c2ef8863e50.json
rubocop: exclude new cop. This doesn't look good for DSLs.
Library/.rubocop.yml
@@ -54,6 +54,14 @@ FormulaAudit: FormulaAuditStrict: Enabled: true +# makes DSL usage ugly. +Layout/SpaceBeforeBrackets: + Exclude: + - "**/*_spec.rb" + - "Taps/*/*/*.rb" + - "/**/{Formula,Casks}/*.rb" + - "**/{Formula,Casks}/*.rb" + # Use `<<~` for heredocs. Layout/HeredocIndentation: Enabled: ...
false
Other
Homebrew
brew
ec23ba0b363bf2b6c14278a996fa00d4525129e8.json
rubocop.yml: require relevant gems. This avoids RuboCop erroring out.
Library/.rubocop.yml
@@ -1,6 +1,9 @@ # TODO: Try getting more rules in sync. -require: ./Homebrew/rubocops.rb +require: + - ./Homebrew/rubocops.rb + - rubocop-performance + - rubocop-rails inherit_mode: merge:
false
Other
Homebrew
brew
59360930d32fb66fb5de4f135e793deb97495566.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/parser@3.0.0.0.rbi
@@ -76,6 +76,7 @@ class Parser::AST::Processor < ::AST::Processor def on_ivar(node); end def on_ivasgn(node); end def on_kwarg(node); end + def on_kwargs(node); end def on_kwbegin(node); end def on_kwoptarg(node); end def on_kwrestarg(node); end @@ -87,6 +88,8 @@ class Parser::AST::Processor < ::AST:...
true
Other
Homebrew
brew
59360930d32fb66fb5de4f135e793deb97495566.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.0.3.rbi
@@ -390,7 +390,7 @@ end class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base def match_length; end - def quantify(token, text, min = T.unsafe(nil), max = T.unsafe(nil), mode = T.unsafe(nil)); end + def quantify(_token, _text, _min = T.unsafe(nil), _max = T.unsafe(nil), _mode = T.unsafe(nil)); end e...
true
Other
Homebrew
brew
59360930d32fb66fb5de4f135e793deb97495566.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.7.0.rbi
@@ -126,12 +126,10 @@ class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base def current_formatter; end def dependent_gems; end def extensions; end + def installed_gems; end + def lockfile; end def puts(*args); end def skip?; end - - class << self - def dependent_gems; end -...
true
Other
Homebrew
brew
59360930d32fb66fb5de4f135e793deb97495566.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -5873,8 +5873,6 @@ module CopHelper def inspect_source(source, file=T.unsafe(nil)); end - def inspect_source_file(source); end - def parse_source(source, file=T.unsafe(nil)); end end @@ -27709,6 +27707,12 @@ class RuboCop::AST::Node def key_node(param0=T.unsafe(nil)); end + def kwargs_type?(); ...
true
Other
Homebrew
brew
ff2de4ca56f50fa9487d3fb9f09bda9a71169c38.json
Update RBI files for plist.
Library/Homebrew/sorbet/rbi/gems/plist@3.6.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `plist` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync`. # typed: true @@ -15,36 +15,35 @@ module Plist::Emit de...
false
Other
Homebrew
brew
ac3ce218e3560713c44e856b2906be7e53a164e0.json
man: fix style issue
Library/Homebrew/dev-cmd/man.rb
@@ -218,7 +218,8 @@ def cmd_comment_manpage_lines(cmd_path) sig { returns(String) } def global_cask_options_manpage - lines = ["These options are applicable to the `install`, `reinstall`, and `upgrade` subcommands with the `--cask` flag.\n"] + lines = ["These options are applicable to the `install`, `rein...
false
Other
Homebrew
brew
5f7c369bc8b66ee3a107741d4ed8ec9bbea340d4.json
docs: fix wording on manpage for cask options
Library/Homebrew/dev-cmd/man.rb
@@ -218,7 +218,7 @@ def cmd_comment_manpage_lines(cmd_path) sig { returns(String) } def global_cask_options_manpage - lines = ["These options are applicable to subcommands accepting a `--cask` flag and all `cask` commands.\n"] + lines = ["These options are applicable to the `install`, `reinstall`, and `up...
true
Other
Homebrew
brew
5f7c369bc8b66ee3a107741d4ed8ec9bbea340d4.json
docs: fix wording on manpage for cask options
docs/Manpage.md
@@ -1396,7 +1396,7 @@ Install and commit Homebrew's vendored gems. ## GLOBAL CASK OPTIONS -These options are applicable to subcommands accepting a `--cask` flag and all `cask` commands. +These options are applicable to the `install`, `reinstall`, and `upgrade` subcommands with the `--cask` flag. * `--appdir`: ...
true
Other
Homebrew
brew
5f7c369bc8b66ee3a107741d4ed8ec9bbea340d4.json
docs: fix wording on manpage for cask options
manpages/brew.1
@@ -1945,7 +1945,7 @@ Install and commit Homebrew\'s vendored gems\. Update all vendored Gems to the latest version\. . .SH "GLOBAL CASK OPTIONS" -These options are applicable to subcommands accepting a \fB\-\-cask\fR flag and all \fBcask\fR commands\. +These options are applicable to the \fBinstall\fR, \fBreinstall...
true
Other
Homebrew
brew
c424201401193ae23d24c02c0fb49294fc312c75.json
formula_creator: update hash syntax
Library/Homebrew/formula_creator.rb
@@ -193,15 +193,15 @@ def install # end bin.install name - bin.env_script_all_files(libexec/"bin", :PERL5LIB => ENV["PERL5LIB"]) + bin.env_script_all_files(libexec/"bin", PERL5LIB: ENV["PERL5LIB"]) <% elsif mode == :python %> virtualenv_install_wit...
false
Other
Homebrew
brew
34a88a3bb083508da3a12a7f1ad744a1d6abf312.json
update: add notice that unshallowing takes time
Library/Homebrew/cmd/update.sh
@@ -392,6 +392,14 @@ EOS [[ -f "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core/.git/shallow" ]] && HOMEBREW_CORE_SHALLOW=1 [[ -f "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-cask/.git/shallow" ]] && HOMEBREW_CASK_SHALLOW=1 + if [[ -n $HOMEBREW_CORE_SHALLOW && -n $HOMEBREW_CASK_SHALLOW ]] + then + SHALLOW_COMMA...
false
Other
Homebrew
brew
28c4dccb0bc7b2e147f8cec770f80f2b8f08501d.json
Update RBI files for sorbet.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -532,6 +532,14 @@ class ActiveSupport::CurrentAttributes def _reset_callbacks(); end def _run_reset_callbacks(&block); end + + def attributes(); end + + def attributes=(attributes); end + + def reset(); end + + def set(set_attributes); end end class ActiveSupport::CurrentAttributes @@ -553,9 +561,17 ...
false
Other
Homebrew
brew
a33f4e0fd1faf60289903cacc89f649739c1b849.json
release-notes: show warning on recent major/minor tag
Library/Homebrew/dev-cmd/release-notes.rb
@@ -17,6 +17,10 @@ def release_notes_args Print the merged pull requests on Homebrew/brew between two Git refs. If no <previous_tag> is provided it defaults to the latest tag. If no <end_ref> is provided it defaults to `origin/master`. + + If `--markdown` and a <previous_tag> are passe...
true
Other
Homebrew
brew
a33f4e0fd1faf60289903cacc89f649739c1b849.json
release-notes: show warning on recent major/minor tag
docs/Manpage.md
@@ -1197,6 +1197,10 @@ Print the merged pull requests on Homebrew/brew between two Git refs. If no *`previous_tag`* is provided it defaults to the latest tag. If no *`end_ref`* is provided it defaults to `origin/master`. +If `--markdown` and a *`previous_tag`* are passed, an extra line containg +a link to the Homeb...
true
Other
Homebrew
brew
a33f4e0fd1faf60289903cacc89f649739c1b849.json
release-notes: show warning on recent major/minor tag
manpages/brew.1
@@ -1672,6 +1672,9 @@ Use \fBstackprof\fR instead of \fBruby\-prof\fR (the default)\. .SS "\fBrelease\-notes\fR [\fIoptions\fR] [\fIprevious_tag\fR] [\fIend_ref\fR]" Print the merged pull requests on Homebrew/brew between two Git refs\. If no \fIprevious_tag\fR is provided it defaults to the latest tag\. If no \fIend...
true
Other
Homebrew
brew
5784e36ead31f94e46b102323d05ef20b841a0f5.json
docs: improve clarity in deprecate/disable/removal docs Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com> Co-Authored-By: Michka Popoff <3406519+iMichka@users.noreply.github.com> Co-Authored-By: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
docs/Deprecating-Disabling-and-Removing-Formulae.md
@@ -12,9 +12,9 @@ This general rule of thumb can be followed: ## Deprecation -If a user attempts to install a deprecated formula, they will be shown a warning message but the install will succeed. +If a user attempts to install a deprecated formula, they will be shown a warning message but the install will proceed...
false
Other
Homebrew
brew
1b4993c9ce9c1ba7966819298336c56f6f3b8861.json
cmd/install: add comment to deprecate --env. We don't allow this on upgrade or reinstall so let's make `StdEnv` essentially a private, internal API.
Library/Homebrew/cmd/install.rb
@@ -131,6 +131,11 @@ def install_args def install args = install_args.parse + if args.env.present? + # TODO: enable for Homebrew 2.8.0 and use `replacement: false` for 2.9.0. + # odeprecated "brew install --env", "`env :std` in specific formula files" + end + args.named.each do |name| ...
false
Other
Homebrew
brew
4c1b2630dcf99793e8ecfed60c441dd080418401.json
Fix sorbet errors.
Library/Homebrew/cache_store.rb
@@ -38,6 +38,15 @@ def self.use(type) return_value end + # Creates a CacheStoreDatabase. + # + # @param [Symbol] type + # @return [nil] + def initialize(type) + @type = type + @dirty = false + end + # Sets a value in the underlying database (and creates it if necessary). def set(key, value)...
true
Other
Homebrew
brew
4c1b2630dcf99793e8ecfed60c441dd080418401.json
Fix sorbet errors.
Library/Homebrew/utils/spdx.rb
@@ -39,8 +39,8 @@ def download_latest_license_data!(to: DATA_PATH) end def parse_license_expression(license_expression) - licenses = [] - exceptions = [] + licenses = T.let([], T::Array[T.any(String, Symbol)]) + exceptions = T.let([], T::Array[String]) case license_expression when String...
true
Other
Homebrew
brew
b6447120aed42a58a70aad54e7c997ae7f22e685.json
mktemp: avoid directories with @
Library/Homebrew/mktemp.rb
@@ -40,7 +40,7 @@ def to_s end def run - @tmpdir = Pathname.new(Dir.mktmpdir("#{@prefix}-", HOMEBREW_TEMP)) + @tmpdir = Pathname.new(Dir.mktmpdir("#{@prefix.tr "@", "-"}-", HOMEBREW_TEMP)) # Make sure files inside the temporary directory have the same group as the # brew instance.
false
Other
Homebrew
brew
d345864d7e6f98488ed6fc454c0338bb20b751b2.json
exceptions: fix ErrorDuringExecution status. This can sometimes be nil so handle that. Fixes #10158
Library/Homebrew/exceptions.rb
@@ -582,7 +582,7 @@ def initialize(cmd, status:, output: nil, secrets: []) when Integer status else - status.exitstatus + status&.exitstatus end redacted_cmd = redact_secrets(cmd.shelljoin.gsub('\=', "="), secrets) @@ -592,7 +592,7 @@ def initialize(cmd, status:, output: nil, secr...
false
Other
Homebrew
brew
09132be32a163d83895081b0ddd02a314b4b54b6.json
docs: use list for common disable reasons Co-Authored-By: Adrian Ho <the.gromgit@gmail.com>
docs/Deprecating-Disabling-and-Removing-Formulae.md
@@ -34,7 +34,12 @@ If a user attempts to install a disabled formula, they will be shown an error me A formula should be disabled to indicate to users that the formula cannot be used and will be removed in the future. Disabled formulae may no longer build from source or have working bottles. -The most common reason...
false
Other
Homebrew
brew
fef4512b35fb30eaf5a3efbf2de675077bab5089.json
Livecheck: Pass regex into strategy blocks
Library/Homebrew/livecheck/strategy/git.rb
@@ -87,7 +87,7 @@ def self.find_versions(url, regex = nil, &block) tags_only_debian = tags_data[:tags].all? { |tag| tag.start_with?("debian/") } if block - case (value = block.call(tags_data[:tags])) + case (value = block.call(tags_data[:tags], regex)) when Str...
true
Other
Homebrew
brew
fef4512b35fb30eaf5a3efbf2de675077bab5089.json
Livecheck: Pass regex into strategy blocks
Library/Homebrew/livecheck/strategy/header_match.rb
@@ -45,7 +45,7 @@ def self.find_versions(url, regex, &block) merged_headers = headers.reduce(&:merge) if block - match = block.call(merged_headers) + match = block.call(merged_headers, regex) else match = nil
true
Other
Homebrew
brew
fef4512b35fb30eaf5a3efbf2de675077bab5089.json
Livecheck: Pass regex into strategy blocks
Library/Homebrew/livecheck/strategy/page_match.rb
@@ -49,7 +49,7 @@ def self.match?(url) # @return [Array] def self.page_matches(content, regex, &block) if block - case (value = block.call(content)) + case (value = block.call(content, regex)) when String return [value] when Arr...
true
Other
Homebrew
brew
3a6f34d27bc654d41c274c4ef469f89c2d93be70.json
cli/parser: add tests for inferring option names
Library/Homebrew/test/cli/parser_spec.rb
@@ -252,6 +252,42 @@ end end + describe "test inferrability of args" do + subject(:parser) { + described_class.new do + switch "--switch-a" + switch "--switch-b" + switch "--foo-switch" + flag "--flag-foo=" + comma_array "--comma-array-foo" + end + } + + ...
false
Other
Homebrew
brew
5b360f35c534a881e045fd51474e3982dad63c11.json
update-report: use gitconfig to remember last tag
Library/Homebrew/cmd/update-report.rb
@@ -89,7 +89,21 @@ def update_report puts "Updated Homebrew from #{shorten_revision(initial_revision)} to #{shorten_revision(current_revision)}." updated = true - new_repository_version = Utils.safe_popen_read("git", "tag", "--points-at", "HEAD").chomp.presence + old_tag = if (HOMEBREW_REPOSIT...
false
Other
Homebrew
brew
90868fff3466f62b2fb2ecf119f48b8c7039c8d5.json
cmd/list: Remove help text about `-l` displaying file sizes - It doesn't work on the `HOMEBREW_CELLAR` dir for some reason, and using `du -sh` instead (PR 10131) was an extra call that we don't need. - (I had to edit the man page manually as `brew man` gives me "Broken pipe" errors.)
Library/Homebrew/cmd/list.rb
@@ -48,8 +48,7 @@ def list_args "This is the default when output is not to a terminal." switch "-l", depends_on: "--formula", - description: "List formulae in long format. If the output is to a terminal, "\ - "a total sum for all the ...
true
Other
Homebrew
brew
90868fff3466f62b2fb2ecf119f48b8c7039c8d5.json
cmd/list: Remove help text about `-l` displaying file sizes - It doesn't work on the `HOMEBREW_CELLAR` dir for some reason, and using `du -sh` instead (PR 10131) was an extra call that we don't need. - (I had to edit the man page manually as `brew man` gives me "Broken pipe" errors.)
docs/Manpage.md
@@ -339,7 +339,7 @@ If *`cask`* is provided, list its artifacts. * `-1`: Force output to be one entry per line. This is the default when output is not to a terminal. * `-l`: - List formulae in long format. If the output is to a terminal, a total sum for all the file sizes is printed before the long listing. + Li...
true
Other
Homebrew
brew
90868fff3466f62b2fb2ecf119f48b8c7039c8d5.json
cmd/list: Remove help text about `-l` displaying file sizes - It doesn't work on the `HOMEBREW_CELLAR` dir for some reason, and using `du -sh` instead (PR 10131) was an extra call that we don't need. - (I had to edit the man page manually as `brew man` gives me "Broken pipe" errors.)
manpages/brew.1
@@ -468,7 +468,7 @@ Force output to be one entry per line\. This is the default when output is not t . .TP \fB\-l\fR -List formulae in long format\. If the output is to a terminal, a total sum for all the file sizes is printed before the long listing\. +List formulae in long format\. . .TP \fB\-r\fR
true
Other
Homebrew
brew
b125bd92cf6cc4042716d499c816db89334d8b31.json
docs: incorporate changes from code review Co-Authored-By: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
docs/Deprecating-Disabling-and-Removing-Formulae.md
@@ -8,13 +8,13 @@ This general rule of thumb can be followed: - `deprecate!` should be used for formulae that _should_ no longer be used. - `disable!` should be used for formulae that _cannot_ be used. -- Formulae that have are not longer acceptable in homebrew/core or have been disabled for over a year should be r...
false
Other
Homebrew
brew
5a1adeae06a6660d43274e10bb60d5d14b7cd178.json
docs: incorporate changes from code review Co-Authored-By: Seeker <meaningseeking@protonmail.com> Co-Authored-By: Sean Molenaar <smillerdev@me.com> Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com> Co-Authored-By: Michka Popoff <3406519+iMichka@users.noreply.github.com>
docs/Deprecating-Disabling-and-Removing-Formulae.md
@@ -6,15 +6,15 @@ There are many reasons why formulae may be deprecated, disabled, or removed. Thi This general rule of thumb can be followed: -- `deprecate!` should be used for formulae that _should_ no longer be used -- `disable!` should be used for formulae that _cannot_ be used -- Formulae that have been disab...
true
Other
Homebrew
brew
5a1adeae06a6660d43274e10bb60d5d14b7cd178.json
docs: incorporate changes from code review Co-Authored-By: Seeker <meaningseeking@protonmail.com> Co-Authored-By: Sean Molenaar <smillerdev@me.com> Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com> Co-Authored-By: Michka Popoff <3406519+iMichka@users.noreply.github.com>
docs/Formula-Cookbook.md
@@ -795,6 +795,10 @@ You can set environment variables in a formula's `install` method using `ENV["VA In summary, environment variables used by a formula need to conform to these filtering rules in order to be available. +### Deprecating and disabling a formula + +See our [Deprecating, Disabling, and Removing Form...
true
Other
Homebrew
brew
844363c7477fe3cd01043cc08ff96aa23511b43f.json
Fix description cache path in Fish completion
completions/fish/brew.fish
@@ -93,11 +93,9 @@ function __fish_brew_suggest_formulae_all -d 'Lists all available formulae with set -q __brew_cache_path or set -gx __brew_cache_path (brew --cache) - # TODO: Probably drop this since I think that desc_cache.json is no longer generated. Is there a different available cache? - if tes...
false
Other
Homebrew
brew
8b5e334be48f0589a5d0c1fc376e161ff73ea49e.json
PageMatch: Require provided_content to be a string
Library/Homebrew/livecheck/strategy/page_match.rb
@@ -88,7 +88,7 @@ def self.page_matches(content, regex, &block) def self.find_versions(url, regex, provided_content = nil, &block) match_data = { matches: {}, regex: regex, url: url } - content = if provided_content.present? + content = if provided_content.is_a?(String) ...
false