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 | be41b12e4c0dd0adb013b831dcfe56be58203b5a.json | sandbox: restore old WINCH trap | Library/Homebrew/sandbox.rb | @@ -97,29 +97,29 @@ def exec(*args)
seatbelt.close
@start = Time.now
- $stdin.raw! if $stdin.tty?
- stdin_thread = T.let(nil, T.nilable(Thread))
-
begin
command = [SANDBOX_EXEC, "-f", seatbelt.path, *args]
# Start sandbox in a pseudoterminal to prevent access of the parent terminal.... | false |
Other | Homebrew | brew | 79cb9e051bf4788a4ffb0e59523d342212715cbb.json | bump-cask-pr: use similar logic to `brew fetch` | Library/Homebrew/dev-cmd/bump-cask-pr.rb | @@ -2,6 +2,7 @@
# frozen_string_literal: true
require "cask"
+require "cask/download"
require "cli/parser"
require "utils/tar"
@@ -128,24 +129,23 @@ def bump_cask_pr
silent: true)
tmp_cask = Cask::CaskLoader.load(tmp_contents)
- t... | false |
Other | Homebrew | brew | 0f900edfa2a78d93142a2e060aa6c897cb2684d1.json | sandbox: start sandbox in a pseudoterminal | Library/Homebrew/sandbox.rb | @@ -2,6 +2,8 @@
# frozen_string_literal: true
require "erb"
+require "io/console"
+require "pty"
require "tempfile"
# Helper class for running a sub-process inside of a sandboxed environment.
@@ -95,12 +97,26 @@ def exec(*args)
seatbelt.close
@start = Time.now
+ $stdin.raw!
+ stdin_thread = T.... | false |
Other | Homebrew | brew | 0fed05a7522797f256086d0b042fc0702cec6a4e.json | Apply suggestions from code review
Co-authored-by: Rylan Polster <rslpolster@gmail.com> | docs/Homebrew-brew-Maintainer-Guide.md | @@ -99,13 +99,13 @@ reports are available to Homebrew maintainers on [buildpulse.io](https://buildpu
summaries are published to [`#buildpulse-health`](https://machomebrew.slack.com/archives/C0268BSJBJ8) in Slack.
BuildPulse can be used as a guide to identify which flaky tests are causing the most disruption to the ... | false |
Other | Homebrew | brew | 48e69ea3474edde6b7a1d6cb6a16ec4f2e3ee748.json | README: add @buildpulse link and logo. | README.md | @@ -90,6 +90,10 @@ Secure password storage and syncing is provided by [1Password for Teams](https:/
[](https://1password.com)
+Flaky test detection and tracking is provided by [BuildPulse](https://buildpulse.io/).
+
+[!... | false |
Other | Homebrew | brew | 70318c451a8f0f691eadefd82861b702e1c1c1c8.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -110,7 +110,7 @@ class ActiveSupport::Cache::Entry
def expires_at=(value); end
- def initialize(value, compress: T.unsafe(nil), compress_threshold: T.unsafe(nil), version: T.unsafe(nil), expires_in: T.unsafe(nil), **_); end
+ def initialize(value, compress: T.unsafe(nil), compress_threshold: T.unsafe(nil), ... | false |
Other | Homebrew | brew | bbfa52fcaa582a182a967651c934e6e5e97f6a22.json | formula_auditor: use brewed curl for homepage check when needed
If the download url is using brewed curl, use that too for the homepage check.
Ideally one would introduce the "using: :homebrew_curl" stanza for the homepage
line in the DSL, but it is easier to implicitely use the same logic
for homepages and url's and ... | Library/Homebrew/formula_auditor.rb | @@ -412,11 +412,21 @@ def audit_homepage
return unless DevelopmentTools.curl_handles_most_https_certificates?
+ use_homebrew_curl = false
+ %w[Stable HEAD].each do |name|
+ spec_name = name.downcase.to_sym
+ next unless (spec = formula.send(spec_name))
+
+ use_homebrew_curl = s... | false |
Other | Homebrew | brew | 05fa1f0cb85e2fd93a1eaec9662ca674fae91617.json | tap_auditor: use short names when checking exception lists | Library/Homebrew/tap_auditor.rb | @@ -15,12 +15,15 @@ class TapAuditor
def initialize(tap, strict:)
@name = tap.name
@path = tap.path
- @formula_names = tap.formula_names
@cask_tokens = tap.cask_tokens
@tap_audit_exceptions = tap.audit_excepti... | false |
Other | Homebrew | brew | e65c9d02abb5a0566f416e665c5f1503a7d9dc5e.json | PageMatch: Expand #find_versions tests | Library/Homebrew/livecheck/strategy/page_match.rb | @@ -44,20 +44,21 @@ def self.match?(url)
# With either approach, an array of unique matches is returned.
#
# @param content [String] the page content to check
- # @param regex [Regexp] a regex used for matching versions in the
+ # @param regex [Regexp, nil] a regex used for matc... | true |
Other | Homebrew | brew | e65c9d02abb5a0566f416e665c5f1503a7d9dc5e.json | PageMatch: Expand #find_versions tests | Library/Homebrew/test/livecheck/strategy/page_match_spec.rb | @@ -108,6 +108,23 @@
it "finds versions in provided_content" do
expect(page_match.find_versions(url: http_url, regex: regex, provided_content: content))
.to eq(find_versions_cached_return_hash)
+
+ # NOTE: Ideally, a regex should always be provided to `#find_versions`
+ # for `PageMatch` ... | true |
Other | Homebrew | brew | 035efa8ed6b9dc28a2ab9346c60f2131adec9a8c.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.19.1.rbi | @@ -3501,7 +3501,7 @@ class RuboCop::Cop::Layout::RescueEnsureAlignment < ::RuboCop::Cop::Base
def access_modifier?(node); end
def access_modifier_node(node); end
- def aligned_with_leading_dot?(do_keyword_line, dot, rescue_keyword_column); end
+ def aligned_with_leading_dot?(do_keyword_line, send_node_loc, r... | false |
Other | Homebrew | brew | b4adf2a42e48e6e92de45b9536373998bf8426c0.json | PageMatch#find_versions: Fix return conditions | Library/Homebrew/livecheck/strategy/page_match.rb | @@ -90,7 +90,7 @@ def self.versions_from_content(content, regex, &block)
}
def self.find_versions(url:, regex:, provided_content: nil, **_unused, &block)
match_data = { matches: {}, regex: regex, url: url }
- return match_data if url.blank? || regex.blank?
+ return match_d... | false |
Other | Homebrew | brew | 9757b7bf89f00106b1ea2007625b9f7f37097fd2.json | Update RBI files for rubocop-performance. | Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.11.5.rbi | @@ -464,6 +464,7 @@ class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::C
def offense_range(node); end
def one_block_argument?(block_arguments); end
def same_block_argument_and_is_a_argument?(block_body, block_argument); end
+ def use_block_argument_in_method_argument_of_operand?(bl... | false |
Other | Homebrew | brew | fa635db8a1bd7494c355416421d52f87cdd0491c.json | Simplify re-definition of `targets` | Library/Homebrew/formula.rb | @@ -1588,10 +1588,8 @@ def time
# universal binaries in a {Formula}'s {Keg}.
sig { params(targets: T.nilable(T.any(Pathname, String))).void }
def deuniversalize_machos(*targets)
- if targets.blank?
- targets = any_installed_keg.mach_o_files.select do |file|
- file.arch == :universal && file.arch... | false |
Other | Homebrew | brew | 99635bf3aeeb40cdc6764cf17bdf872d642ce8e9.json | Remove need for homebrew/cask to be tapped | Library/Homebrew/cask/cask.rb | @@ -6,6 +6,7 @@
require "cask/dsl"
require "cask/metadata"
require "searchable"
+require "api"
module Cask
# An instance of a cask.
@@ -130,14 +131,21 @@ def outdated_versions(greedy: false, greedy_latest: false, greedy_auto_updates:
return []
end
+ latest_version = if ENV["HOMEBREW_JSON... | true |
Other | Homebrew | brew | 99635bf3aeeb40cdc6764cf17bdf872d642ce8e9.json | Remove need for homebrew/cask to be tapped | Library/Homebrew/cli/named_args.rb | @@ -45,18 +45,18 @@ def to_formulae
# the formula and prints a warning unless `only` is specified.
sig {
params(
- only: T.nilable(Symbol),
- ignore_unavailable: T.nilable(T::Boolean),
- method: T.nilable(Symbol),
- u... | true |
Other | Homebrew | brew | 99635bf3aeeb40cdc6764cf17bdf872d642ce8e9.json | Remove need for homebrew/cask to be tapped | Library/Homebrew/cmd/install.rb | @@ -155,7 +155,7 @@ def install
end
begin
- formulae, casks = args.named.to_formulae_and_casks(prefer_loading_from_json: true)
+ formulae, casks = args.named.to_formulae_and_casks(prefer_loading_from_api: true)
.partition { |formula_or_cask| formula_or_cask.is_a?(Formu... | true |
Other | Homebrew | brew | 99635bf3aeeb40cdc6764cf17bdf872d642ce8e9.json | Remove need for homebrew/cask to be tapped | Library/Homebrew/cmd/reinstall.rb | @@ -85,6 +85,9 @@ def reinstall_args
def reinstall
args = reinstall_args.parse
+ # We need to use the bottle API instead of just using the formula file
+ # from an installed keg because it will not contain bottle information.
+ # As a consequence, `brew reinstall` will also upgrade outdated formulae
... | true |
Other | Homebrew | brew | 99635bf3aeeb40cdc6764cf17bdf872d642ce8e9.json | Remove need for homebrew/cask to be tapped | Library/Homebrew/cmd/update.sh | @@ -648,7 +648,8 @@ EOS
# HOMEBREW_UPDATE_PREINSTALL wasn't modified in subshell.
# shellcheck disable=SC2031
if [[ -n "${HOMEBREW_JSON_CORE}" ]] && [[ -n "${HOMEBREW_UPDATE_PREINSTALL}" ]] &&
- [[ "${DIR}" = "${HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-core" ]]
+ [[ "${DIR}" = "${HOMEBREW_LIB... | true |
Other | Homebrew | brew | 99635bf3aeeb40cdc6764cf17bdf872d642ce8e9.json | Remove need for homebrew/cask to be tapped | Library/Homebrew/cmd/upgrade.rb | @@ -225,6 +225,15 @@ def upgrade_outdated_formulae(formulae, args:)
def upgrade_outdated_casks(casks, args:)
return false if args.formula?
+ if ENV["HOMEBREW_JSON_CORE"].present?
+ casks = casks.map do |cask|
+ next cask if cask.tap.present? && cask.tap != "homebrew/cask"
+ next cask unl... | true |
Other | Homebrew | brew | 99635bf3aeeb40cdc6764cf17bdf872d642ce8e9.json | Remove need for homebrew/cask to be tapped | Library/Homebrew/extend/os/mac/tap.rb | @@ -4,7 +4,7 @@
class Tap
def self.install_default_cask_tap_if_necessary(force: false)
return false if default_cask_tap.installed?
-
+ return false if ENV["HOMEBREW_JSON_CORE"].present?
return false if !force && Tap.untapped_official_taps.include?(default_cask_tap.name)
default_cask_tap.install | true |
Other | Homebrew | brew | df086d618e28cee45011c1609c9884c278f53126.json | bump-formula-pr: use default remote if forcing Homebrew on Linux | Library/Homebrew/dev-cmd/bump-formula-pr.rb | @@ -87,7 +87,9 @@ def bump_formula_pr_args
def use_correct_linux_tap(formula, args:)
default_origin_branch = formula.tap.path.git_origin_branch
- return formula.tap.remote_repo, "origin", default_origin_branch, "-" if !OS.linux? || !formula.tap.core_tap?
+ if !OS.linux? || !formula.tap.core_tap? || Home... | false |
Other | Homebrew | brew | d30773f81ee9e3c9485965b6585cce67284eccea.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.10.0.rbi | @@ -278,6 +278,10 @@ class RuboCop::AST::AliasNode < ::RuboCop::AST::Node
def old_identifier; end
end
+class RuboCop::AST::AndAsgnNode < ::RuboCop::AST::OpAsgnNode
+ def operator; end
+end
+
class RuboCop::AST::AndNode < ::RuboCop::AST::Node
include ::RuboCop::AST::BinaryOperatorNode
include ::RuboCop::AS... | false |
Other | Homebrew | brew | 9589416fd42a09d3944328b9448b6c6f908104f8.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.19.0.rbi | @@ -264,6 +264,7 @@ class RuboCop::CLI
def apply_default_formatter; end
def execute_runners; end
def handle_exiting_options; end
+ def parallel_by_default!; end
def run_command(name); end
def set_options_to_config_loader; end
def suggest_extensions; end
@@ -379,6 +380,8 @@ class RuboCop::CLI::Command... | false |
Other | Homebrew | brew | d75320069f37d757030c8e55d219fadd2107f8ba.json | resource_auditor: add audit for HEAD default branch | Library/Homebrew/resource_auditor.rb | @@ -124,6 +124,21 @@ def audit_urls
end
end
+ def audit_head_branch
+ return if !@online || !@strict || spec_name != :head || !Utils::Git.remote_exists?(url)
+
+ branch = Utils.popen_read("git", "ls-remote", "--symref", url, "HEAD")
+ .match(%r{ref: refs/heads/(.*?)\s+HEAD}... | false |
Other | Homebrew | brew | c59d5db6313f1478f51e0c8dd71b376566c67c75.json | Remove unnecessary require statements | Library/Homebrew/livecheck/strategy/extract_plist.rb | @@ -3,7 +3,6 @@
require "bundle_version"
require "unversioned_cask_checker"
-require_relative "page_match"
module Homebrew
module Livecheck | true |
Other | Homebrew | brew | c59d5db6313f1478f51e0c8dd71b376566c67c75.json | Remove unnecessary require statements | Library/Homebrew/livecheck/strategy/header_match.rb | @@ -1,8 +1,6 @@
# typed: true
# frozen_string_literal: true
-require_relative "page_match"
-
module Homebrew
module Livecheck
module Strategy | true |
Other | Homebrew | brew | c936a9420eed710d955346cbfb76140a24d1b551.json | Improve documentation comments | Library/Homebrew/livecheck/strategy.rb | @@ -14,7 +14,7 @@ module Strategy
module_function
- # Strategy priorities informally range from 1 to 10, where 10 is the
+ # {Strategy} priorities informally range from 1 to 10, where 10 is the
# highest priority. 5 is the default priority because it's roughly in
# the middle of this ... | true |
Other | Homebrew | brew | c936a9420eed710d955346cbfb76140a24d1b551.json | Improve documentation comments | Library/Homebrew/livecheck/strategy/electron_builder.rb | @@ -7,15 +7,17 @@ module Strategy
# The {ElectronBuilder} strategy fetches content at a URL and parses
# it as an electron-builder appcast in YAML format.
#
+ # This strategy is not applied automatically and it's necessary to use
+ # `strategy :electron_builder` in a `livecheck` block to ... | true |
Other | Homebrew | brew | c936a9420eed710d955346cbfb76140a24d1b551.json | Improve documentation comments | Library/Homebrew/livecheck/strategy/extract_plist.rb | @@ -8,26 +8,31 @@
module Homebrew
module Livecheck
module Strategy
- # The {ExtractPlist} strategy downloads the file at a URL and
- # extracts versions from contained `.plist` files.
+ # The {ExtractPlist} strategy downloads the file at a URL and extracts
+ # versions from contained `.plis... | true |
Other | Homebrew | brew | c936a9420eed710d955346cbfb76140a24d1b551.json | Improve documentation comments | Library/Homebrew/livecheck/strategy/git.rb | @@ -118,7 +118,7 @@ def self.versions_from_tags(tags, regex = nil, &block)
# strings and parses the remaining text as a {Version}.
#
# @param url [String] the URL of the Git repository to check
- # @param regex [Regexp] the regex to use for matching versions
+ # @param regex [Re... | true |
Other | Homebrew | brew | c936a9420eed710d955346cbfb76140a24d1b551.json | Improve documentation comments | Library/Homebrew/livecheck/strategy/header_match.rb | @@ -9,16 +9,17 @@ module Strategy
# The {HeaderMatch} strategy follows all URL redirections and scans
# the resulting headers for matching text using the provided regex.
#
+ # This strategy is not applied automatically and it's necessary to use
+ # `strategy :header_match` in a `livecheck... | true |
Other | Homebrew | brew | c936a9420eed710d955346cbfb76140a24d1b551.json | Improve documentation comments | Library/Homebrew/livecheck/strategy/page_match.rb | @@ -11,9 +11,8 @@ module Strategy
# strategies apply to a given URL. Though {PageMatch} will technically
# match any HTTP URL, the strategy also requires a regex to function.
#
- # The {find_versions} method is also used within other
- # strategies, to handle the process of identifying ve... | true |
Other | Homebrew | brew | c936a9420eed710d955346cbfb76140a24d1b551.json | Improve documentation comments | Library/Homebrew/livecheck/strategy/sparkle.rb | @@ -9,23 +9,24 @@ module Strategy
# The {Sparkle} strategy fetches content at a URL and parses
# it as a Sparkle appcast in XML format.
#
+ # This strategy is not applied automatically and it's necessary to use
+ # `strategy :sparkle` in a `livecheck` block to apply it.
+ #
# ... | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy.rb | @@ -86,6 +86,7 @@ module Strategy
# At present, this should only be called after tap strategies have been
# loaded, otherwise livecheck won't be able to use them.
# @return [Hash]
+ sig { returns(T::Hash[Symbol, T.untyped]) }
def strategies
return @strategies if defined? @strat... | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/apache.rb | @@ -37,6 +37,7 @@ class Apache
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/bitbucket.rb | @@ -44,6 +44,7 @@ class Bitbucket
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/cpan.rb | @@ -35,6 +35,7 @@ class Cpan
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/git.rb | @@ -50,6 +50,7 @@ def self.match?(url)
# @param url [String] the URL of the Git repository to check
# @param regex [Regexp] the regex to use for filtering tags
# @return [Hash]
+ sig { params(url: String, regex: T.nilable(Regexp)).returns(T::Hash[Symbol, T.untyped]) }
def self... | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/github_latest.rb | @@ -52,6 +52,7 @@ class GithubLatest
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/gnome.rb | @@ -40,6 +40,7 @@ class Gnome
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/gnu.rb | @@ -44,6 +44,7 @@ class Gnu
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url) && url.exclude?("savannah.")
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/hackage.rb | @@ -37,6 +37,7 @@ class Hackage
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/launchpad.rb | @@ -35,6 +35,7 @@ class Launchpad
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/npm.rb | @@ -31,6 +31,7 @@ class Npm
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/pypi.rb | @@ -41,6 +41,7 @@ class Pypi
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/sourceforge.rb | @@ -47,6 +47,7 @@ class Sourceforge
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | f2bd39ccefd89a76c20c32b00fc6f3455885b6e0.json | Add additional method signatures to strategies | Library/Homebrew/livecheck/strategy/xorg.rb | @@ -64,6 +64,7 @@ class Xorg
#
# @param url [String] the URL to match against
# @return [Boolean]
+ sig { params(url: String).returns(T::Boolean) }
def self.match?(url)
URL_MATCH_REGEX.match?(url)
end | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/apache_spec.rb | @@ -10,11 +10,11 @@
let(:non_apache_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is an Apache URL" do
+ it "returns true for an Apache URL" do
expect(apache.match?(apache_url)).to be true
end
- it "returns false if the argument provide... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/bitbucket_spec.rb | @@ -10,11 +10,11 @@
let(:non_bitbucket_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a Bitbucket URL" do
+ it "returns true for a Bitbucket URL" do
expect(bitbucket.match?(bitbucket_url)).to be true
end
- it "returns false if the arg... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/cpan_spec.rb | @@ -11,12 +11,12 @@
let(:non_cpan_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a CPAN URL" do
+ it "returns true for a CPAN URL" do
expect(cpan.match?(cpan_url_no_subdirectory)).to be true
expect(cpan.match?(cpan_url_with_subdirectory)... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/electron_builder_spec.rb | @@ -6,8 +6,8 @@
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) { "https://brew.sh/test" }
+ let(:yaml_url) { "https://www.example.com/example/latest-mac.yml" }
+... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/git_spec.rb | @@ -39,11 +39,11 @@
end
describe "::match?" do
- it "returns true if the argument provided is a Git repository" do
+ it "returns true for a Git repository URL" do
expect(git.match?(git_url)).to be true
end
- it "returns false if the argument provided is not a Git repository" do
+ it "r... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/github_latest_spec.rb | @@ -14,19 +14,19 @@
let(:non_github_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a GitHub release artifact URL" do
+ it "returns true for a GitHub release artifact URL" do
expect(github_latest.match?(github_release_artifact_url)).to be true
... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/gnome_spec.rb | @@ -10,11 +10,11 @@
let(:non_gnome_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a GNOME URL" do
+ it "returns true for a GNOME URL" do
expect(gnome.match?(gnome_url)).to be true
end
- it "returns false if the argument provided is no... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/gnu_spec.rb | @@ -11,15 +11,15 @@
let(:non_gnu_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a non-Savannah GNU URL" do
+ it "returns true for a [non-Savannah] GNU URL" do
expect(gnu.match?(gnu_url)).to be true
end
- it "returns false if the argum... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/hackage_spec.rb | @@ -11,12 +11,12 @@
let(:non_hackage_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a Hackage URL" do
+ it "returns true for a Hackage URL" do
expect(hackage.match?(hackage_url)).to be true
expect(hackage.match?(hackage_downloads_url)).t... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/header_match_spec.rb | @@ -6,7 +6,8 @@
describe Homebrew::Livecheck::Strategy::HeaderMatch do
subject(:header_match) { described_class }
- let(:url) { "https://www.example.com/" }
+ let(:http_url) { "https://brew.sh/blog/" }
+ let(:non_http_url) { "ftp://brew.sh/" }
let(:versions) {
versions = {
@@ -47,8 +48,12 @@
}
... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/launchpad_spec.rb | @@ -10,11 +10,11 @@
let(:non_launchpad_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a Launchpad URL" do
+ it "returns true for a Launchpad URL" do
expect(launchpad.match?(launchpad_url)).to be true
end
- it "returns false if the arg... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/npm_spec.rb | @@ -11,12 +11,12 @@
let(:non_npm_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is an npm URL" do
+ it "returns true for an npm URL" do
expect(npm.match?(npm_url)).to be true
expect(npm.match?(npm_scoped_url)).to be true
end
- it ... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/page_match_spec.rb | @@ -6,7 +6,9 @@
describe Homebrew::Livecheck::Strategy::PageMatch do
subject(:page_match) { described_class }
- let(:url) { "https://brew.sh/blog/" }
+ let(:http_url) { "https://brew.sh/blog/" }
+ let(:non_http_url) { "ftp://brew.sh/" }
+
let(:regex) { %r{href=.*?/homebrew[._-]v?(\d+(?:\.\d+)+)/?["' >]}i }
... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/pypi_spec.rb | @@ -10,11 +10,11 @@
let(:non_pypi_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a PyPI URL" do
+ it "returns true for a PyPI URL" do
expect(pypi.match?(pypi_url)).to be true
end
- it "returns false if the argument provided is not a P... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/sourceforge_spec.rb | @@ -10,11 +10,11 @@
let(:non_sourceforge_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is a SourceForge URL" do
+ it "returns true for a SourceForge URL" do
expect(sourceforge.match?(sourceforge_url)).to be true
end
- it "returns false ... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/sparkle_spec.rb | @@ -7,7 +7,8 @@
describe Homebrew::Livecheck::Strategy::Sparkle do
subject(:sparkle) { described_class }
- let(:url) { "https://www.example.com/example/appcast.xml" }
+ let(:appcast_url) { "https://www.example.com/example/appcast.xml" }
+ let(:non_http_url) { "ftp://brew.sh/" }
let(:appcast_data) {
{... | true |
Other | Homebrew | brew | 7e07010f06a594f72cbf12a5cae889eaa15c4373.json | Improve standardization of strategy tests | Library/Homebrew/test/livecheck/strategy/xorg_spec.rb | @@ -10,11 +10,11 @@
let(:non_xorg_url) { "https://brew.sh/test" }
describe "::match?" do
- it "returns true if the argument provided is an X.Org URL" do
+ it "returns true for an X.Org URL" do
expect(xorg.match?(xorg_url)).to be true
end
- it "returns false if the argument provided is not... | true |
Other | Homebrew | brew | 9686ebe3550fda62e867ebd7b51ffdd8bb5e7822.json | os/mac/diagnostic: prevent some double diagostic failures | Library/Homebrew/extend/os/mac/diagnostic.rb | @@ -433,9 +433,13 @@ def check_if_supported_sdk_available
locator = MacOS.sdk_locator
source = if locator.source == :clt
+ return if MacOS::CLT.below_minimum_version? # Handled by other diagnostics.
+
update_instructions = MacOS::CLT.update_instructions
"Command Line T... | true |
Other | Homebrew | brew | 9686ebe3550fda62e867ebd7b51ffdd8bb5e7822.json | os/mac/diagnostic: prevent some double diagostic failures | Library/Homebrew/test/os/mac/diagnostic_spec.rb | @@ -47,6 +47,8 @@
before do
allow(DevelopmentTools).to receive(:installed?).and_return(true)
allow(OS::Mac).to receive(:version).and_return(macos_version)
+ allow(OS::Mac::CLT).to receive(:below_minimum_version?).and_return(false)
+ allow(OS::Mac::Xcode).to receive(:below_minimum_version?).... | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/expat.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/libcurl.pc | @@ -23,7 +23,7 @@
# This should most probably benefit from getting a "Requires:" field added
# dynamically by configure.
#
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
l... | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/libedit.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/libexslt.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/libffi.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/libxml-2.0.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/libxslt.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/ncurses.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/ncursesw.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/sqlite3.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/uuid.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/pkgconfig/11/zlib.pc | @@ -1,4 +1,4 @@
-homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib | true |
Other | Homebrew | brew | dae1d8978031138b855bdf087c10bc437c33d06c.json | os/mac/sdk: use MacOSX11.sdk symlink | Library/Homebrew/os/mac/sdk.rb | @@ -9,7 +9,8 @@ module Mac
#
# @api private
class SDK
- VERSIONED_SDK_REGEX = /MacOSX(\d+\.\d+)\.sdk$/.freeze
+ # 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, :... | true |
Other | Homebrew | brew | e854fd4e25532b639fb581a329ed5a6bb6b93579.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/gems/spoom@1.1.2.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `spoom` gem.
-# Please instead update this file by running `tapioca sync`.
+# Please instead update this file by running `bin/tapioca sync`.
# typed: true
@@ -11,29 +11,29 @@ module Spoom
end
end
-module Spoo... | true |
Other | Homebrew | brew | e854fd4e25532b639fb581a329ed5a6bb6b93579.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/gems/tapioca@0.4.24.rbi | @@ -1615,7 +1615,7 @@ class Tapioca::RBI::Rewriters::SortNodes < ::Tapioca::RBI::Visitor
private
sig { params(kind: Tapioca::RBI::Group::Kind).returns(Integer) }
- def kind_rank(kind); end
+ def group_rank(kind); end
sig { params(node: Tapioca::RBI::Node).returns(T.nilable(String)) }
def node_name(nod... | true |
Other | Homebrew | brew | e854fd4e25532b639fb581a329ed5a6bb6b93579.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -30665,6 +30665,7 @@ end
module Spoom::Cli::Helper
extend ::T::Sig
+ extend ::T::Helpers
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::SingletonMethodHooks
end | true |
Other | Homebrew | brew | d4b88b1b55eb9505fac9f2aaab10b59d25f5bab2.json | brew.rb: remove gem setup for stackprof | Library/Homebrew/brew.rb | @@ -2,8 +2,6 @@
# frozen_string_literal: true
if ENV["HOMEBREW_STACKPROF"]
- require_relative "utils/gems"
- Homebrew.setup_gem_environment!
require "stackprof"
StackProf.start(mode: :wall, raw: true)
end | false |
Other | Homebrew | brew | 4c344d8c096717d0439d9efe0e2fe75373c85dd2.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 | @@ -8242,27 +8242,22 @@ module Homebrew
end
module Homebrew::API::Analytics
- extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::SingletonMethodHooks
end
module Homebrew::API::Bottle
- extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::SingletonMethodHooks
end
... | false |
Other | Homebrew | brew | 489f5ed9d1271795885cf3a954199a6f9bf326e8.json | api: fix generic api path functions | Library/Homebrew/api/analytics.rb | @@ -7,19 +7,19 @@ module API
#
# @api private
module Analytics
- extend T::Sig
+ class << self
+ extend T::Sig
- module_function
+ sig { returns(String) }
+ def analytics_api_path
+ "analytics"
+ end
+ alias generic_analytics_api_path analytics... | true |
Other | Homebrew | brew | 489f5ed9d1271795885cf3a954199a6f9bf326e8.json | api: fix generic api path functions | Library/Homebrew/api/bottle.rb | @@ -9,84 +9,84 @@ module API
#
# @api private
module Bottle
- extend T::Sig
+ class << self
+ extend T::Sig
- module_function
-
- sig { returns(String) }
- def bottle_api_path
- "bottle"
- end
- alias generic_bottle_api_path bottle_api_path
-
- GITH... | true |
Other | Homebrew | brew | 489f5ed9d1271795885cf3a954199a6f9bf326e8.json | api: fix generic api path functions | Library/Homebrew/api/cask.rb | @@ -7,13 +7,13 @@ module API
#
# @api private
module Cask
- extend T::Sig
+ class << self
+ extend T::Sig
- module_function
-
- sig { params(name: String).returns(Hash) }
- def fetch(name)
- Homebrew::API.fetch "cask/#{name}.json"
+ sig { params(name: Strin... | true |
Other | Homebrew | brew | 489f5ed9d1271795885cf3a954199a6f9bf326e8.json | api: fix generic api path functions | Library/Homebrew/api/formula.rb | @@ -7,19 +7,19 @@ module API
#
# @api private
module Formula
- extend T::Sig
+ class << self
+ extend T::Sig
- module_function
+ sig { returns(String) }
+ def formula_api_path
+ "formula"
+ end
+ alias generic_formula_api_path formula_api_path
... | true |
Other | Homebrew | brew | 489f5ed9d1271795885cf3a954199a6f9bf326e8.json | api: fix generic api path functions | Library/Homebrew/api/versions.rb | @@ -7,45 +7,45 @@ module API
#
# @api private
module Versions
- extend T::Sig
+ class << self
+ extend T::Sig
- module_function
-
- def formulae
- # The result is cached by Homebrew::API.fetch
- Homebrew::API.fetch "versions-formulae.json"
- end
-
- de... | true |
Other | Homebrew | brew | f1be07c6b8f4fea66680e1239377cb8fef06157e.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.9.0.rbi | @@ -1869,6 +1869,7 @@ class RuboCop::AST::ProcessedSource
def preceding_line(token); end
def raw_source; end
def ruby_version; end
+ def sorted_tokens; end
def start_with?(string); end
def tokens; end
def tokens_within(range_or_node); end
@@ -1882,7 +1883,6 @@ class RuboCop::AST::ProcessedSource
d... | true |
Other | Homebrew | brew | f1be07c6b8f4fea66680e1239377cb8fef06157e.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -3221,11 +3221,6 @@ module Bootsnap
def self.setup(cache_dir:, development_mode: T.unsafe(nil), load_path_cache: T.unsafe(nil), autoload_paths_cache: T.unsafe(nil), disable_trace: T.unsafe(nil), compile_cache_iseq: T.unsafe(nil), compile_cache_yaml: T.unsafe(nil)); end
end
-module BottleAPI
- extend ::T::Priv... | true |
Other | Homebrew | brew | eab0f88c3cf9dfc2396f35281022d14592d7b8dc.json | Remove `json` argument and extend `Cachable` | Library/Homebrew/api.rb | @@ -6,6 +6,7 @@
require "api/cask"
require "api/formula"
require "api/versions"
+require "extend/cachable"
module Homebrew
# Helper functions for using Homebrew's formulae.brew.sh API.
@@ -14,24 +15,21 @@ module Homebrew
module API
extend T::Sig
+ extend Cachable
+
module_function
API_... | true |
Other | Homebrew | brew | eab0f88c3cf9dfc2396f35281022d14592d7b8dc.json | Remove `json` argument and extend `Cachable` | Library/Homebrew/api/analytics.rb | @@ -19,7 +19,7 @@ def analytics_api_path
sig { params(category: String, days: T.any(Integer, String)).returns(Hash) }
def fetch(category, days)
- Homebrew::API.fetch "#{analytics_api_path}/#{category}/#{days}d.json", json: true
+ Homebrew::API.fetch "#{analytics_api_path}/#{category}/#{day... | true |
Other | Homebrew | brew | eab0f88c3cf9dfc2396f35281022d14592d7b8dc.json | Remove `json` argument and extend `Cachable` | Library/Homebrew/api/bottle.rb | @@ -23,7 +23,7 @@ def bottle_api_path
sig { params(name: String).returns(Hash) }
def fetch(name)
- Homebrew::API.fetch "#{bottle_api_path}/#{name}.json", json: true
+ Homebrew::API.fetch "#{bottle_api_path}/#{name}.json"
end
sig { params(name: String).returns(T::Boolean) } | true |
Other | Homebrew | brew | eab0f88c3cf9dfc2396f35281022d14592d7b8dc.json | Remove `json` argument and extend `Cachable` | Library/Homebrew/api/cask.rb | @@ -13,7 +13,7 @@ module Cask
sig { params(name: String).returns(Hash) }
def fetch(name)
- Homebrew::API.fetch "cask/#{name}.json", json: true
+ Homebrew::API.fetch "cask/#{name}.json"
end
end
end | true |
Other | Homebrew | brew | eab0f88c3cf9dfc2396f35281022d14592d7b8dc.json | Remove `json` argument and extend `Cachable` | Library/Homebrew/api/formula.rb | @@ -19,7 +19,7 @@ def formula_api_path
sig { params(name: String).returns(Hash) }
def fetch(name)
- Homebrew::API.fetch "#{formula_api_path}/#{name}.json", json: true
+ Homebrew::API.fetch "#{formula_api_path}/#{name}.json"
end
end
end | true |
Other | Homebrew | brew | eab0f88c3cf9dfc2396f35281022d14592d7b8dc.json | Remove `json` argument and extend `Cachable` | Library/Homebrew/api/versions.rb | @@ -13,17 +13,17 @@ module Versions
def formulae
# The result is cached by Homebrew::API.fetch
- Homebrew::API.fetch "versions-formulae.json", json: true
+ Homebrew::API.fetch "versions-formulae.json"
end
def linux
# The result is cached by Homebrew::API.fetch
- ... | true |
Other | Homebrew | brew | ff15e091ecc5bd88bd44d7c16e6a58cdd112cb0d.json | Add RBI file for Formula delegate methods | Library/Homebrew/formula.rbi | @@ -0,0 +1,54 @@
+# typed: strict
+
+# This file provides definitions for Forwardable#delegate, which is currently not supported by Sorbet.
+
+class Formula
+ def bottle_unneeded?; end
+ def bottle_disabled?; end
+ def bottle_disable_reason; end
+ def bottle_defined?; end
+ def bottle_tag?; end
+ def bottled?; en... | false |
Other | Homebrew | brew | dc2b55f383d09cb0365811460b6a0191ef064eee.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/todo.rbi | @@ -3,8 +3,6 @@
# typed: strong
module ::StackProf; end
-module ::YARD::Docstring; end
-module ::YARD::DocstringParser; end
module DependencyCollector::Compat; end
module GitHubPackages::JSONSchemer; end
module OS::Mac::Version::NULL; end | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.