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
ca4a5b73fdeb082bce2279d866ed5afdcb208861.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/tapioca@0.4.19.rbi
@@ -554,6 +554,8 @@ module Tapioca::GenericTypeRegistry private + sig { params(constant: Module, name: String).returns(Module) } + def create_generic_type(constant, name); end sig { params(constant: Module).returns(T::Hash[Integer, String]) } def lookup_or_initialize_type_variables(constant); e...
false
Other
Homebrew
brew
1b674cdfec1674f88b61e7a74fff75071b9424c3.json
workflows: enable commit signing for BrewTestBot
.github/workflows/sorbet.yml
@@ -24,8 +24,15 @@ jobs: with: username: BrewTestBot + - name: Set up commit signing + uses: Homebrew/actions/setup-commit-signing@master + with: + signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} + - name: Update RBI files id: update + ...
true
Other
Homebrew
brew
1b674cdfec1674f88b61e7a74fff75071b9424c3.json
workflows: enable commit signing for BrewTestBot
.github/workflows/spdx.yml
@@ -21,11 +21,17 @@ jobs: with: username: BrewTestBot + - name: Set up commit signing + uses: Homebrew/actions/setup-commit-signing@master + with: + signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} + - name: Update SPDX license data id: update ...
true
Other
Homebrew
brew
1b674cdfec1674f88b61e7a74fff75071b9424c3.json
workflows: enable commit signing for BrewTestBot
.github/workflows/update-manpage.yml
@@ -31,6 +31,11 @@ jobs: with: username: BrewTestBot + - name: Set up commit signing + uses: Homebrew/actions/setup-commit-signing@master + with: + signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} + - name: Update maintainers, manpage and completions ...
true
Other
Homebrew
brew
1b674cdfec1674f88b61e7a74fff75071b9424c3.json
workflows: enable commit signing for BrewTestBot
.github/workflows/vendor-gems.yml
@@ -28,6 +28,10 @@ jobs: uses: Homebrew/actions/git-user-config@master with: username: BrewTestBot + - name: Set up commit signing + uses: Homebrew/actions/setup-commit-signing@master + with: + signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} - n...
true
Other
Homebrew
brew
86beda7f19eb2acb0b6fbcf4baa8a86e91a336be.json
formula: add ldflags parameter to std_go_args
Library/Homebrew/formula.rb
@@ -1457,9 +1457,11 @@ def std_cmake_args end # Standard parameters for Go builds. - sig { returns(T::Array[T.any(String, Pathname)]) } - def std_go_args - ["-trimpath", "-o", bin/name] + sig { params(ldflags: T.nilable(String)).returns(T::Array[String]) } + def std_go_args(ldflags: nil) + args = ["-t...
false
Other
Homebrew
brew
c7033b367296e61e382dac93f1bf093721d202c7.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.10.2.rbi
@@ -470,6 +470,7 @@ class RuboCop::Cop::Performance::RedundantBlockCall < ::RuboCop::Cop::Base def args_include_block_pass?(blockcall); end def autocorrect(corrector, node); end def calls_to_report(argname, body); end + def shadowed_block_argument?(body, block_argument_of_method_signature); end end RuboCo...
false
Other
Homebrew
brew
86ff8b34aba809e835b7757339e589471b68c4b3.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/tapioca@0.4.18.rbi
@@ -1,28 +1,51 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `tapioca` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true +module T::Generic::TypeStoragePatch + def [](*types);...
true
Other
Homebrew
brew
86ff8b34aba809e835b7757339e589471b68c4b3.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -29376,82 +29376,6 @@ class Tapioca::Compilers::Dsl::Base extend ::T::Private::Methods::SingletonMethodHooks end -class Tapioca::Compilers::DslCompiler - extend ::T::Sig - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - -class Tapioca::Compilers::Require...
true
Other
Homebrew
brew
d6d7c57806437d9f37154eb4fc786bed8d760288.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
@@ -8289,6 +8289,11 @@ module Homebrew::Livecheck::SkipConditions extend ::T::Private::Methods::SingletonMethodHooks end +class Homebrew::Livecheck::Strategy::ElectronBuilder + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + class Homebrew::Livecheck::Strat...
false
Other
Homebrew
brew
ae2d0fb0f8e0d81ee02a1e0535a7e6401a9e4825.json
Fix Cask handling in `brew deps` and `brew uses`. Fixes #10906.
Library/Homebrew/cmd/deps.rb
@@ -93,9 +93,9 @@ def deps when :formula sorted_dependents(Formula.installed) when :cask - sorted_dependents(Cask::Caskroom.casks(config: Cask::Config.from_args(args))) + sorted_dependents(Cask::Caskroom.casks) else - sorted_dependents(Formula.installed +...
true
Other
Homebrew
brew
ae2d0fb0f8e0d81ee02a1e0535a7e6401a9e4825.json
Fix Cask handling in `brew deps` and `brew uses`. Fixes #10906.
Library/Homebrew/cmd/uses.rb
@@ -93,7 +93,7 @@ def intersection_of_dependents(use_runtime_dependents, used_formulae, args:) end if show_formulae_and_casks || args.cask? deps += select_used_dependents( - dependents(Cask::Caskroom.casks(config: Cask::Config.from_args(args))), + dependents(Cask::Caskroom.casks...
true
Other
Homebrew
brew
15102a3234bae24a1aeeb458ccb0182f4685788d.json
livecheck/strategy/electron_builder: address changes from review Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Library/Homebrew/livecheck/strategy/electron_builder.rb
@@ -1,4 +1,4 @@ -# typed: false +# typed: true # frozen_string_literal: true module Homebrew @@ -19,7 +19,7 @@ class ElectronBuilder PRIORITY = 0 # The `Regexp` used to determine if the strategy applies to the URL. - URL_MATCH_REGEX = %r{^https?://.+?/.+?\.yml}i.freeze + URL_MATCH_...
true
Other
Homebrew
brew
15102a3234bae24a1aeeb458ccb0182f4685788d.json
livecheck/strategy/electron_builder: address changes from review Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Library/Homebrew/test/livecheck/strategy/electron_builder_spec.rb
@@ -7,7 +7,7 @@ subject(:electron_builder) { described_class } let(:valid_url) { "https://www.example.com/example/latest-mac.yml" } - let(:invalid_url) { "https://www.example.com/example/example" } + let(:invalid_url) { "https://brew.sh/test" } let(:electron_builder_yaml) { <<~EOS @@ -46,5 +46,13 @@...
true
Other
Homebrew
brew
4e61f61a208c0074bdf60fc68b7bb0e88e67c3d7.json
utils/github: handle non-standard tap remotes
Library/Homebrew/dev-cmd/bump-cask-pr.rb
@@ -199,7 +199,8 @@ def fetch_cask(contents, version, config: nil) end def check_open_pull_requests(cask, args:) - GitHub.check_for_duplicate_pull_requests(cask.token, cask.tap.full_name, + tap_remote_repo = cask.tap.remote_repo || cask.tap.full_name + GitHub.check_for_duplicate_pull_requests(cask.toke...
true
Other
Homebrew
brew
4e61f61a208c0074bdf60fc68b7bb0e88e67c3d7.json
utils/github: handle non-standard tap remotes
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -85,10 +85,10 @@ def bump_formula_pr_args def use_correct_linux_tap(formula, args:) default_origin_branch = formula.tap.path.git_origin_branch - return formula.tap.full_name, "origin", default_origin_branch, "-" if !OS.linux? || !formula.tap.core_tap? + return formula.tap.remote_repo, "origin", defau...
true
Other
Homebrew
brew
4e61f61a208c0074bdf60fc68b7bb0e88e67c3d7.json
utils/github: handle non-standard tap remotes
Library/Homebrew/dev-cmd/bump.rb
@@ -170,7 +170,8 @@ def livecheck_result(formula_or_cask) end def retrieve_pull_requests(formula_or_cask, name) - pull_requests = GitHub.fetch_pull_requests(name, formula_or_cask.tap&.full_name, state: "open") + tap_remote_repo = formula_or_cask.tap&.remote_repo || formula_or_cask.tap&.full_name + pull...
true
Other
Homebrew
brew
4e61f61a208c0074bdf60fc68b7bb0e88e67c3d7.json
utils/github: handle non-standard tap remotes
Library/Homebrew/tap.rb
@@ -138,6 +138,14 @@ def remote @remote ||= path.git_origin end + # The remote repository name of this {Tap}. + # e.g. `user/homebrew-repo` + def remote_repo + raise TapUnavailableError, name unless installed? + + @remote_repo ||= remote&.sub(%r{^https://github\.com/}, "")&.sub(/\.git$/, "") + end +...
true
Other
Homebrew
brew
4e61f61a208c0074bdf60fc68b7bb0e88e67c3d7.json
utils/github: handle non-standard tap remotes
Library/Homebrew/test/tap_spec.rb
@@ -205,6 +205,33 @@ def setup_completion(link:) end end + describe "#remote_repo" do + it "returns the remote repository" do + setup_git_repo + + expect(homebrew_foo_tap.remote_repo).to eq("Homebrew/homebrew-foo") + expect { described_class.new("Homebrew", "bar").remote_repo }.to raise_err...
true
Other
Homebrew
brew
4e61f61a208c0074bdf60fc68b7bb0e88e67c3d7.json
utils/github: handle non-standard tap remotes
Library/Homebrew/utils/github.rb
@@ -63,8 +63,8 @@ def search_code(repo: nil, user: "Homebrew", path: ["Formula", "Casks", "."], fi end end - def issues_for_formula(name, tap: CoreTap.instance, tap_full_name: tap.full_name, state: nil) - search_issues(name, repo: tap_full_name, state: state, in: "title") + def issues_for_formula(name, t...
true
Other
Homebrew
brew
f422b6cdc4a4ee3a6fb3f353f2bc3512ef4e25e3.json
livecheck/strategy: add ElectronBuilder strategy
Library/Homebrew/livecheck/strategy.rb
@@ -147,6 +147,7 @@ def self.page_content(url) require_relative "strategy/apache" require_relative "strategy/bitbucket" require_relative "strategy/cpan" +require_relative "strategy/electron_builder" require_relative "strategy/git" require_relative "strategy/github_latest" require_relative "strategy/gnome"
true
Other
Homebrew
brew
f422b6cdc4a4ee3a6fb3f353f2bc3512ef4e25e3.json
livecheck/strategy: add ElectronBuilder strategy
Library/Homebrew/livecheck/strategy/electron_builder.rb
@@ -0,0 +1,75 @@ +# typed: false +# frozen_string_literal: true + +module Homebrew + module Livecheck + module Strategy + # The {ElectronBuilder} strategy fetches content at a URL and parses + # it as an electron-builder appcast in YAML format. + # + # @api private + class ElectronBuilder +...
true
Other
Homebrew
brew
f422b6cdc4a4ee3a6fb3f353f2bc3512ef4e25e3.json
livecheck/strategy: add ElectronBuilder strategy
Library/Homebrew/test/livecheck/strategy/electron_builder_spec.rb
@@ -0,0 +1,50 @@ +# typed: false +# frozen_string_literal: true + +require "livecheck/strategy/electron_builder" + +describe Homebrew::Livecheck::Strategy::ElectronBuilder do + subject(:electron_builder) { described_class } + + let(:valid_url) { "https://www.example.com/example/latest-mac.yml" } + let(:invalid_url) ...
true
Other
Homebrew
brew
dab04e33217403ab44553308999de8e6e1c4a8c0.json
utils/popen: redirect stderr to /dev/null rather than close
Library/Homebrew/utils/popen.rb
@@ -50,7 +50,7 @@ def self.popen(args, mode, options = {}) yield pipe else - options[:err] ||= :close unless ENV["HOMEBREW_STDERR"] + options[:err] ||= "/dev/null" unless ENV["HOMEBREW_STDERR"] begin exec(*args, options) rescue Errno::ENOENT
false
Other
Homebrew
brew
14f5eb43cf9f4147a494791abd61a1c7cb0cff32.json
Render shell in issue templates. This will render nicer and use monospace in the form field.
.github/ISSUE_TEMPLATE/bug.yml
@@ -1,5 +1,5 @@ name: New issue for Reproducible Bug -about: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate." +description: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate." labels: bug issue_body: false body: @@ ...
true
Other
Homebrew
brew
14f5eb43cf9f4147a494791abd61a1c7cb0cff32.json
Render shell in issue templates. This will render nicer and use monospace in the form field.
.github/ISSUE_TEMPLATE/feature.yml
@@ -1,5 +1,5 @@ name: New issue for Feature Suggestion -about: Request our thoughts on your suggestion for a new feature for Homebrew. +description: Request our thoughts on your suggestion for a new feature for Homebrew. labels: features issue_body: false body:
true
Other
Homebrew
brew
40d09f59b600606c557437b3f9bbb58fea827f26.json
Replace tab with spaces and align indent
Library/Homebrew/cmd/update.sh
@@ -664,7 +664,7 @@ EOS brew update-report "$@" return $? elif [[ -z "$HOMEBREW_UPDATE_PREINSTALL" && - -z "$HOMEBREW_QUIET" ]] + -z "$HOMEBREW_QUIET" ]] then echo "Already up-to-date." fi
false
Other
Homebrew
brew
5f92d002443a4fce6aa3d6cae6863e43282d6bd9.json
bump-cask-pr: support separate downloads for Intel and ARM
Library/Homebrew/dev-cmd/bump-cask-pr.rb
@@ -125,10 +125,28 @@ def bump_cask_pr tmp_config = cask.config tmp_url = tmp_cask.url.to_s - if new_hash.nil? && old_hash != :no_check - resource_path = fetch_resource(cask, new_version, tmp_url) - Utils::Tar.validate_file(resource_path) - new_hash = resource_path....
false
Other
Homebrew
brew
a8522c6db6cb5b78f132fa782d9830cbdc32d4d0.json
test/cask/audit_spec: add test for slashes in versions
Library/Homebrew/test/cask/audit_spec.rb
@@ -1011,5 +1011,24 @@ def tmp_cask(name, text) expect(audit.cask.url.cookies).to eq "foo" => "bar" end end + + context "when the version contains a slash" do + let(:cask_token) { "foo" } + let(:cask) do + tmp_cask cask_token.to_s, <<~RUBY + cask '#{cask_token}' do + ...
false
Other
Homebrew
brew
aceb02125461be3f2224fa31fa5b9c3090d5d2d7.json
Move existence check into helper script This way, it'll run as `root`, too.
Library/Homebrew/cask/pkg.rb
@@ -111,6 +111,10 @@ def special?(path) set -euo pipefail for path in "${@}"; do + if [[ ! -e "${path}" ]]; then + continue + fi + if [[ -e "${path}/.DS_Store" ]]; then /bin/rm -f "${path}/.DS_Store" fi @@ -135,8 +139,6 @@ def special?(path) sig...
false
Other
Homebrew
brew
7a22cda8ddc5dcd8304beab7767132bd4dcdafb9.json
Fix broken rmdir script Unfortunately, the removal shell script introduced in #10860 does not handle paths very well that dont exist, e.g. * `find` runs before its `-exec` test, thus throws `find: "${path}": No such file or directory` * it seem that `/bin/rmdir` is intended to break is certain cases, thus `-f` is ...
Library/Homebrew/cask/pkg.rb
@@ -135,6 +135,8 @@ def special?(path) sig { params(path: T.any(Pathname, T::Array[Pathname])).void } def rmdir(path) + return unless path.exist? + @command.run!( "/usr/bin/xargs", args: ["-0", "--", "/bin/bash", "-c", RMDIR_SH, "--"],
false
Other
Homebrew
brew
7fc52d20655522f7d984174b37c675796ee1abad.json
github_packages: fix HOMEBREW_BOTTLE_DOMAIN usage. This still worked but ended up always having a `/bottles-*/` part of the URL that was unnecessary when using `HOMEBREW_BOTTLE_DOMAIN`.
Library/Homebrew/github_packages.rb
@@ -13,7 +13,8 @@ class GitHubPackages include Context include Utils::Curl - URL_REGEX = %r{https://ghcr.io/v2/([\w-]+)/([\w-]+)}.freeze + URL_PREFIX = "https://ghcr.io/v2/" + URL_REGEX = %r{#{Regexp.escape(URL_PREFIX)}([\w-]+)/([\w-]+)}.freeze sig { returns(String) } def inspect
true
Other
Homebrew
brew
7fc52d20655522f7d984174b37c675796ee1abad.json
github_packages: fix HOMEBREW_BOTTLE_DOMAIN usage. This still worked but ended up always having a `/bottles-*/` part of the URL that was unnecessary when using `HOMEBREW_BOTTLE_DOMAIN`.
Library/Homebrew/software_spec.rb
@@ -379,7 +379,11 @@ def prefix=(prefix) def root_url(var = nil, specs = {}) if var.nil? - @root_url ||= "#{Homebrew::EnvConfig.bottle_domain}/#{Utils::Bottles::Bintray.repository(tap)}" + @root_url ||= if Homebrew::EnvConfig.bottle_domain.start_with?(GitHubPackages::URL_PREFIX) + "#{GitHubPa...
true
Other
Homebrew
brew
1a4874dc6253f2eb2d077fbfc40ae88457a4ba40.json
Simplify package uninstallation.
Library/Homebrew/cask/pkg.rb
@@ -32,9 +32,7 @@ def uninstall odebug "Deleting pkg files" @command.run!( "/usr/bin/xargs", - args: [ - "-0", "--", "/bin/rm", "--" - ], + args: ["-0", "--", "/bin/rm", "--"], input: pkgutil_bom_files.join("\0"), sudo: true, ...
true
Other
Homebrew
brew
1a4874dc6253f2eb2d077fbfc40ae88457a4ba40.json
Simplify package uninstallation.
Library/Homebrew/test/cask/pkg_spec.rb
@@ -93,6 +93,15 @@ allow(pkg).to receive(:root).and_return(fake_root) allow(pkg).to receive(:forget) + # This is expected to fail in tests since we don't use `sudo`. + allow(fake_system_command).to receive(:run!).and_call_original + expect(fake_system_command).to receive(:run!).with( + ...
true
Other
Homebrew
brew
fa8b80747ac6e33904b1b6e2b95232aa22bf90d5.json
test/formula_installer_spec: add tests for cyclic deps
Library/Homebrew/test/formula_installer_spec.rb
@@ -96,40 +96,97 @@ def temporary_install(formula, **options) end end - specify "check installation sanity pinned dependency" do - dep_name = "dependency" - dep_path = CoreTap.new.formula_dir/"#{dep_name}.rb" - dep_path.write <<~RUBY - class #{Formulary.class_s(dep_name)} < Formula - url...
false
Other
Homebrew
brew
0ad4d8162961f19ae71eb6380fb65207f1ae6b9f.json
Update RBI files for rubocop-sorbet.
Library/Homebrew/sorbet/rbi/gems/rubocop-sorbet@0.6.0.rbi
@@ -72,27 +72,30 @@ RuboCop::Cop::Sorbet::EnforceSigilOrder::MAGIC_REGEX = T.let(T.unsafe(nil), Rege RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil), Hash) class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::SignatureCop + def initialize(config = T.unsafe(nil), op...
false
Other
Homebrew
brew
7a19eed48d715a9d4456b435b20283123f8f37c0.json
update-python-resources: include wheel in resources
Library/Homebrew/utils/pypi.rb
@@ -182,7 +182,7 @@ def update_python_resources!(formula, version: nil, package_name: nil, extra_pac extra_packages = (extra_packages || []).map { |p| Package.new p } exclude_packages = (exclude_packages || []).map { |p| Package.new p } - exclude_packages += %W[#{main_package.name} argparse pip setuptool...
false
Other
Homebrew
brew
0e97793f9196279ef44d327571cf31617da2195e.json
test/completions: modify tests for zsh completions
Library/Homebrew/test/completions_spec.rb
@@ -321,7 +321,8 @@ def delete_completions_setting(setting: "linkcompletions") '--hide[Act as if none of the specified hidden are installed. hidden should be a comma-separated list of formulae]' \\ '--quiet[Make some output more quiet]' \\ '--verbose[Make some output more ve...
false
Other
Homebrew
brew
b66b461811d50519af23ca59ee5da7154655328d.json
Expand quiet checks in update and update-report
Library/Homebrew/cmd/update-report.rb
@@ -129,15 +129,15 @@ def update_report if hub.empty? puts_stdout_or_stderr "No changes to formulae." unless args.quiet? else - hub.dump(updated_formula_report: !args.preinstall?) + hub.dump(updated_formula_report: !args.preinstall?) unless args.quiet? hub.reporters.each(&:...
true
Other
Homebrew
brew
b66b461811d50519af23ca59ee5da7154655328d.json
Expand quiet checks in update and update-report
Library/Homebrew/cmd/update.sh
@@ -308,13 +308,15 @@ homebrew-update() { -\?|-h|--help|--usage) brew help update; exit $? ;; --verbose) HOMEBREW_VERBOSE=1 ;; --debug) HOMEBREW_DEBUG=1 ;; + --quiet) HOMEBREW_QUIET=1 ;; --merge) ...
true
Other
Homebrew
brew
721949bf94b4020ac2c791f1320a6357b21e6a37.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
@@ -7990,6 +7990,11 @@ module GitHub::Actions extend ::T::Private::Methods::SingletonMethodHooks end +class GitHubPackages + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + class GitHubReleases extend ::T::Private::Methods::MethodHooks extend ::T::Pri...
false
Other
Homebrew
brew
267040e5df2ea6981d07e4f1d39a26a4c46eee5c.json
bugfix: Add args and options to lazy url block
Library/Homebrew/cask/dsl.rb
@@ -181,7 +181,11 @@ def url(*args, **options) set_unique_stanza(:url, args.empty? && options.empty? && !block_given?) do if block_given? - LazyObject.new { URL.new(*yield, from_block: true, caller_location: caller_location) } + LazyObject.new do + *args = yield + ...
true
Other
Homebrew
brew
267040e5df2ea6981d07e4f1d39a26a4c46eee5c.json
bugfix: Add args and options to lazy url block
Library/Homebrew/test/cask/audit_spec.rb
@@ -981,5 +981,35 @@ def tmp_cask(name, text) it { is_expected.to fail_with(/a homepage stanza is required/) } end + + context "when url is lazy" do + let(:strict) { true } + let(:cask_token) { "with-lazy" } + let(:cask) do + tmp_cask cask_token.to_s, <<~RUBY + cask '#{ca...
true
Other
Homebrew
brew
7d8970213c8d82effb46bc57a1a7c49da188eeee.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/gems/nokogiri@1.11.2.rbi
@@ -621,9 +621,11 @@ class Nokogiri::VersionInfo def libxml2_using_system?; end def loaded_libxml_version; end def loaded_libxslt_version; end + def ruby_minor; end def to_hash; end def to_markdown; end def warnings; end + def windows?; end class << self def instance; end @@ -1405,10 +1407...
false
Other
Homebrew
brew
75aa24fac990cef78cb63bc012d7fb1759a6d074.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
@@ -7990,6 +7990,11 @@ module GitHub::Actions extend ::T::Private::Methods::SingletonMethodHooks end +class GitHubReleases + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + module GitRepositoryExtension extend ::T::Private::Methods::MethodHooks extend...
false
Other
Homebrew
brew
e64f2d1fd49a2a689443f5654cf47bc431f0c155.json
test/exceptions_spec: add test for TapFormulaOrCaskUnavailableError
Library/Homebrew/test/exceptions_spec.rb
@@ -34,6 +34,14 @@ } end + describe TapFormulaOrCaskUnavailableError do + subject(:error) { described_class.new(tap, "foo") } + + let(:tap) { double(Tap, user: "u", repo: "r", to_s: "u/r", installed?: false) } + + its(:to_s) { is_expected.to match(%r{Please tap it and then try again: brew tap u/r}) ...
false
Other
Homebrew
brew
8c309d288664d36d79a8b6d2cf8808943d8f8544.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/parlour@6.0.0.rbi
@@ -420,8 +420,8 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject def merge_into_self(others); end sig { overridable.override.params(others: T::Array[Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) } def mergeable?(others); end - sig { params(object: T.untyped, block: T.pr...
true
Other
Homebrew
brew
8c309d288664d36d79a8b6d2cf8808943d8f8544.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/tapioca@0.4.16.rbi
@@ -126,6 +126,8 @@ module Tapioca::Compilers::Sorbet end end +Tapioca::Compilers::Sorbet::EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String) + Tapioca::Compilers::Sorbet::SORBET = T.let(T.unsafe(nil), Pathname) module Tapioca::Compilers::SymbolTable @@ -162,6 +164,8 @@ class Tapioca::Compilers::SymbolTable::Sym...
true
Other
Homebrew
brew
24af65302dafb7d554ff0adbc2593f070096f7b0.json
add pcsc-lite to uses_from_macos
Library/Homebrew/rubocops/uses_from_macos.rb
@@ -42,6 +42,7 @@ class ProvidedByMacos < FormulaCop netcat openldap openlibm + pcsc-lite pod2man rpcgen ruby
false
Other
Homebrew
brew
9cc93154a0a29ae517f9829df2fd261b419782c9.json
dev-cmd/create: add link to std_configure_args
Library/Homebrew/formula_creator.rb
@@ -156,6 +156,7 @@ def install system "cmake", ".", *std_cmake_args <% elsif mode == :autotools %> # Remove unrecognized options if warned by configure + # https://rubydoc.brew.sh/Formula.html#std_configure_args-instance_method system "./configure", *std_confi...
false
Other
Homebrew
brew
96670cedb2e84f4f741c514d0b1c3e15ef3106eb.json
formula_installer: reduce dependency expansion computations
Library/Homebrew/formula_installer.rb
@@ -517,9 +517,11 @@ def check_conflicts # Compute and collect the dependencies needed by the formula currently # being installed. def compute_dependencies - req_map, req_deps = expand_requirements - check_requirements(req_map) - expand_dependencies(req_deps + formula.deps) + @compute_dependencies ...
false
Other
Homebrew
brew
e7dba1b0712846c4c5f7c5d6ab1c8fa830168135.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
@@ -26904,11 +26904,6 @@ 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
3f64bcb2fbffc663be53b1739c1e6009be9db055.json
docs/Installation: add section for Git remote mirroring
docs/Installation.md
@@ -18,6 +18,18 @@ it does it too. You have to confirm everything it will do before it starts. [Xcode](https://itunes.apple.com/us/app/xcode/id497799835) <sup>[3](#3)</sup> * A Bourne-compatible shell for installation (e.g. `bash` or `zsh`) <sup>[4](#4)</sup> +## Git Remote Mirroring + +You can set `HOMEBREW_BREW...
false
Other
Homebrew
brew
8ddf9b37bdbf36c8c13941b343c53f86aac9b861.json
Apply suggestions from code review Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/dev-cmd/bump.rb
@@ -40,16 +40,16 @@ def bump raise UsageError, "`--limit` must be used with either `--formula` or `--cask`." end - formulae_and_casks = - if args.formula? - args.named.to_formulae - elsif args.cask? - args.named.to_casks - else - args.named.to_formulae_and_casks - ...
true
Other
Homebrew
brew
8ddf9b37bdbf36c8c13941b343c53f86aac9b861.json
Apply suggestions from code review Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/dev-cmd/livecheck.rb
@@ -61,44 +61,44 @@ def livecheck puts ENV["HOMEBREW_LIVECHECK_WATCHLIST"] if ENV["HOMEBREW_LIVECHECK_WATCHLIST"].present? end - formulae_and_casks_to_check = - if args.tap - tap = Tap.fetch(args.tap) - formulae = args.cask? ? [] : tap.formula_files.map { |path| Formulary.factory(pat...
true
Other
Homebrew
brew
8ddf9b37bdbf36c8c13941b343c53f86aac9b861.json
Apply suggestions from code review Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/livecheck/livecheck.rb
@@ -105,19 +105,20 @@ def run_checks( ambiguous_casks = [] if handle_name_conflict - ambiguous_casks = formulae_and_casks_to_check - .group_by { |item| formula_or_cask_name(item, full_name: true) } - .select { |_name, items| items.length > 1 } - ...
true
Other
Homebrew
brew
7448a6be587a84ee6a6df9c5cf81c81e5f56ac82.json
Revert "Revert "uses_from_macos: fix force_homebrew_on_linux behaviour."" This reverts commit 9ad37ddc36c8438db97fdb3e4484d724e06eaffe.
Library/Homebrew/extend/os/mac/software_spec.rb
@@ -1,6 +1,8 @@ # typed: false # frozen_string_literal: true +# The Library/Homebrew/extend/os/software_spec.rb conditional logic will need to be more nuanced +# if this file ever includes more than `uses_from_macos`. class SoftwareSpec undef uses_from_macos
true
Other
Homebrew
brew
7448a6be587a84ee6a6df9c5cf81c81e5f56ac82.json
Revert "Revert "uses_from_macos: fix force_homebrew_on_linux behaviour."" This reverts commit 9ad37ddc36c8438db97fdb3e4484d724e06eaffe.
Library/Homebrew/extend/os/software_spec.rb
@@ -1,8 +1,9 @@ # typed: strict # frozen_string_literal: true -if OS.linux? - require "extend/os/linux/software_spec" -elsif OS.mac? +# This logic will need to be more nuanced if this file includes more than `uses_from_macos`. +if OS.mac? || Homebrew::EnvConfig.force_homebrew_on_linux? require "extend/os/mac/so...
true
Other
Homebrew
brew
e1da637f9aab7e23a5b3eb22bdf7a9f514b2fe92.json
test/hardware/cpu_spec: add missing families
Library/Homebrew/test/hardware/cpu_spec.rb
@@ -22,6 +22,12 @@ describe "::family" do let(:cpu_families) { [ + :amd_k7, + :amd_k8, + :amd_k8_k10_hybrid, + :amd_k10, + :amd_k12, + :arm, :arm_firestorm_icestorm, :arm_hurricane_zephyr, :arm_lightning_thunder, @@ -30,22 +36,29 @@ ...
false
Other
Homebrew
brew
ab0e427d3eb6ff71b6034541138348d1a5025ddd.json
Disambiguate formulae/casks from different taps
Library/Homebrew/dev-cmd/bump.rb
@@ -16,6 +16,8 @@ def bump_args Display out-of-date brew formulae and the latest version available. Also displays whether a pull request has been opened with the URL. EOS + switch "--full-name", + description: "Print formulae/casks with fully-qualified names." switch "--...
true
Other
Homebrew
brew
ab0e427d3eb6ff71b6034541138348d1a5025ddd.json
Disambiguate formulae/casks from different taps
Library/Homebrew/livecheck/livecheck.rb
@@ -112,6 +112,14 @@ def run_checks( .select { |item| item.is_a?(Cask::Cask) } end + ambiguous_names = [] + unless full_name + ambiguous_names = (formulae_and_casks_to_check - ambiguous_casks) + .group_by { |item| formula_or_cask_name(item) }...
true
Other
Homebrew
brew
7d5216c500a5754da766937de3d61ebf8d70d643.json
Improve formula/cask disambiguation
Library/Homebrew/dev-cmd/bump.rb
@@ -51,6 +51,15 @@ def bump if formulae_and_casks Livecheck.load_other_tap_strategies(formulae_and_casks) + ambiguous_casks = [] + if !args.formula? && !args.cask? + ambiguous_casks = formulae_and_casks + .group_by { |item| Livecheck.formula_or_cask_name(item, ful...
true
Other
Homebrew
brew
7d5216c500a5754da766937de3d61ebf8d70d643.json
Improve formula/cask disambiguation
Library/Homebrew/dev-cmd/livecheck.rb
@@ -105,7 +105,7 @@ def livecheck options = { json: args.json?, full_name: args.full_name?, - handle_name_conflict: !args.cask?, + handle_name_conflict: !args.formula? && !args.cask?, newer_only: args.newer_only?, quiet: args...
true
Other
Homebrew
brew
7d5216c500a5754da766937de3d61ebf8d70d643.json
Improve formula/cask disambiguation
Library/Homebrew/livecheck/livecheck.rb
@@ -63,7 +63,7 @@ def livecheck_strategy_names # Uses `formulae_and_casks_to_check` to identify taps in use other than # homebrew/core and homebrew/cask and loads strategies from them. - sig { params(formulae_and_casks_to_check: T::Enumerable[T.any(Formula, Cask::Cask)]).void } + sig { params(formulae...
true
Other
Homebrew
brew
f11786d63d4287c85a5298353467b89bfe9398b0.json
Apply suggestions from code review Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Library/Homebrew/dev-cmd/bump.rb
@@ -161,18 +161,17 @@ def retrieve_and_display_info(formula_or_cask, name, repositories, args:) livecheck_latest = livecheck_result(formula_or_cask) pull_requests = retrieve_pull_requests(formula_or_cask, name) unless args.no_pull_requests? - print_name = begin - "#{name} (cask)" if formula_or_cask....
true
Other
Homebrew
brew
f11786d63d4287c85a5298353467b89bfe9398b0.json
Apply suggestions from code review Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
Library/Homebrew/livecheck/livecheck.rb
@@ -125,12 +125,6 @@ def run_checks( formula = formula_or_cask if formula_or_cask.is_a?(Formula) cask = formula_or_cask if formula_or_cask.is_a?(Cask::Cask) name = formula_or_cask_name(formula_or_cask, full_name: full_name) - print_name = begin - "#{name} (cask)" if cask && Fo...
true
Other
Homebrew
brew
d68452f2320c726c3bf602318dc85c3230d6f00e.json
rubocops/patches: autocorrect some offenses
Library/Homebrew/rubocops/patches.rb
@@ -11,6 +11,7 @@ module FormulaAudit # TODO: Many of these could be auto-corrected. class Patches < FormulaCop extend T::Sig + extend AutoCorrector def audit_formula(node, _class_node, _parent_class_node, body) @full_source_content = source_buffer(node).source @@ -40...
true
Other
Homebrew
brew
d68452f2320c726c3bf602318dc85c3230d6f00e.json
rubocops/patches: autocorrect some offenses
Library/Homebrew/test/rubocops/patches_spec.rb
@@ -54,33 +54,28 @@ def patches expected_offense = if patch_url.include?("/raw.github.com/") expect_offense_hash message: <<~EOS.chomp, severity: :convention, line: 5, column: 4, source: source - GitHub/Gist patches should specify a revision: - #{patch_url} + Git...
true
Other
Homebrew
brew
1377db534d78fe89e88a1737754370739b24365f.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.11.0.rbi
@@ -2572,6 +2572,7 @@ class RuboCop::Cop::Layout::FirstArgumentIndentation < ::RuboCop::Cop::Cop private def argument_alignment_config; end + def bare_operator?(node); end def base_indentation(node); end def base_range(send_node, arg_node); end def column_of(range); end @@ -8482,8 +8483,10 @@ class Ru...
false
Other
Homebrew
brew
a3ed481b9e5cacf59ced21d25cd994fbe92ff191.json
Revert "Revert "shims/mac/super: add ruby shims to set SDKROOT"" This reverts commit fe992cab2b943269e39e8f9f5830f4983c440e8b.
.github/workflows/tests.yml
@@ -276,7 +276,7 @@ jobs: - name: Install brew tests dependencies run: | brew install subversion - Library/Homebrew/shims/scm/svn --homebrew=print-path + brew sh -c "svn --homebrew=print-path" which svn which svnadmin
true
Other
Homebrew
brew
a3ed481b9e5cacf59ced21d25cd994fbe92ff191.json
Revert "Revert "shims/mac/super: add ruby shims to set SDKROOT"" This reverts commit fe992cab2b943269e39e8f9f5830f4983c440e8b.
Library/Homebrew/shims/mac/super/gem
@@ -0,0 +1 @@ +ruby \ No newline at end of file
true
Other
Homebrew
brew
a3ed481b9e5cacf59ced21d25cd994fbe92ff191.json
Revert "Revert "shims/mac/super: add ruby shims to set SDKROOT"" This reverts commit fe992cab2b943269e39e8f9f5830f4983c440e8b.
Library/Homebrew/shims/mac/super/rake
@@ -0,0 +1 @@ +ruby \ No newline at end of file
true
Other
Homebrew
brew
a3ed481b9e5cacf59ced21d25cd994fbe92ff191.json
Revert "Revert "shims/mac/super: add ruby shims to set SDKROOT"" This reverts commit fe992cab2b943269e39e8f9f5830f4983c440e8b.
Library/Homebrew/shims/mac/super/ruby
@@ -0,0 +1,12 @@ +#!/bin/bash +# System Ruby's mkmf on Mojave (10.14) and later require SDKROOT set to work correctly. + +source "$HOMEBREW_LIBRARY/Homebrew/shims/utils.sh" + +try_exec_non_system "$SHIM_FILE" "$@" + +if [[ -z "$SDKROOT" && -n "$HOMEBREW_SDKROOT" ]]; then + export SDKROOT=$HOMEBREW_SDKROOT +fi + +safe_...
true
Other
Homebrew
brew
a3ed481b9e5cacf59ced21d25cd994fbe92ff191.json
Revert "Revert "shims/mac/super: add ruby shims to set SDKROOT"" This reverts commit fe992cab2b943269e39e8f9f5830f4983c440e8b.
Library/Homebrew/shims/scm/git
@@ -3,87 +3,15 @@ # This script because we support $HOMEBREW_GIT, $HOMEBREW_SVN, etc., Xcode-only and # no Xcode/CLT configurations. Order is careful to be what the user would want. -set +o posix - -quiet_safe_cd() { - cd "$1" >/dev/null || { echo "Error: failed to cd to $1" >&2; exit 1; } -} - -absdir() { - quie...
true
Other
Homebrew
brew
a3ed481b9e5cacf59ced21d25cd994fbe92ff191.json
Revert "Revert "shims/mac/super: add ruby shims to set SDKROOT"" This reverts commit fe992cab2b943269e39e8f9f5830f4983c440e8b.
Library/Homebrew/shims/utils.sh
@@ -0,0 +1,94 @@ +set +o posix + +quiet_safe_cd() { + cd "$1" >/dev/null || { echo "Error: failed to cd to $1" >&2; exit 1; } +} + +absdir() { + quiet_safe_cd "${1%/*}/" && pwd -P +} + +dirbasepath() { + local dir="$1" + local base="${2##*/}" + echo "$dir/$base" +} + +realpath() { + local path="$1" + local dir +...
true
Other
Homebrew
brew
e92d67d15c9d00bce05504dedc52491c8be71925.json
Add initial documentation for Java-based packages
docs/Homebrew-and-Java.md
@@ -0,0 +1,9 @@ +# Homebrew and Java + +This page describes how Java is handled in Homebrew for users. Prospective formula authors may refer to existing Java-based formulae for examples of how to install packages written in Java via Homebrew, or visit the [Homebrew discussion forum](https://github.com/Homebrew/discussi...
false
Other
Homebrew
brew
fe992cab2b943269e39e8f9f5830f4983c440e8b.json
Revert "shims/mac/super: add ruby shims to set SDKROOT"
.github/workflows/tests.yml
@@ -276,7 +276,7 @@ jobs: - name: Install brew tests dependencies run: | brew install subversion - brew sh -c "svn --homebrew=print-path" + Library/Homebrew/shims/scm/svn --homebrew=print-path which svn which svnadmin
true
Other
Homebrew
brew
fe992cab2b943269e39e8f9f5830f4983c440e8b.json
Revert "shims/mac/super: add ruby shims to set SDKROOT"
Library/Homebrew/shims/mac/super/gem
@@ -1 +0,0 @@ -ruby \ No newline at end of file
true
Other
Homebrew
brew
fe992cab2b943269e39e8f9f5830f4983c440e8b.json
Revert "shims/mac/super: add ruby shims to set SDKROOT"
Library/Homebrew/shims/mac/super/rake
@@ -1 +0,0 @@ -ruby \ No newline at end of file
true
Other
Homebrew
brew
fe992cab2b943269e39e8f9f5830f4983c440e8b.json
Revert "shims/mac/super: add ruby shims to set SDKROOT"
Library/Homebrew/shims/mac/super/ruby
@@ -1,12 +0,0 @@ -#!/bin/bash -# System Ruby's mkmf on Mojave (10.14) and later require SDKROOT set to work correctly. - -source "$HOMEBREW_LIBRARY/Homebrew/shims/utils.sh" - -try_exec_non_system "$SHIM_FILE" "$@" - -if [[ -z "$SDKROOT" && -n "$HOMEBREW_SDKROOT" ]]; then - export SDKROOT=$HOMEBREW_SDKROOT -fi - -safe_...
true
Other
Homebrew
brew
fe992cab2b943269e39e8f9f5830f4983c440e8b.json
Revert "shims/mac/super: add ruby shims to set SDKROOT"
Library/Homebrew/shims/scm/git
@@ -3,15 +3,87 @@ # This script because we support $HOMEBREW_GIT, $HOMEBREW_SVN, etc., Xcode-only and # no Xcode/CLT configurations. Order is careful to be what the user would want. -if [ -z "$HOMEBREW_LIBRARY" ] +set +o posix + +quiet_safe_cd() { + cd "$1" >/dev/null || { echo "Error: failed to cd to $1" >&2; exi...
true
Other
Homebrew
brew
fe992cab2b943269e39e8f9f5830f4983c440e8b.json
Revert "shims/mac/super: add ruby shims to set SDKROOT"
Library/Homebrew/shims/utils.sh
@@ -1,94 +0,0 @@ -set +o posix - -quiet_safe_cd() { - cd "$1" >/dev/null || { echo "Error: failed to cd to $1" >&2; exit 1; } -} - -absdir() { - quiet_safe_cd "${1%/*}/" && pwd -P -} - -dirbasepath() { - local dir="$1" - local base="${2##*/}" - echo "$dir/$base" -} - -realpath() { - local path="$1" - local dir -...
true
Other
Homebrew
brew
e3505247cb7cea608aa202d20beec6adc3df630a.json
formula_installer: fix typo in install_dependency The linked_keg variable is referenced outside the block where it is defined; I think it should be the installed_keg variable.
Library/Homebrew/formula_installer.rb
@@ -718,7 +718,7 @@ def install_dependency(dep, inherited_options) if df.latest_version_installed? installed_keg = Keg.new(df.prefix) - tab ||= Tab.for_keg(linked_keg) + tab ||= Tab.for_keg(installed_keg) tmp_keg = Pathname.new("#{installed_keg}.tmp") installed_keg.rename(tmp_keg) ...
false
Other
Homebrew
brew
9a1d1b4847efe820a395b3948bebc7b164ef3ca6.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.10.1.rbi
@@ -492,11 +492,14 @@ class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::C def new_argument(block_argument, block_body); end def offense_range(node); end + def same_block_argument_and_is_a_argument?(block_body, block_argument); end def use_equality_comparison_block?(block_body); ...
false
Other
Homebrew
brew
d330e915d13c11a4701c7e9e159a93140cfac7cd.json
download_strategy: add comment about Content-Disposition handling
Library/Homebrew/download_strategy.rb
@@ -458,6 +458,9 @@ def resolve_url_basename_time_file_size(url) filename = URI.decode_www_form_component(encoded_filename).encode(encoding) if encoding && encoded_filename end + # Servers may include '/' in their Content-Disposition filename header. Take only the basename of this, because: + ...
false
Other
Homebrew
brew
03e761079c1a4d9cad6aa1b1426a49c998e643bf.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.1.1.rbi
@@ -84,6 +84,10 @@ class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base def match_length; end def referenced_expression; end def referenced_expression=(_arg0); end + + private + + def initialize_copy(orig); end end class Regexp::Expression::Backreference::Name < ::Regexp::Expression...
true
Other
Homebrew
brew
03e761079c1a4d9cad6aa1b1426a49c998e643bf.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.10.0.rbi
@@ -238,7 +238,7 @@ class RuboCop::Cop::Performance::ConstantRegexp < ::RuboCop::Cop::Base private def include_interpolated_const?(node); end - def within_const_assignment?(node); end + def within_allowed_assignment?(node); end end RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), Stri...
true
Other
Homebrew
brew
a6711b0d65bbe98041371cbfbabc2e665cca86ed.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
@@ -3596,7 +3596,6 @@ class Bundler::Retry end class Bundler::RubyGemsGemInstaller - def initialize(gem, options=T.unsafe(nil)); end end class Bundler::RubyGemsGemInstaller
false
Other
Homebrew
brew
30ce9b92e8664474b5c3527c482aad08eafbfdce.json
utils/gems: add installed gems to $LOAD_PATH
Library/Homebrew/utils/gems.rb
@@ -70,15 +70,31 @@ def setup_gem_environment!(gem_home: nil, gem_bindir: nil, setup_path: true) paths.unshift(gem_bindir) unless paths.include?(gem_bindir) paths.unshift(ruby_bindir) unless paths.include?(ruby_bindir) ENV["PATH"] = paths.compact.join(":") + + # Set envs so the above binaries can be i...
false
Other
Homebrew
brew
0eb58dcc173a03213c628e1c0466193af5af2162.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
@@ -3596,6 +3596,7 @@ class Bundler::Retry end class Bundler::RubyGemsGemInstaller + def initialize(gem, options=T.unsafe(nil)); end end class Bundler::RubyGemsGemInstaller @@ -8047,6 +8048,8 @@ end module Homebrew::Assertions include ::Minitest::Assertions + def assert_include(*args); end + def asse...
false
Other
Homebrew
brew
31a95d21bebda5f091ec3106fe347c9fb23aec9b.json
Dockerfile: add gawk dependency This is needed to build glibc on CI
Dockerfile
@@ -14,6 +14,7 @@ RUN apt-get update \ file \ fonts-dejavu-core \ g++ \ + gawk \ git \ less \ libz-dev \
false
Other
Homebrew
brew
a5b12a33c2160cc1ff9ca9f42171d774ec392d5a.json
utils/gems: use Gem API rather than ENV to set paths
Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb
@@ -90,11 +90,15 @@ def brew(*args) ruby_args = HOMEBREW_RUBY_EXEC_ARGS.dup if ENV["HOMEBREW_TESTS_COVERAGE"] simplecov_spec = Gem.loaded_specs["simplecov"] - specs = [simplecov_spec] - simplecov_spec.runtime_dependencies.each do |dep| - specs += dep.to_specs - rescu...
true
Other
Homebrew
brew
a5b12a33c2160cc1ff9ca9f42171d774ec392d5a.json
utils/gems: use Gem API rather than ENV to set paths
Library/Homebrew/utils/gems.rb
@@ -53,17 +53,15 @@ def odie_if_defined(message) def setup_gem_environment!(gem_home: nil, gem_bindir: nil, setup_path: true) # Match where our bundler gems are. gem_home ||= "#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/vendor/bundle/ruby/#{RbConfig::CONFIG["ruby_version"]}" - ENV["GEM_HOME"] = gem_home - EN...
true
Other
Homebrew
brew
a5b12a33c2160cc1ff9ca9f42171d774ec392d5a.json
utils/gems: use Gem API rather than ENV to set paths
Library/Homebrew/utils/rubocop.rb
@@ -2,6 +2,9 @@ # typed: false # frozen_string_literal: true +require_relative "gems" +Homebrew.setup_gem_environment! + require_relative "../warnings" Warnings.ignore :parser_syntax do
true
Other
Homebrew
brew
26aa1669d76c5731ea7f1eb6dab3b055df00908c.json
docs/New-Maintainer-Checklist.md: remove automated steps
docs/New-Maintainer-Checklist.md
@@ -18,7 +18,7 @@ issues, or reviewing user pull requests. You should also be making contributions to Homebrew at least once per quarter. You should watch or regularly check Homebrew/brew and/or -Homebrew/homebrew-core and/or Homebrew/homebrew-cask. Let us know which so we +Homebrew/homebrew-core and/or Homebrew/h...
false
Other
Homebrew
brew
1d003e5d8a292443d4489acd2ec80e1f4d2b3476.json
formula_assertions: add assert_not_match compat There are some formulae using this method: https://github.com/Homebrew/homebrew-core/search?q=assert_not_match&type=
Library/Homebrew/formula_assertions.rb
@@ -28,6 +28,7 @@ def assertions assert_not_includes: :refute_includes, assert_not_instance_of: :refute_instance_of, assert_not_kind_of: :refute_kind_of, + assert_not_match: :refute_match, assert_no_match: :refute_match, assert_not_nil: :refute_nil, ...
false
Other
Homebrew
brew
95d18132d332e2377f29decac4e09625d8bebed3.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
@@ -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 ...
true
Other
Homebrew
brew
95d18132d332e2377f29decac4e09625d8bebed3.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/todo.rbi
@@ -9,5 +9,3 @@ module T::InterfaceWrapper::Helpers; end module T::Private::Abstract::Hooks; end module T::Private::Methods::MethodHooks; end module T::Private::Methods::SingletonMethodHooks; end -module Test::Unit::AssertionFailedError; end -module Test::Unit::Assertions; end
true
Other
Homebrew
brew
7a40f1bf0abe181499b4addcfd4d6a6041726a32.json
os/mac: fix version error for prerelease macOS
Library/Homebrew/os/mac.rb
@@ -25,7 +25,7 @@ module Mac # This can be compared to numerics, strings, or symbols # using the standard Ruby Comparable methods. def version - @version ||= Version.from_symbol(full_version.to_sym) + @version ||= full_version.strip_patch end # This can be compared to numerics, stri...
false