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 | 4836ea0ba2119619697af87edf5fdb2280e90238.json | Remove XQuartz handling | Library/Homebrew/test/support/fixtures/cask/Casks/invalid/invalid-depends-on-x11-value.rb | @@ -1,11 +0,0 @@
-cask "invalid-depends-on-x11-value" do
- version "1.2.3"
- sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"
-
- url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
- homepage "https://brew.sh/invalid-depends-on-x11-value"
-
- depends_on x11: :no_such_value
-
- app "Caffei... | true |
Other | Homebrew | brew | 92ef8f5c0d1f5eb3c26be0d92cf058d705aac985.json | `cask/audit`: fix arg handling | Library/Homebrew/cask/audit.rb | @@ -27,15 +27,16 @@ def initialize(cask, appcast: nil, download: nil, quarantine: nil,
new_cask: nil)
# `new_cask` implies `online` and `strict`
- online = new_cask if online.nil?
- strict = new_cask if strict.nil?
+ online = new_cask if online.blank?
+ strict = new_cask... | true |
Other | Homebrew | brew | 92ef8f5c0d1f5eb3c26be0d92cf058d705aac985.json | `cask/audit`: fix arg handling | manpages/brew.1 | @@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "BREW" "1" "October 2021" "Homebrew" "brew"
+.TH "BREW" "1" "November 2021" "Homebrew" "brew"
.
.SH "NAME"
\fBbrew\fR \- The Missing Package Manager for macOS (or Linux) | true |
Other | Homebrew | brew | 0b459aebda7443d62a4ef6b4f8455e0ce8804791.json | Update RBI files for i18n. | Library/Homebrew/sorbet/rbi/gems/i18n@1.8.11.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `i18n` gem.
# Please instead update this file by running `bin/tapioca gem i18n`.
-# typed: true
-
module I18n
extend ::I18n::Base
| false |
Other | Homebrew | brew | 952ef77fe1411af82cb1a7f48c688836d9853cf3.json | Update RBI files for rspec-support. | Library/Homebrew/sorbet/rbi/gems/rspec-support@3.10.3.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rspec-support` gem.
# Please instead update this file by running `bin/tapioca gem rspec-support`.
-# typed: true
-
module RSpec
extend ::RSpec::Support::Warnings
extend ::RSpec::Core::Warning... | false |
Other | Homebrew | brew | 77273fe2b3b56ab84dce4d03b47b1129c949e19e.json | Cask::Audit: Handle referenced cask in livecheck
`Cask::Audit#check_livecheck_version` was never updated to handle
a referenced cask in a `livecheck` block (e.g., `cask "other-cask"`).
As a result, this audit will wrongly give an error like `Version
'1.2.3' differs from '' retrieved by livecheck.` in this scenario.
T... | Library/Homebrew/cask/audit.rb | @@ -553,11 +553,24 @@ def check_download
def check_livecheck_version
return unless appcast?
+ referenced_cask, = Homebrew::Livecheck.resolve_livecheck_reference(cask)
+
+ # Respect skip conditions for a referenced cask
+ if referenced_cask
+ skip_info = Homebrew::Livecheck::SkipCondi... | true |
Other | Homebrew | brew | 77273fe2b3b56ab84dce4d03b47b1129c949e19e.json | Cask::Audit: Handle referenced cask in livecheck
`Cask::Audit#check_livecheck_version` was never updated to handle
a referenced cask in a `livecheck` block (e.g., `cask "other-cask"`).
As a result, this audit will wrongly give an error like `Version
'1.2.3' differs from '' retrieved by livecheck.` in this scenario.
T... | Library/Homebrew/test/cask/audit_spec.rb | @@ -421,23 +421,47 @@ def tmp_cask(name, text)
it { is_expected.not_to fail_with(message) }
end
+ context "when the Cask has a livecheck block referencing a Cask using skip" do
+ let(:cask_token) { "livecheck/livecheck-skip-reference" }
+
+ it { is_expected.not_to fail_with(message)... | true |
Other | Homebrew | brew | 77273fe2b3b56ab84dce4d03b47b1129c949e19e.json | Cask::Audit: Handle referenced cask in livecheck
`Cask::Audit#check_livecheck_version` was never updated to handle
a referenced cask in a `livecheck` block (e.g., `cask "other-cask"`).
As a result, this audit will wrongly give an error like `Version
'1.2.3' differs from '' retrieved by livecheck.` in this scenario.
T... | Library/Homebrew/test/support/fixtures/cask/Casks/livecheck/discontinued-reference.rb | @@ -0,0 +1,18 @@
+cask "discontinued-reference" do
+ version "1.2.3"
+ sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b"
+
+ # This cask is used in --online tests, so we use fake URLs to avoid impacting
+ # real servers. The URL paths are specific enough that they'll be
+ # understandable i... | true |
Other | Homebrew | brew | 77273fe2b3b56ab84dce4d03b47b1129c949e19e.json | Cask::Audit: Handle referenced cask in livecheck
`Cask::Audit#check_livecheck_version` was never updated to handle
a referenced cask in a `livecheck` block (e.g., `cask "other-cask"`).
As a result, this audit will wrongly give an error like `Version
'1.2.3' differs from '' retrieved by livecheck.` in this scenario.
T... | Library/Homebrew/test/support/fixtures/cask/Casks/livecheck/livecheck-skip-reference.rb | @@ -0,0 +1,18 @@
+cask "livecheck-skip-reference" do
+ version "1.2.3"
+ sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b"
+
+ # This cask is used in --online tests, so we use fake URLs to avoid impacting
+ # real servers. The URL paths are specific enough that they'll be
+ # understandable... | true |
Other | Homebrew | brew | 77273fe2b3b56ab84dce4d03b47b1129c949e19e.json | Cask::Audit: Handle referenced cask in livecheck
`Cask::Audit#check_livecheck_version` was never updated to handle
a referenced cask in a `livecheck` block (e.g., `cask "other-cask"`).
As a result, this audit will wrongly give an error like `Version
'1.2.3' differs from '' retrieved by livecheck.` in this scenario.
T... | Library/Homebrew/test/support/fixtures/cask/Casks/livecheck/url-unversioned-reference.rb | @@ -0,0 +1,18 @@
+cask "url-unversioned-reference" do
+ version "1.2.3"
+ sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b"
+
+ # This cask is used in --online tests, so we use fake URLs to avoid impacting
+ # real servers. The URL paths are specific enough that they'll be
+ # understandabl... | true |
Other | Homebrew | brew | 77273fe2b3b56ab84dce4d03b47b1129c949e19e.json | Cask::Audit: Handle referenced cask in livecheck
`Cask::Audit#check_livecheck_version` was never updated to handle
a referenced cask in a `livecheck` block (e.g., `cask "other-cask"`).
As a result, this audit will wrongly give an error like `Version
'1.2.3' differs from '' retrieved by livecheck.` in this scenario.
T... | Library/Homebrew/test/support/fixtures/cask/Casks/livecheck/version-latest-reference.rb | @@ -0,0 +1,18 @@
+cask "version-latest-reference" do
+ version :latest
+ sha256 :no_check
+
+ # This cask is used in --online tests, so we use fake URLs to avoid impacting
+ # real servers. The URL paths are specific enough that they'll be
+ # understandable if they appear in local server logs.
+ url "http://loca... | true |
Other | Homebrew | brew | 9a4041d0dd00dede8e8398f5910c6322559ee16b.json | Update RBI files for yard-sorbet. | Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi | @@ -49,6 +49,11 @@ end
class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
sig { void }
def process; end
+
+ class << self
+ sig { params(code_obj: String).returns(T.nilable(String)) }
+ def mixed_in_class_methods(code_obj); end
+ end
end
class YARDSorbet::Handlers::... | false |
Other | Homebrew | brew | a2cd969ddc55226f2682841c1cb530979d6b8456.json | Update RBI files for rubocop-performance. | Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.12.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rubocop-performance` gem.
# Please instead update this file by running `bin/tapioca gem rubocop-performance`.
-# typed: true
-
module RuboCop; end
module RuboCop::Cop; end
module RuboCop::Cop::Pe... | false |
Other | Homebrew | brew | aa6f10ff356e6bae2b53ee1c7cdafa26aa4c3ded.json | install, upgrade: fetch each formula only once | Library/Homebrew/formula_installer.rb | @@ -114,6 +114,15 @@ def self.clear_installed
@installed = Set.new
end
+ def self.fetched
+ @fetched ||= Set.new
+ end
+
+ sig { void }
+ def self.clear_fetched
+ @fetched = Set.new
+ end
+
sig { returns(T::Boolean) }
def build_from_source?
@build_from_source_formulae.include?(formula.fu... | true |
Other | Homebrew | brew | aa6f10ff356e6bae2b53ee1c7cdafa26aa4c3ded.json | install, upgrade: fetch each formula only once | Library/Homebrew/test/spec_helper.rb | @@ -204,6 +204,7 @@ def find_files
Requirement.clear_cache
FormulaInstaller.clear_attempted
FormulaInstaller.clear_installed
+ FormulaInstaller.clear_fetched
TEST_DIRECTORIES.each(&:mkpath)
| true |
Other | Homebrew | brew | 73bc934c85dd6fabf44076482affe267cd21c5a6.json | Caveats: suggest brew services for linux | Library/Homebrew/caveats.rb | @@ -40,7 +40,7 @@ def caveats
caveats << function_completion_caveats(shell)
end
- caveats << plist_caveats
+ caveats << service_caveats
caveats << elisp_caveats
caveats.compact.join("\n")
end
@@ -151,39 +151,53 @@ def elisp_caveats
EOS
end
- def plist_caveats
- return if !... | true |
Other | Homebrew | brew | 73bc934c85dd6fabf44076482affe267cd21c5a6.json | Caveats: suggest brew services for linux | Library/Homebrew/extend/os/caveats.rb | @@ -1,4 +0,0 @@
-# typed: strict
-# frozen_string_literal: true
-
-require "extend/os/mac/caveats" if OS.mac? | true |
Other | Homebrew | brew | 73bc934c85dd6fabf44076482affe267cd21c5a6.json | Caveats: suggest brew services for linux | Library/Homebrew/extend/os/mac/caveats.rb | @@ -1,63 +0,0 @@
-# typed: true
-# frozen_string_literal: true
-
-class Caveats
- undef plist_caveats
-
- def plist_caveats
- s = []
- return if !f.plist && !f.service? && !keg&.plist_installed?
-
- plist_domain = f.plist_path.basename(".plist")
-
- # we readlink because this path probably doesn't exist s... | true |
Other | Homebrew | brew | 73bc934c85dd6fabf44076482affe267cd21c5a6.json | Caveats: suggest brew services for linux | Library/Homebrew/test/caveats_spec.rb | @@ -33,6 +33,17 @@ def caveats
describe "#caveats" do
context "when f.plist is not nil", :needs_macos do
+ it "prints error when no launchd is present" do
+ f = formula do
+ url "foo-1.0"
+ def plist
+ "plist_test.plist"
+ end
+ end
+ allow_any_i... | true |
Other | Homebrew | brew | e6e0ba0521576ee81630bd25abe60b412a529408.json | cask cookbook: update livecheck blocks
This change causes `livecheck` to return a nicer error if no match is found from the regex. | docs/Cask-Cookbook.md | @@ -748,6 +748,8 @@ If the version depends on multiple header fields, a block can be specified, e.g.
strategy :header_match do |headers|
v = headers["content-disposition"][/MyApp-(\d+(?:\.\d+)*)\.zip/i, 1]
id = headers["location"][%r{/(\d+)/download$}i, 1]
+ next if v.blank? || id.blank?
+
"#{v},#{id}"
en... | false |
Other | Homebrew | brew | aa95c17c8ee45c1d12b0b33121d561723a738a7e.json | keg_relocate: enable Java relocation for bottles
This is a continuation of #12334. | Library/Homebrew/keg_relocate.rb | @@ -98,8 +98,8 @@ def prepare_relocation_to_placeholders
relocation.add_replacement_pair(:perl,
%r{\A#!(?:/usr/bin/perl\d\.\d+|#{HOMEBREW_PREFIX}/opt/perl/bin/perl)( |$)}o,
"#!#{PERL_PLACEHOLDER}\\1")
- # TODO: Enable relocation upon bott... | false |
Other | Homebrew | brew | 457de40117188880f15a864d1ac3dd437274ea07.json | Apply suggestions from code review
These are just a few style improvements.
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/extend/os/mac/keg_relocate.rb | @@ -172,8 +172,7 @@ def prepare_relocation_to_locations
end
relocation.add_replacement_pair(:perl, PERL_PLACEHOLDER, perl_path)
- openjdk = openjdk_dep_name_if_applicable
- if openjdk
+ if (openjdk = openjdk_dep_name_if_applicable)
openjdk_path = HOMEBREW_PREFIX/"opt"/openjdk/"libexec/openjd... | true |
Other | Homebrew | brew | 457de40117188880f15a864d1ac3dd437274ea07.json | Apply suggestions from code review
These are just a few style improvements.
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/keg_relocate.rb | @@ -116,8 +116,9 @@ def prepare_relocation_to_locations
relocation.add_replacement_pair(:repository, REPOSITORY_PLACEHOLDER, HOMEBREW_REPOSITORY.to_s)
relocation.add_replacement_pair(:library, LIBRARY_PLACEHOLDER, HOMEBREW_LIBRARY.to_s)
relocation.add_replacement_pair(:perl, PERL_PLACEHOLDER, "#{HOMEBREW... | true |
Other | Homebrew | brew | 2e78389516501a74d639498b5c99acbaf6d90ebe.json | Improve `HOMEBREW_INSTALL_FROM_API` description | Library/Homebrew/env_config.rb | @@ -191,7 +191,8 @@ module EnvConfig
},
HOMEBREW_INSTALL_FROM_API: {
description: "If set, install formulae and casks in homebrew/core and homebrew/cask taps using Homebrew's " \
- "API instead of needing (large, slow) local checkouts of these repositories.",
+ ... | true |
Other | Homebrew | brew | 2e78389516501a74d639498b5c99acbaf6d90ebe.json | Improve `HOMEBREW_INSTALL_FROM_API` description | docs/Manpage.md | @@ -2032,6 +2032,8 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
- `HOMEBREW_INSTALL_FROM_API`
<br>If set, install formulae and casks in homebrew/core and homebrew/cask taps using Homebrew's API instead of needing (large, slow) local checkouts of these repositories.
+ *Note:* Users ... | true |
Other | Homebrew | brew | 2e78389516501a74d639498b5c99acbaf6d90ebe.json | Improve `HOMEBREW_INSTALL_FROM_API` description | manpages/brew.1 | @@ -2933,6 +2933,9 @@ Print this text before the installation summary of each successful build\.
.br
If set, install formulae and casks in homebrew/core and homebrew/cask taps using Homebrew\'s API instead of needing (large, slow) local checkouts of these repositories\.
.
+.IP
+\fINote:\fR Users with developer mode ... | true |
Other | Homebrew | brew | e69fbaf3575a2a4aec529927b190815eb2fbb64d.json | bottle.rb: fix typo in go regex | Library/Homebrew/dev-cmd/bottle.rb | @@ -281,7 +281,7 @@ def formula_ignores(f)
end
if any_go_deps
go_regex = Version.formula_optionally_versioned_regex(:go, full: false)
- ignores << %r{#{cellar_regex}/#{go_regex}/[\d.]+/libexec]}
+ ignores << %r{#{cellar_regex}/#{go_regex}/[\d.]+/libexec}
end
ignores << case f.name | false |
Other | Homebrew | brew | 25e61f65dbd57836cd6a42af7c941b2a91c406df.json | cmd/update-report: check core tap is installed.
Otherwise `CoreTap.instance.linuxbrew_core?` can fail. | Library/Homebrew/cmd/update-report.rb | @@ -43,7 +43,8 @@ def update_report
args = update_report_args.parse
# Run `brew update` (again) if we've got a linuxbrew-core CoreTap
- if CoreTap.instance.linuxbrew_core? && ENV["HOMEBREW_LINUXBREW_CORE_MIGRATION"].blank?
+ if CoreTap.instance.installed? && CoreTap.instance.linuxbrew_core? &&
+ ... | false |
Other | Homebrew | brew | ce2d946a7cd11a69ea1631579bf7df0e738adf0f.json | formula_auditor: add audit for formulae with synced versions | Library/Homebrew/formula_auditor.rb | @@ -118,6 +118,31 @@ def self.aliases
@aliases ||= Formula.aliases + Formula.tap_aliases
end
+ SYNCED_VERSIONS_FORMULAE_FILE = "synced_versions_formulae.json"
+
+ def audit_synced_versions_formulae
+ synced_versions_formulae_file = formula.tap.path/SYNCED_VERSIONS_FORMULAE_FILE
+ return un... | false |
Other | Homebrew | brew | c6dbff43bdbce250415303693efa81165d03a955.json | dev-cmd/dispatch-build-bottle: allow an array of macOS runners | Library/Homebrew/cli/args.rbi | @@ -168,7 +168,7 @@ module Homebrew
sig { returns(T.nilable(String)) }
def tap; end
- sig { returns(T.nilable(String)) }
+ sig { returns(T.nilable(T::Array[String])) }
def macos; end
sig { returns(T.nilable(T::Array[String])) } | true |
Other | Homebrew | brew | c6dbff43bdbce250415303693efa81165d03a955.json | dev-cmd/dispatch-build-bottle: allow an array of macOS runners | Library/Homebrew/dev-cmd/dispatch-build-bottle.rb | @@ -21,8 +21,8 @@ def dispatch_build_bottle_args
description: "Build timeout (in minutes, default: 60)."
flag "--issue=",
description: "If specified, post a comment to this issue number if the job fails."
- flag "--macos=",
- description: "Version of macOS the bot... | true |
Other | Homebrew | brew | f96f29f68ddfd0fd43049b1448b1d0e25c050f3c.json | pr-automerge: remove linux to homebrew-core label
Merging is done, we don't use this label anymore | Library/Homebrew/dev-cmd/pr-automerge.rb | @@ -21,8 +21,7 @@ def pr_automerge_args
description: "Pull requests must have this label."
comma_array "--without-labels",
description: "Pull requests must not have these labels (default: "\
- "`do not merge`, `new formula`, `automerge-skip`, "\
- ... | false |
Other | Homebrew | brew | aad9d1898d58158058d6d84b9cb73a8965c0b51a.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -5537,6 +5537,8 @@ end
module MonitorMixin
def initialize(*args); end
+ EXCEPTION_IMMEDIATE = ::T.let(nil, ::T.untyped)
+ EXCEPTION_NEVER = ::T.let(nil, ::T.untyped)
end
class MonitorMixin::ConditionVariable | false |
Other | Homebrew | brew | f21b85857b8be1bd1d6cf572fcef2543c2e01be6.json | Update RBI files for zeitwerk. | Library/Homebrew/sorbet/rbi/gems/zeitwerk@2.5.1.rbi | @@ -22,20 +22,6 @@ module Zeitwerk
end
end
-class Zeitwerk::Autoloads
- def initialize; end
-
- def a2c; end
- def abspath_for(parent, cname); end
- def c2a; end
- def clear; end
- def cref_for(abspath); end
- def define(parent, cname, abspath); end
- def delete(abspath); end
- def each(&block); end
- d... | true |
Other | Homebrew | brew | f21b85857b8be1bd1d6cf572fcef2543c2e01be6.json | Update RBI files for zeitwerk. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -5537,6 +5537,8 @@ end
module MonitorMixin
def initialize(*args); end
+ EXCEPTION_IMMEDIATE = ::T.let(nil, ::T.untyped)
+ EXCEPTION_NEVER = ::T.let(nil, ::T.untyped)
end
class MonitorMixin::ConditionVariable | true |
Other | Homebrew | brew | ccb1628bb47f55a2cf60a3b5614d4f635dddf1e1.json | workflows/doctor: add Monterey CI | .github/workflows/doctor.yml | @@ -18,7 +18,7 @@ jobs:
tests:
strategy:
matrix:
- version: ["11-arm64", "11", "10.15", "10.14"]
+ version: ["12-arm64", "12", "11-arm64", "11", "10.15"]
fail-fast: false
runs-on: ${{ matrix.version }}
env: | false |
Other | Homebrew | brew | 0118e6ec41a4fb2e2638165fee0a4f492f19bf81.json | Apply suggestions from code review
Co-authored-by: Xuehai Pan <XuehaiPan@outlook.com> | Library/Homebrew/cmd/update-report.rb | @@ -48,7 +48,8 @@ def update_report
if ENV["HOMEBREW_CORE_DEFAULT_GIT_REMOTE"] != ENV["HOMEBREW_CORE_GIT_REMOTE"]
opoo <<~EOS
- HOMEBREW_CORE_GIT_REMOTE was set. It has been unset for the migration.
+ HOMEBREW_CORE_GIT_REMOTE was set: #{ENV["HOMEBREW_CORE_GIT_REMOTE"]}.
+ It... | true |
Other | Homebrew | brew | 0118e6ec41a4fb2e2638165fee0a4f492f19bf81.json | Apply suggestions from code review
Co-authored-by: Xuehai Pan <XuehaiPan@outlook.com> | Library/Homebrew/extend/os/linux/diagnostic.rb | @@ -130,12 +130,12 @@ def check_linuxbrew_core
end
def check_linuxbrew_bottle_domain
- return unless Homebrew::EnvConfig.bottle_domain.include?("linuxbrew-core")
+ return unless Homebrew::EnvConfig.bottle_domain.include?("linuxbrew")
<<~EOS
- Your HOMEBREW_BOTTLE_DOMAIN... | true |
Other | Homebrew | brew | 8c22e009acaafa7de7c2c8ee298229efd21f2503.json | update depends_on_java to suggest temurin
AdoptOpenJDK has been deprecated. Temurin is the new cask | Library/Homebrew/cask/dsl/caveats.rb | @@ -112,17 +112,17 @@ def eval_caveats(&block)
if java_version == :any
<<~EOS
#{@cask} requires Java. You can install the latest version with:
- brew install --cask adoptopenjdk
+ brew install --cask temurin
EOS
elsif java_version.include?("... | false |
Other | Homebrew | brew | 943b79d2fbf6776067594a3f670bf7e045960707.json | os/mac/diagnostic: allow Ruby 2.6.8 | Library/Homebrew/extend/os/mac/diagnostic.rb | @@ -201,12 +201,19 @@ def check_if_xcode_needs_clt_installed
end
def check_ruby_version
- return if RUBY_VERSION == HOMEBREW_REQUIRED_RUBY_VERSION
+ # TODO: require 2.6.8 for everyone once enough have updated to Monterey
+ required_version = if MacOS.version >= :monterey ||
+ ... | false |
Other | Homebrew | brew | bc46bcf301898fa87a6ba2997ae23f3b0b1eab0d.json | Update RBI files for zeitwerk. | Library/Homebrew/sorbet/rbi/gems/zeitwerk@2.5.0.rbi | @@ -16,7 +16,26 @@ module Kernel
end
end
-module Zeitwerk; end
+module Zeitwerk
+ class << self
+ def with_loader; end
+ end
+end
+
+class Zeitwerk::Autoloads
+ def initialize; end
+
+ def a2c; end
+ def abspath_for(parent, cname); end
+ def c2a; end
+ def clear; end
+ def cref_for(abspath); end
+ def... | true |
Other | Homebrew | brew | bc46bcf301898fa87a6ba2997ae23f3b0b1eab0d.json | Update RBI files for zeitwerk. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4510,6 +4510,8 @@ end
module Homebrew::EnvConfig
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::SingletonMethodHooks
+ def self.additional_google_analytics_id(); end
+
def self.all_proxy(); end
def self.arch(); end
@@ -4628,6 +4630,8 @@ module Homebrew::EnvConfig
def se... | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | Library/Homebrew/cli/args.rbi | @@ -192,6 +192,9 @@ module Homebrew
sig { returns(T.nilable(String)) }
def limit; end
+ sig { returns(T.nilable(String)) }
+ def start_with; end
+
sig { returns(T.nilable(String)) }
def message; end
| true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | Library/Homebrew/dev-cmd/bump.rb | @@ -13,8 +13,9 @@ module Homebrew
def bump_args
Homebrew::CLI::Parser.new do
description <<~EOS
- Display out-of-date brew formulae and the latest version available.
- Also displays whether a pull request has been opened with the URL.
+ Display out-of-date brew formulae and the lates... | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | Library/Homebrew/test/dev-cmd/bump_spec.rb | @@ -6,7 +6,7 @@
describe "brew bump" do
it_behaves_like "parseable arguments"
- describe "formula", :integration_test, :needs_network do
+ describe "formula", :integration_test, :needs_network, :needs_tls13 do
it "returns data for single valid specified formula" do
install_test_formula "testball"
| true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | Library/Homebrew/test/spec_helper.rb | @@ -169,6 +169,15 @@
.append(svnadmin.dirname)
end
+ config.before(:each, :needs_tls13) do
+ begin
+ curl = Utils::Curl.curl_executable(use_homebrew_curl: OS.mac?)
+ rescue FormulaUnavailableError
+ skip "curl formula not available"
+ end
+ skip "Requires curl with TLS... | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | Library/Homebrew/test/utils/repology_spec.rb | @@ -4,7 +4,7 @@
require "utils/repology"
describe Repology do
- describe "single_package_query", :needs_network do
+ describe "single_package_query", :needs_network, :needs_tls13 do
it "returns nil for non-existent package" do
response = described_class.single_package_query("invalidName", repository: ... | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | Library/Homebrew/utils/curl.rb | @@ -357,6 +357,12 @@ def curl_http_content_headers_and_checksum(
file.unlink
end
+ def homebrew_curl_available?
+ Formulary.factory("curl").present?
+ rescue FormulaUnavailableError
+ false
+ end
+
def http_status_ok?(status)
(100..299).cover?(status.to_i)
end | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | Library/Homebrew/utils/repology.rb | @@ -15,33 +15,29 @@ module Repology
MAX_PAGINATION = 15
private_constant :MAX_PAGINATION
- def query_api(_last_package_in_response = "", repository:)
- {}
- # TODO: uncomment (and remove lines above) when we have a fix for Repology
- # `curl` issues
- # last_package_in_response += "/" if last_packa... | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | completions/bash/brew | @@ -436,6 +436,7 @@ _brew_bump() {
--limit
--no-pull-requests
--quiet
+ --start-with
--verbose
"
return | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | completions/fish/brew.fish | @@ -388,6 +388,7 @@ __fish_brew_complete_arg 'bump' -l help -d 'Show this message'
__fish_brew_complete_arg 'bump' -l limit -d 'Limit number of package results returned'
__fish_brew_complete_arg 'bump' -l no-pull-requests -d 'Do not retrieve pull requests from GitHub'
__fish_brew_complete_arg 'bump' -l quiet -d 'Mak... | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | completions/zsh/_brew | @@ -479,6 +479,7 @@ _brew_bump() {
'--limit[Limit number of package results returned]' \
'--no-pull-requests[Do not retrieve pull requests from GitHub]' \
'--quiet[Make some output more quiet]' \
+ '--start-with[Letter or word that the list of package results should alphabetically follow]' \
'--v... | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | docs/Manpage.md | @@ -899,8 +899,9 @@ value, while `--no-rebuild` will remove it.
### `bump` [*`options`*] [*`formula`*|*`cask`* ...]
-Display out-of-date brew formulae and the latest version available.
-Also displays whether a pull request has been opened with the URL.
+Display out-of-date brew formulae and the latest version avai... | true |
Other | Homebrew | brew | 811d0fa0bd42010f5597dca132e13ccddff146ed.json | bump: add option to retrieve a subset of results
Plus a few fixes for output. | manpages/brew.1 | @@ -1261,7 +1261,7 @@ Use the specified \fIURL\fR as the root of the bottle\'s URL instead of Homebrew
Use the specified download strategy class for downloading the bottle\'s URL instead of Homebrew\'s default\.
.
.SS "\fBbump\fR [\fIoptions\fR] [\fIformula\fR|\fIcask\fR \.\.\.]"
-Display out\-of\-date brew formulae... | true |
Other | Homebrew | brew | 541b9556f80f1777ddfc5cb8ac8f5cda94f1209c.json | tests.yml: install curl on macOS for TLS 1.3 support | .github/workflows/tests.yml | @@ -309,6 +309,8 @@ jobs:
brew sh -c "svn --homebrew=print-path"
which svn
which svnadmin
+ brew install curl
+ which curl
- name: Create parallel test log directory
run: mkdir tests | false |
Other | Homebrew | brew | e567d7f595eeed6e2bc4e905e45ddc7b7817bc44.json | Update Formula-Cookbook.md gsub! example
The use of a naked expression will trigger errors from `brew audit` so use instead parenthesis around the parameters as per its recommendation and to avoid ambiguous syntax. | docs/Formula-Cookbook.md | @@ -441,7 +441,7 @@ inreplace "path", before, after
```ruby
inreplace "path" do |s|
- s.gsub! /foo/, "bar"
+ s.gsub!(/foo/, "bar")
s.gsub! "123", "456"
end
``` | false |
Other | Homebrew | brew | 412406298db46758868ec68fbf4b9281c49125db.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4482,48 +4482,6 @@ module Homebrew::API
extend ::T::Private::Methods::SingletonMethodHooks
end
-module Homebrew::Assertions
- def assert_include(*args); end
-
- def assert_no_match(*args); end
-
- def assert_not_empty(*args); end
-
- def assert_not_equal(*args); end
-
- def assert_not_in_delta(*args); en... | false |
Other | Homebrew | brew | 8a086c5ab772dfdbcbbfc1ee710af4e88a647b02.json | Update RBI files for racc. | Library/Homebrew/sorbet/rbi/gems/racc@1.6.0.rbi | @@ -5,14 +5,9 @@
# typed: true
class Object < ::BasicObject
- include ::ActiveSupport::ForkTracker::CoreExt
- include ::ActiveSupport::ForkTracker::CoreExtPrivate
- include ::ActiveSupport::ToJsonWithActiveSupportEncoder
include ::Kernel
include ::JSON::Ext::Generator::GeneratorMethods::Object
include :... | true |
Other | Homebrew | brew | 8a086c5ab772dfdbcbbfc1ee710af4e88a647b02.json | Update RBI files for racc. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4482,48 +4482,6 @@ module Homebrew::API
extend ::T::Private::Methods::SingletonMethodHooks
end
-module Homebrew::Assertions
- def assert_include(*args); end
-
- def assert_no_match(*args); end
-
- def assert_not_empty(*args); end
-
- def assert_not_equal(*args); end
-
- def assert_not_in_delta(*args); en... | true |
Other | Homebrew | brew | 5d670728f153c16583c08b43c18e2c9547eed084.json | os/mac/xcode: require Xcode 13.1 on Monterey | Library/Homebrew/os/mac/xcode.rb | @@ -23,7 +23,7 @@ module Xcode
def latest_version(macos: MacOS.version)
latest_stable = "13.0"
case macos
- when "12" then "13.0"
+ when "12" then "13.1"
when "11" then latest_stable
when "10.15" then "12.4"
when "10.14" then "11.3.1"
@@ -47,7 +47,7 @@ d... | false |
Other | Homebrew | brew | 93340e08d5b2aa2b80bb04292bd37c70cacbceca.json | cmd/search: add Arch Linux
Arch update their packages very quickly, so they're quite useful as a
reference for building formulae. | Library/Homebrew/cmd/search.rb | @@ -15,15 +15,16 @@ module Homebrew
extend Search
PACKAGE_MANAGERS = {
- repology: ->(query) { "https://repology.org/projects/?search=#{query}" },
- macports: ->(query) { "https://ports.macports.org/search/?q=#{query}" },
- fink: ->(query) { "https://pdb.finkproject.org/pdb/browse.php?summary=#{que... | false |
Other | Homebrew | brew | 12a9ec9fd7e1616538bffd5c0460e97c0f7823b9.json | Update RBI files for spoom. | Library/Homebrew/sorbet/rbi/gems/colorize@0.8.1.rbi | @@ -1,39 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `colorize` gem.
-# Please instead update this file by running `bin/tapioca gem colorize`.
-
-# typed: true
-
-module Colorize; end
-
-module Colorize::ClassMethods
- def color_codes; end
- def color_matrix(_ = T.unsa... | true |
Other | Homebrew | brew | 12a9ec9fd7e1616538bffd5c0460e97c0f7823b9.json | Update RBI files for spoom. | Library/Homebrew/sorbet/rbi/gems/spoom@1.1.5.rbi | @@ -14,6 +14,7 @@ end
module Spoom::Cli; end
class Spoom::Cli::Bump < ::Thor
+ include ::Spoom::Colorize
include ::Spoom::Cli::Helper
sig { params(directory: String).void }
@@ -26,13 +27,15 @@ class Spoom::Cli::Bump < ::Thor
end
class Spoom::Cli::Config < ::Thor
+ include ::Spoom::Colorize
include ... | true |
Other | Homebrew | brew | 12a9ec9fd7e1616538bffd5c0460e97c0f7823b9.json | Update RBI files for spoom. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -9027,6 +9027,10 @@ class Spoom::Cli::Bump
extend ::T::Private::Methods::SingletonMethodHooks
end
+module Spoom::Cli::Helper
+ HIGHLIGHT_COLOR = ::T.let(nil, ::T.untyped)
+end
+
module Spoom::Cli::Helper
extend ::T::Sig
extend ::T::Helpers
@@ -9038,6 +9042,12 @@ class Spoom::Cli::Main
extend ::T::Si... | true |
Other | Homebrew | brew | 12a9ec9fd7e1616538bffd5c0460e97c0f7823b9.json | Update RBI files for spoom. | Library/Homebrew/sorbet/rbi/todo.rbi | @@ -2,6 +2,8 @@
# srb rbi todo
# typed: strong
+module ::Colorize::ClassMethods; end
+module ::Colorize::InstanceMethods; end
module ::StackProf; end
module T::InterfaceWrapper::Helpers; end
module T::Private::Abstract::Hooks; end | true |
Other | Homebrew | brew | e8eb781470df7463ca2147862d257815f5062314.json | mac/formula_cellar_checks: apply suggestions from code review
- Fix missing space
- use `MachO::Utils.fat_magic?`
- call `#flag?` consistently.
Co-authored-by: Bo Anderson <mail@boanderson.me> | Library/Homebrew/extend/os/mac/formula_cellar_checks.rb | @@ -41,7 +41,7 @@ def check_openssl_links
These object files were linked against the deprecated system OpenSSL or
the system's private LibreSSL.
Adding `depends_on "openssl"` to the formula may help.
- #{system_openssl * "\n "}
+ #{system_openssl * "\n "}
EOS
end
@@ -97,10 ... | false |
Other | Homebrew | brew | cfc1821e2c6b0c162cb2d675fae33ca6f08a62bb.json | tap: fix unexpected wrong variable name | Library/Homebrew/tap.rb | @@ -384,7 +384,7 @@ def fix_remote_configuration(requested_remote: nil, quiet: false)
path.git_origin_set_head_auto
new_upstream_head = path.git_origin_branch
- return if new_upstream_head == old_upstream_head
+ return if new_upstream_head == current_upstream_head
path.git_rename_branch old: cu... | false |
Other | Homebrew | brew | 889b30b32e6b0d8d6bfccbd28a557c66121fa7a6.json | tap: apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/tap.rb | @@ -765,7 +765,7 @@ def install(quiet: false, clone_target: nil, force_auto_update: nil, custom_remo
remote = Homebrew::EnvConfig.core_git_remote
requested_remote = clone_target || default_remote
- # The remote will changed again on `brew update` since remotes for Homebrew/core are mismatch
+ # The re... | false |
Other | Homebrew | brew | 3dcfc7e26e663f8378d48aa6a6d48541aea31d9d.json | tap: apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/tap.rb | @@ -366,7 +366,7 @@ def link_completions_and_manpages
end
def fix_remote_configuration(requested_remote: nil, quiet: false)
- unless requested_remote.nil?
+ if requested_remote.present?
path.cd do
safe_system "git", "remote", "set-url", "origin", requested_remote
safe_system "git"... | false |
Other | Homebrew | brew | 4fbe0a2b1bd35eb76467a9decee526382fe9ac5b.json | Fix false positives in audit
There was a typo that made it so that all libraries were being included
in `flat_namespace_files`. | Library/Homebrew/extend/os/mac/formula_cellar_checks.rb | @@ -98,9 +98,9 @@ def check_flat_namespace(formula)
macho = MachO.open(file)
if file.universal?
- macho.machos.map(&:header).all? { |h| h.flag? :MH_TWO_LEVEL }
+ macho.machos.map(&:header).all? { |h| h.flag? :MH_TWOLEVEL }
else
- macho.header.flag?(:MH_TWO_LEVEL)
+ mac... | false |
Other | Homebrew | brew | 07bcab367fb05bbb3af7e05c67c41e725c0de043.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 | @@ -5858,6 +5858,7 @@ class Object
HOMEBREW_USER_AGENT_RUBY = ::T.let(nil, ::T.untyped)
HOMEBREW_VERSION = ::T.let(nil, ::T.untyped)
HOMEBREW_WWW = ::T.let(nil, ::T.untyped)
+ LINUXBREW_CORE_MIGRATION_LIST = ::T.let(nil, ::T.untyped)
OFFICIAL_CASK_TAPS = ::T.let(nil, ::T.untyped)
OFFICIAL_CMD_TAPS = ::T... | false |
Other | Homebrew | brew | 231b10beea223bd62ccbbd6783ec4d1fc45115d9.json | os/mac: track only the major version instead | Library/Homebrew/os/mac.rb | @@ -45,7 +45,8 @@ def full_version=(version)
sig { returns(::Version) }
def latest_sdk_version
# TODO: bump version when new Xcode macOS SDK is released
- ::Version.new("11.3")
+ # NOTE: We only track the major version of the SDK.
+ ::Version.new("11")
end
private :latest_sdk_v... | false |
Other | Homebrew | brew | 2d89e7d24e9e24fc44e487bcef72ccffdc353908.json | utils/shfmt.sh: apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/utils/shfmt.sh | @@ -390,7 +390,7 @@ do
retcode="$?"
if [[ "${retcode}" == 4 ]]
then
- onoe "${0##*/}: Bad styles detected in file \"${file}\", apply auto-fix."
+ onoe "${0##*/}: Bad styles detected in file \"${file}\", fixing..."
retcode=''
fi
fi | false |
Other | Homebrew | brew | 3113bf7158141b5223709933b65f3fa3fcfefc28.json | utils/shfmt.sh: redirect differences to stderr | Library/Homebrew/utils/shfmt.sh | @@ -371,7 +371,7 @@ format() {
cp -af "${tempfile}" "${file}"
else
# Show differences
- "${DIFF}" "${DIFF_ARGS[@]}" "${file}" "${tempfile}"
+ "${DIFF}" "${DIFF_ARGS[@]}" "${file}" "${tempfile}" 1>&2
fi
return 4
else | false |
Other | Homebrew | brew | 61bce2e71a90ba07f0646275b917766ec3d100e3.json | Update RBI files for rubocop-rails. | Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.12.3.rbi | @@ -387,6 +387,7 @@ class RuboCop::Cop::Rails::ContentTag < ::RuboCop::Cop::Base
def autocorrect(corrector, node, preferred_method); end
def corrected_ancestor?(node); end
def correction_range(node); end
+ def register_offense(node, message, preferred_method); end
end
RuboCop::Cop::Rails::ContentTag::MSG ... | true |
Other | Homebrew | brew | 61bce2e71a90ba07f0646275b917766ec3d100e3.json | Update RBI files for rubocop-rails. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -7425,11 +7425,6 @@ module Readline
def self.completion_quote_character(); end
end
-module ReleaseNotes
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
-end
-
class Requirement
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::Sing... | true |
Other | Homebrew | brew | 18ece131972068fc72d6ea649ee0238564e25d58.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -490,26 +490,6 @@ class Bundler::Injector
def self.remove(gems, options=T.unsafe(nil)); end
end
-class Bundler::Installer
- def generate_bundler_executable_stubs(spec, options=T.unsafe(nil)); end
-
- def generate_standalone_bundler_executable_stubs(spec); end
-
- def initialize(root, definition); end
-
- d... | false |
Other | Homebrew | brew | aa90e09c4a0358f0391e2dc701c84584c96f87ec.json | Update RBI files for rbi. | Library/Homebrew/sorbet/rbi/gems/rbi@0.0.5.rbi | @@ -651,6 +651,9 @@ class RBI::Param < ::RBI::NodeWithComments
sig { override.params(v: RBI::Printer).void }
def accept_printer(v); end
+ sig { returns(T::Array[String]) }
+ def comments_lines; end
+
sig { returns(String) }
def name; end
@@ -670,6 +673,9 @@ class RBI::ParseError < ::StandardError
end... | true |
Other | Homebrew | brew | aa90e09c4a0358f0391e2dc701c84584c96f87ec.json | Update RBI files for rbi. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -7425,11 +7425,6 @@ module Readline
def self.completion_quote_character(); end
end
-module ReleaseNotes
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
-end
-
class Requirement
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::Sing... | true |
Other | Homebrew | brew | 25fe428ed27e89cd5ff9f7c6aee9d32e2e73faa7.json | system_config: fix clang version output on Linux
If you have Homebrew LLVM installed, `brew config` will show
Clang: 12.0.1 build (parse error)
because Homebrew LLVM does not give a build number. Some installations
from the system package manager do have this information, so let's show
it if it's available but s... | Library/Homebrew/extend/os/mac/system_config.rb | @@ -7,7 +7,7 @@ module SystemConfig
class << self
include SystemCommand::Mixin
- undef describe_homebrew_ruby
+ undef describe_homebrew_ruby, describe_clang
def describe_homebrew_ruby
s = describe_homebrew_ruby_version
@@ -19,6 +19,13 @@ def describe_homebrew_ruby
end
end
+ ... | true |
Other | Homebrew | brew | 25fe428ed27e89cd5ff9f7c6aee9d32e2e73faa7.json | system_config: fix clang version output on Linux
If you have Homebrew LLVM installed, `brew config` will show
Clang: 12.0.1 build (parse error)
because Homebrew LLVM does not give a build number. Some installations
from the system package manager do have this information, so let's show
it if it's available but s... | Library/Homebrew/system_config.rb | @@ -76,8 +76,11 @@ def core_tap_origin
def describe_clang
return "N/A" if clang.null?
- clang_build_info = clang_build.null? ? "(parse error)" : clang_build
- "#{clang} build #{clang_build_info}"
+ if clang_build.null?
+ clang.to_s
+ else
+ "#{clang} build #{clang_build}"... | true |
Other | Homebrew | brew | 4f1bbf003ad1ad3523cdc59a04d49e0973d05090.json | Use GitHub API to generate release notes | Library/Homebrew/dev-cmd/release.rb | @@ -2,7 +2,6 @@
# frozen_string_literal: true
require "cli/parser"
-require "release_notes"
module Homebrew
extend T::Sig
@@ -70,12 +69,15 @@ def release
if args.major? || args.minor?
latest_major_minor_version = "#{latest_version.major}.#{latest_version.minor.to_i}.0"
ohai "Release notes s... | true |
Other | Homebrew | brew | 4f1bbf003ad1ad3523cdc59a04d49e0973d05090.json | Use GitHub API to generate release notes | Library/Homebrew/release_notes.rb | @@ -1,30 +0,0 @@
-# typed: strict
-# frozen_string_literal: true
-
-# Helper functions for generating release notes.
-#
-# @api private
-module ReleaseNotes
- extend T::Sig
-
- module_function
-
- sig {
- params(start_ref: T.any(String, Version), end_ref: T.any(String, Version), markdown: T.nilable(T::Boolean))
-... | true |
Other | Homebrew | brew | 4f1bbf003ad1ad3523cdc59a04d49e0973d05090.json | Use GitHub API to generate release notes | Library/Homebrew/test/release_notes_spec.rb | @@ -1,28 +0,0 @@
-# typed: false
-# frozen_string_literal: true
-
-require "release_notes"
-
-describe ReleaseNotes do
- before do
- HOMEBREW_REPOSITORY.cd do
- system "git", "init"
- system "git", "commit", "--allow-empty", "-m", "Initial commit"
- system "git", "tag", "release-notes-testing"
- ... | true |
Other | Homebrew | brew | 4f1bbf003ad1ad3523cdc59a04d49e0973d05090.json | Use GitHub API to generate release notes | Library/Homebrew/utils/github.rb | @@ -225,6 +225,13 @@ def get_latest_release(user, repo)
API.open_rest(url, request_method: :GET)
end
+ def generate_release_notes(user, repo, tag, previous_tag: nil)
+ url = "#{API_URL}/repos/#{user}/#{repo}/releases/generate-notes"
+ data = { tag_name: tag }
+ data[:previous_tag_name] = previous_ta... | true |
Other | Homebrew | brew | 03a72760ef8a7b3c04193ed51fa5398d38abbd96.json | utils/curl: add comment detailing options handling | Library/Homebrew/utils/curl.rb | @@ -304,13 +304,16 @@ def curl_http_content_headers_and_checksum(
)
file = Tempfile.new.tap(&:close)
+ # Convert specs to options. This is mostly key-value options,
+ # unless the value is a boolean in which case treat as as flag.
specs = specs.flat_map do |option, argument|
next... | false |
Other | Homebrew | brew | c6cddacc5ef10703db87b277158548f3959085f1.json | utils/curl: fix false flag handling | Library/Homebrew/utils/curl.rb | @@ -305,7 +305,7 @@ def curl_http_content_headers_and_checksum(
file = Tempfile.new.tap(&:close)
specs = specs.flat_map do |option, argument|
- next if argument == false # No flag.
+ next [] if argument == false # No flag.
args = ["--#{option.to_s.tr("_", "-")}"]
args <... | false |
Other | Homebrew | brew | 73a1ff82d25560746fae3fb4cbc51df6acbbd786.json | utils/curl: fix flag handling | Library/Homebrew/utils/curl.rb | @@ -304,7 +304,13 @@ def curl_http_content_headers_and_checksum(
)
file = Tempfile.new.tap(&:close)
- specs = specs.flat_map { |option, argument| ["--#{option.to_s.tr("_", "-")}", argument] }
+ specs = specs.flat_map do |option, argument|
+ next if argument == false # No flag.
+
+ ... | false |
Other | Homebrew | brew | cb0a90262d8914b749fadcede523ef2e0604cbd4.json | download_strategy: remove redundant conditional | Library/Homebrew/download_strategy.rb | @@ -550,7 +550,7 @@ def _curl_args
"because we need it installed to download securely."
@insecure_warning_shown = true
end
- args += ["--insecure"] if meta[:insecure]
+ args += ["--insecure"]
end
args | false |
Other | Homebrew | brew | dd263e0a5ef9fe68d396caf0c7412b842764dd40.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -62,11 +62,6 @@ class Addrinfo
def connect_internal(local_addrinfo, timeout=T.unsafe(nil)); end
end
-class Archive
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
-end
-
class Array
def abbrev(pattern=T.unsafe(nil)); end
@@ -4659,8 +4654,6 @@ module Home... | false |
Other | Homebrew | brew | 629dbb7c593f97538d59691173add17d47657939.json | rubocops/urls: allow plain HTTP mirrors | Library/Homebrew/rubocops/extend/formula.rb | @@ -35,14 +35,14 @@ def on_class(node)
# @param urls [Array] url/mirror method call nodes
# @param regex [Regexp] pattern to match URLs
def audit_urls(urls, regex)
- urls.each do |url_node|
+ urls.each_with_index do |url_node, index|
url_string_node = parameters(url_node).f... | true |
Other | Homebrew | brew | 629dbb7c593f97538d59691173add17d47657939.json | rubocops/urls: allow plain HTTP mirrors | Library/Homebrew/rubocops/urls.rb | @@ -83,8 +83,14 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
%r{^http://(?:[^/]*\.)?archive\.org},
%r{^http://(?:[^/]*\.)?freedesktop\.org},
%r... | true |
Other | Homebrew | brew | 84a7c2ba7d1b45764cc5381f67d63eec1448de9f.json | Add VS Code to list of fallback editors | Library/Homebrew/utils.rb | @@ -363,8 +363,8 @@ def which_editor
editor = Homebrew::EnvConfig.editor
return editor if editor
- # Find Atom, Sublime Text, Textmate, BBEdit / TextWrangler, or vim
- editor = %w[atom subl mate edit vim].find do |candidate|
+ # Find Atom, Sublime Text, VS Code, Textmate, BBEdit / TextWrangler, or ... | false |
Other | Homebrew | brew | 5542b8d585c13c756d6bcf9885282885d6d5b2e8.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.22.0.rbi | @@ -255,6 +255,7 @@ class RuboCop::Config
def to_s; end
def transform_values(*args, &block); end
def validate(*args, &block); end
+ def validate_after_resolution; end
private
@@ -541,6 +542,7 @@ class RuboCop::ConfigValidator
def smart_loaded_path(*args, &block); end
def target_ruby_version; end
... | false |
Other | Homebrew | brew | 61a7ffb999963a2ef8d8f0b247956c8280cb831a.json | development_tools: add type signatures | Library/Homebrew/development_tools.rb | @@ -1,9 +1,14 @@
-# typed: false
+# typed: true
# frozen_string_literal: true
+require "version"
+
# @private
class DevelopmentTools
class << self
+ extend T::Sig
+
+ sig { params(tool: String).returns(T.nilable(Pathname)) }
def locate(tool)
# Don't call tools (cc, make, strip, etc.) directly!... | true |
Other | Homebrew | brew | 61a7ffb999963a2ef8d8f0b247956c8280cb831a.json | development_tools: add type signatures | Library/Homebrew/extend/os/linux/development_tools.rb | @@ -5,6 +5,7 @@ class DevelopmentTools
class << self
extend T::Sig
+ sig { params(tool: String).returns(T.nilable(Pathname)) }
def locate(tool)
(@locate ||= {}).fetch(tool) do |key|
@locate[key] = if (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
@@ -20,6 +21,7 @@ def default_compi... | true |
Other | Homebrew | brew | 61a7ffb999963a2ef8d8f0b247956c8280cb831a.json | development_tools: add type signatures | Library/Homebrew/extend/os/mac/development_tools.rb | @@ -12,6 +12,7 @@ class << self
undef installed?, default_compiler, curl_handles_most_https_certificates?,
subversion_handles_most_https_certificates?
+ sig { params(tool: String).returns(T.nilable(Pathname)) }
def locate(tool)
(@locate ||= {}).fetch(tool) do |key|
@locate[key]... | true |
Other | Homebrew | brew | 61a7ffb999963a2ef8d8f0b247956c8280cb831a.json | development_tools: add type signatures | Library/Homebrew/extend/os/mac/extend/ENV/shared.rb | @@ -18,8 +18,8 @@ def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a
def no_weak_imports_support?
return false unless compiler == :clang
- return false if MacOS::Xcode.version && MacOS::Xcode.version < "8.0"
- return false if MacOS::CLT.version && MacOS::CLT.version < "8.0"... | true |
Other | Homebrew | brew | 61a7ffb999963a2ef8d8f0b247956c8280cb831a.json | development_tools: add type signatures | Library/Homebrew/os/mac.rb | @@ -178,13 +178,15 @@ def macports_or_fink
paths.uniq
end
+ sig { params(ids: String).returns(T.nilable(Pathname)) }
def app_with_bundle_id(*ids)
path = mdfind(*ids)
.reject { |p| p.include?("/Backups.backupdb/") }
.first
Pathname.new(path) if path.present... | true |
Other | Homebrew | brew | 61a7ffb999963a2ef8d8f0b247956c8280cb831a.json | development_tools: add type signatures | Library/Homebrew/os/mac/sdk.rb | @@ -9,11 +9,21 @@ module Mac
#
# @api private
class SDK
+ extend T::Sig
+
# 11.x SDKs are explicitly excluded - we want the MacOSX11.sdk symlink instead.
VERSIONED_SDK_REGEX = /MacOSX(10\.\d+|\d+)\.sdk$/.freeze
- attr_reader :version, :path, :source
+ sig { returns(OS::Mac:... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.