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
b3c82ae1cfd761eb1cb9c9cf9ca25979cfdac8f9.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
@@ -12647,8 +12647,8 @@ end class Object include ::Minitest::Expectations include ::ActiveSupport::Tryable - include ::Utils::Curl include ::SystemCommand::Mixin + include ::Utils::Curl include ::ActiveSupport::Dependencies::Loadable include ::ActiveSupport::ForkTracker::CoreExtPrivate include ::Ac...
false
Other
Homebrew
brew
0db7c0ba8a1e5234c6265c93da96dcf57ceb8f38.json
formula: add -DBUILD_TESTING=OFF to std_cmake_args
Library/Homebrew/formula.rb
@@ -1457,6 +1457,7 @@ def std_cmake_args -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev + -DBUILD_TESTING=OFF ] # Avoid false positives for clock_gettime support on 10.11.
false
Other
Homebrew
brew
635e58e9aaf692e3006c216916b17a2c13f51d0c.json
software_spec: fix bottle domain fallback handling
Library/Homebrew/formula.rb
@@ -364,7 +364,7 @@ def head_only? # @private sig { returns(T.nilable(Bottle)) } def bottle - Bottle.new(self, bottle_specification) if bottled? + @bottle ||= Bottle.new(self, bottle_specification) if bottled? end # The description of the software. @@ -1906,7 +1906,7 @@ def bottle_hash c...
true
Other
Homebrew
brew
635e58e9aaf692e3006c216916b17a2c13f51d0c.json
software_spec: fix bottle domain fallback handling
Library/Homebrew/resource.rb
@@ -174,6 +174,7 @@ def url(val = nil, **specs) @specs.merge!(specs) @using = @specs.delete(:using) @download_strategy = DownloadStrategyDetector.detect(url, using) + @downloader = nil end def version(val = nil)
true
Other
Homebrew
brew
635e58e9aaf692e3006c216916b17a2c13f51d0c.json
software_spec: fix bottle domain fallback handling
Library/Homebrew/software_spec.rb
@@ -309,29 +309,24 @@ def initialize(formula, spec) checksum, tag, cellar = spec.checksum_for(Utils::Bottles.tag) - filename = Filename.create(formula, tag, spec.rebuild) - - path, resolved_basename = spec.path_resolved_basename(@name, checksum, filename) - - @resource.url("#{spec.root_url}/#{path}", ...
true
Other
Homebrew
brew
635e58e9aaf692e3006c216916b17a2c13f51d0c.json
software_spec: fix bottle domain fallback handling
Library/Homebrew/utils/bottles.rb
@@ -85,6 +85,15 @@ def formula_contents(bottle_file, contents end + + def path_resolved_basename(root_url, name, checksum, filename) + if root_url.match?(GitHubPackages::URL_REGEX) + image_name = GitHubPackages.image_formula_name(name) + ["#{image_name}/blobs/sha256:#{che...
true
Other
Homebrew
brew
b358ffd4404eb36dea846bf027fd5acedb9c2ec9.json
Apply suggestions from code review
bin/brew
@@ -80,13 +80,15 @@ export HOMEBREW_PREFIX export HOMEBREW_REPOSITORY export HOMEBREW_LIBRARY +# set from user environment # shellcheck disable=SC2154 # Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset. if [[ -z "${HOMEBREW_EDITOR}" && -n "${VISUAL}" ]] then export HOMEBREW_EDITOR="${VISUAL}" fi +# set ...
false
Other
Homebrew
brew
a74d6060f317c360106d81c461827cb016752d39.json
settings: use quieter `system_command!` `safe_system` always outputs what it's running which isn't necessary in this case.
Library/Homebrew/settings.rb
@@ -1,12 +1,15 @@ # typed: true # frozen_string_literal: true +require "system_command" + module Homebrew # Helper functions for reading and writing settings. # # @api private module Settings extend T::Sig + include SystemCommand::Mixin module_function @@ -24,7 +27,7 @@ def write(setti...
false
Other
Homebrew
brew
1feed79e69859c9e93d5627636772550f4da7800.json
Use File.read over IO.read
Library/Homebrew/dev-cmd/bottle.rb
@@ -567,7 +567,7 @@ def bottle_formula(f, args:) def parse_json_files(filenames) filenames.map do |filename| - JSON.parse(IO.read(filename)) + JSON.parse(File.read(filename)) end end
true
Other
Homebrew
brew
1feed79e69859c9e93d5627636772550f4da7800.json
Use File.read over IO.read
Library/Homebrew/dev-cmd/pr-upload.rb
@@ -91,7 +91,7 @@ def pr_upload odie "No bottle JSON files found in the current working directory" if json_files.empty? bottles_hash = json_files.reduce({}) do |hash, json_file| - hash.deep_merge(JSON.parse(IO.read(json_file))) + hash.deep_merge(JSON.parse(File.read(json_file))) end if...
true
Other
Homebrew
brew
56a72fe2b1e35acb0df4179ecc79c7873a6f5d49.json
debrew/irb: fix trap handling
Library/Homebrew/debrew/irb.rb
@@ -5,8 +5,6 @@ # @private module IRB - def self.parse_opts(argv: nil); end - def self.start_within(binding) unless @setup_done setup(nil, argv: []) @@ -19,7 +17,7 @@ def self.start_within(binding) @CONF[:IRB_RC]&.call(irb.context) @CONF[:MAIN_CONTEXT] = irb.context - trap("SIGINT") d...
false
Other
Homebrew
brew
49285fb88c2b0845d9d4847b89e32ac9b54206e9.json
formulary: introduce ignore_errors parameter
Library/Homebrew/formulary.rb
@@ -47,24 +47,35 @@ def self.clear_cache super end - def self.load_formula(name, path, contents, namespace, flags:) + def self.load_formula(name, path, contents, namespace, flags:, ignore_errors:) raise "Formula loading disabled by HOMEBREW_DISABLE_LOAD_FORMULA!" if Homebrew::EnvConfig.disable_load_for...
false
Other
Homebrew
brew
8b808308c292e7079a85460dac13d13e1db453aa.json
Add ignorable module
Library/Homebrew/debrew.rb
@@ -3,42 +3,14 @@ require "mutex_m" require "debrew/irb" -require "warnings" -Warnings.ignore(/warning: callcc is obsolete; use Fiber instead/) do - require "continuation" -end +require "ignorable" # Helper module for debugging formulae. # # @api private module Debrew extend Mutex_m - # Marks exception...
true
Other
Homebrew
brew
8b808308c292e7079a85460dac13d13e1db453aa.json
Add ignorable module
Library/Homebrew/ignorable.rb
@@ -0,0 +1,58 @@ +# typed: false +# frozen_string_literal: true + +require "warnings" +Warnings.ignore(/warning: callcc is obsolete; use Fiber instead/) do + require "continuation" +end + +# Provides the ability to optionally ignore errors raised and continue execution. +# +# @api private +module Ignorable + # Marks ...
true
Other
Homebrew
brew
f578673253b00f1e236303bb997297e6c95d65da.json
add GitHub Actions to explanation
bin/brew
@@ -87,7 +87,7 @@ then fi # Set CI variable for Azure Pipelines and Jenkins -# (Set by default on Circle and Travis CI) +# (Set by default on GitHub Actions, Circle and Travis CI) if [[ -z "$CI" ]] && [[ -n "$TF_BUILD" || -n "$JENKINS_HOME" ]] then export CI="1"
false
Other
Homebrew
brew
ad22854bcb924fdc103bb3a3ea2b0358d8f0726a.json
brew.sh: remove problematic HOMEBREW_BOTTLE_DOMAIN export Partially fixes #11123.
Library/Homebrew/brew.sh
@@ -587,11 +587,6 @@ then export HOMEBREW_RUBY_WARNINGS="-W1" fi -if [[ -z "$HOMEBREW_BOTTLE_DOMAIN" ]] -then - export HOMEBREW_BOTTLE_DOMAIN="$HOMEBREW_BOTTLE_DEFAULT_DOMAIN" -fi - export HOMEBREW_BREW_DEFAULT_GIT_REMOTE="https://github.com/Homebrew/brew" if [[ -z "$HOMEBREW_BREW_GIT_REMOTE" ]] then
false
Other
Homebrew
brew
ae91ec277231a5f3df42af8c27c555a0cee3403e.json
github_packages: handle "manifest unknown"
Library/Homebrew/github_packages.rb
@@ -235,7 +235,7 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, keep_old: inspect_result = system_command(skopeo, print_stderr: false, args: inspect_args) # Order here is important - if !inspect_result.status.success? && inspect_result.stderr.exclude?("name unknown") + ...
false
Other
Homebrew
brew
627381e949233ec90e4ea4ffc9d0e811f68619b9.json
formula_installer: fix version scheme not being set in the tab
Library/Homebrew/formula_installer.rb
@@ -1160,6 +1160,7 @@ def pour tab.aliases = formula.aliases tab.arch = Hardware::CPU.arch tab.source["versions"]["stable"] = formula.stable.version.to_s + tab.source["versions"]["version_scheme"] = formula.version_scheme tab.source["path"] = formula.specified_path.to_s tab.source["tap_git_h...
false
Other
Homebrew
brew
b8d60c7fd6269aca252d56c4109d2e59cd60fdda.json
bottle: Restore old filename for non-GitHub package URLs The fix for #11090 in bd3f1d28e78bbc3e632b5439f001c6a2b3032fd9 changed the bottle json content but the downloader still expects bottles at the old location.
Library/Homebrew/dev-cmd/bottle.rb
@@ -507,6 +507,12 @@ def bottle_formula(f, args:) return unless args.json? + bottle_filename = if bottle.root_url.match?(GitHubPackages::URL_REGEX) + filename.github_packages + else + filename.bintray + end + json = { f.full_name => { "formula" => { @@ -532,7 +538,7 @@ d...
false
Other
Homebrew
brew
0f90267bd0ffdd6ebff241a9703173bdb1ced74e.json
dev-cmd/bottle: fix incorrect Cellar value in JSON
Library/Homebrew/dev-cmd/bottle.rb
@@ -527,7 +527,7 @@ def bottle_formula(f, args:) "bottle" => { "root_url" => bottle.root_url, "prefix" => bottle.prefix, - "cellar" => bottle.cellar.to_s, + "cellar" => bottle_cellar.to_s, "rebuild" => bottle.rebuild, "date" => Pathname(...
false
Other
Homebrew
brew
86c241ab42744f075484740583580c12e388db8e.json
Make search and create arguments mandatory Co-Authored-By: Nanda H Krishna <me@nandahkrishna.com>
Library/Homebrew/help.rb
@@ -16,7 +16,7 @@ module Help # NOTE: Keep lines less than 80 characters! Wrapping is just not cricket. HOMEBREW_HELP = <<~EOS Example usage: - brew search [TEXT|/REGEX/] + brew search TEXT|/REGEX/ brew info [FORMULA|CASK...] brew install FORMULA|CASK... brew up...
false
Other
Homebrew
brew
a19047e964f70865a1cb3d67a3842ab7b06f1805.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
@@ -8404,6 +8404,11 @@ module Homebrew::Livecheck::Strategy extend ::T::Private::Methods::SingletonMethodHooks end +class Homebrew::Service + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + module Homebrew::Settings extend ::T::Private::Methods::MethodHo...
false
Other
Homebrew
brew
f2064750f578c58335719ccf0ed33bd09c3d2ee3.json
Add casks to default help text
Library/Homebrew/help.rb
@@ -17,21 +17,21 @@ module Help HOMEBREW_HELP = <<~EOS Example usage: brew search [TEXT|/REGEX/] - brew info [FORMULA...] - brew install FORMULA... + brew info [FORMULA|CASK...] + brew install FORMULA|CASK... brew update - brew upgrade [FORMULA...] - ...
false
Other
Homebrew
brew
fca71c28aeda8605c0568bbd8bff399fe900fa34.json
bintray: fix filename for bottle uploads
Library/Homebrew/bintray.rb
@@ -217,8 +217,9 @@ def upload_bottles(bottles_hash, publish_package: false, warn_on_error: false) bintray_repo = bottle_hash["bintray"]["repository"] bottle_count = bottle_hash["bottle"]["tags"].length - bottle_hash["bottle"]["tags"].each do |_tag, tag_hash| - filename = tag_hash["filename"...
false
Other
Homebrew
brew
e574f320fc89aa7fc73e0edf66198a4fe6979e1c.json
software_spec: remove debug statement
Library/Homebrew/software_spec.rb
@@ -314,7 +314,6 @@ def initialize(formula, spec) @resource.url("#{spec.root_url}/#{path}", select_download_strategy(spec.root_url_specs)) @resource.downloader.resolved_basename = resolved_basename if resolved_basename.present? - p resolved_basename @resource.version = formula.pkg_version @reso...
false
Other
Homebrew
brew
218f9cd37fc5a9c70b126cafd6e2f66f7779a7b0.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
@@ -29881,6 +29881,11 @@ class Utils::Bottles::Collector extend ::T::Private::Methods::SingletonMethodHooks end +class Utils::Bottles::Tag + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + module Utils::Inreplace extend ::T::Private::Methods::MethodHooks...
false
Other
Homebrew
brew
a3063882e6fa40c4905a56fa162e0731e44be312.json
tests: fix a option bug
Library/Homebrew/dev-cmd/tests.rb
@@ -114,7 +114,7 @@ def tests %W[ --combine-stderr --serialize-stdout - --runtime-log "#{parallel_rspec_log_path}" + --runtime-log #{parallel_rspec_log_path} ] else %w[
false
Other
Homebrew
brew
279a0683afed964e2896091ee5c4150bef78c0f6.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/gems/nokogiri@1.11.3.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `nokogiri` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true @@ -742,7 +742,7 @@ class Nokogiri::XML::Document < ::No...
false
Other
Homebrew
brew
2ed333947874ea4291a9007afbda15c2f56b2e35.json
software_spec: fix handling of default non-host Cellar
Library/Homebrew/software_spec.rb
@@ -430,7 +430,6 @@ class BottleSpecification def initialize @rebuild = 0 @prefix = Homebrew::DEFAULT_PREFIX - @all_tags_cellar = Homebrew::DEFAULT_CELLAR @repository = Homebrew::DEFAULT_REPOSITORY @collector = Utils::Bottles::Collector.new @root_url_specs = {} @@ -472,7 +471,7 @@ def cel...
true
Other
Homebrew
brew
2ed333947874ea4291a9007afbda15c2f56b2e35.json
software_spec: fix handling of default non-host Cellar
Library/Homebrew/test/dev-cmd/bottle_spec.rb
@@ -586,7 +586,7 @@ def install new_catalina_sha256 = "ec6d7f08412468f28dee2be17ad8cd8b883b16b34329efcecce019b8c9736428" new_hash = { "tags" => { "catalina" => { "sha256" => new_catalina_sha256 } } } expected_checksum_hash = { mojave: "7571772bf7a0c9fe193e70e521318b53993bee6f351976c9b6e01e00d...
true
Other
Homebrew
brew
e2b8fbca082b69dd66f8ba4057501b5fcb02fdb0.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
@@ -5637,11 +5637,6 @@ class Cask::Artifact::AbstractArtifact extend ::T::Private::Methods::SingletonMethodHooks end -class Cask::Audit - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - module Cask::Cache extend ::T::Private::Methods::MethodHooks exte...
false
Other
Homebrew
brew
d707c0bbd8e925fe9ad1c02e515effc435353b41.json
github_packages: remove invalid docker tag characters. Some versions have `+` in them.
Library/Homebrew/github_packages.rb
@@ -110,6 +110,11 @@ def self.image_formula_name(formula_name) .tr("+", "x") end + def self.image_version_rebuild(version_rebuild) + # invalid docker tag characters + version_rebuild.tr("+", ".") + end + private IMAGE_CONFIG_SCHEMA_URI = "https://opencontainers.org/schema/image/con...
true
Other
Homebrew
brew
d707c0bbd8e925fe9ad1c02e515effc435353b41.json
github_packages: remove invalid docker tag characters. Some versions have `+` in them.
Library/Homebrew/software_spec.rb
@@ -403,7 +403,8 @@ def github_packages_manifest_resource resource.version(version_rebuild) image_name = GitHubPackages.image_formula_name(@name) - resource.url("#{@spec.root_url}/#{image_name}/manifests/#{version_rebuild}", { + image_tag = GitHubPackages.image_version_rebuild(version_rebuild)...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/bundle_version.rb
@@ -17,7 +17,11 @@ class BundleVersion sig { params(info_plist_path: Pathname).returns(T.nilable(T.attached_class)) } def self.from_info_plist(info_plist_path) plist = system_command!("plutil", args: ["-convert", "xml1", "-o", "-", info_plist_path]).plist + from_info_plist_content(plist) + end ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/livecheck.rb
@@ -501,8 +501,7 @@ def latest_version(formula_or_cask, json: false, full_name: false, verbose: fals regex_provided: livecheck_regex.present?, block_provided: livecheck.strategy_block.present?, ) - strategy = Strategy.from_symbol(livecheck_strategy) - strategy ||= st...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy.rb
@@ -148,6 +148,7 @@ def self.page_content(url) require_relative "strategy/bitbucket" require_relative "strategy/cpan" require_relative "strategy/electron_builder" +require_relative "strategy/extract_plist" require_relative "strategy/git" require_relative "strategy/github_latest" require_relative "strategy/gnome"
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/apache.rb
@@ -21,6 +21,8 @@ module Strategy # # @api public class Apache + extend T::Sig + # The `Regexp` used to determine if the strategy applies to the URL. URL_MATCH_REGEX = %r{ ^https?://www\.apache\.org @@ -45,7 +47,15 @@ def self.match?(url) # @param url [S...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/bitbucket.rb
@@ -28,6 +28,8 @@ module Strategy # # @api public class Bitbucket + extend T::Sig + # The `Regexp` used to determine if the strategy applies to the URL. URL_MATCH_REGEX = %r{ ^https?://bitbucket\.org @@ -52,7 +54,15 @@ def self.match?(url) # @param url [...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/cpan.rb
@@ -18,6 +18,8 @@ module Strategy # # @api public class Cpan + extend T::Sig + NICE_NAME = "CPAN" # The `Regexp` used to determine if the strategy applies to the URL. @@ -43,7 +45,15 @@ def self.match?(url) # @param url [String] the URL of the content to check ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/electron_builder.rb
@@ -64,10 +64,11 @@ def self.version_from_content(content, &block) params( url: String, regex: T.nilable(Regexp), + cask: T.nilable(Cask::Cask), block: T.nilable(T.proc.params(arg0: Hash).returns(String)), ).returns(T::Hash[Symbol, T.untyped]) ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/extract_plist.rb
@@ -0,0 +1,91 @@ +# typed: true +# frozen_string_literal: true + +require "bundle_version" +require "unversioned_cask_checker" +require_relative "page_match" + +module Homebrew + module Livecheck + module Strategy + # The {ExtractPlist} strategy downloads the file at a URL and + # extracts versions from c...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/git.rb
@@ -24,6 +24,8 @@ module Strategy # # @api public class Git + extend T::Sig + # The priority of the strategy on an informal scale of 1 to 10 (from # lowest to highest). PRIORITY = 8 @@ -74,7 +76,16 @@ def self.match?(url) # @param url [String] the URL of t...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/github_latest.rb
@@ -32,6 +32,8 @@ module Strategy # # @api public class GithubLatest + extend T::Sig + NICE_NAME = "GitHub - Latest" # A priority of zero causes livecheck to skip the strategy. We do this @@ -60,7 +62,15 @@ def self.match?(url) # @param url [String] the URL of th...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/gnome.rb
@@ -17,6 +17,8 @@ module Strategy # # @api public class Gnome + extend T::Sig + NICE_NAME = "GNOME" # The `Regexp` used to determine if the strategy applies to the URL. @@ -40,7 +42,15 @@ def self.match?(url) # @param url [String] the URL of the content to check ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/gnu.rb
@@ -29,6 +29,8 @@ module Strategy # # @api public class Gnu + extend T::Sig + NICE_NAME = "GNU" # The `Regexp` used to determine if the strategy applies to the URL. @@ -52,7 +54,15 @@ def self.match?(url) # @param url [String] the URL of the content to check ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/hackage.rb
@@ -17,6 +17,8 @@ module Strategy # # @api public class Hackage + extend T::Sig + # A `Regexp` used in determining if the strategy applies to the URL and # also as part of extracting the package name from the URL basename. PACKAGE_NAME_REGEX = /(?<package_name>.+?)...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/header_match.rb
@@ -35,8 +35,16 @@ def self.match?(url) # Checks the final URL for new versions after following all redirections, # using the provided regex for matching. - sig { params(url: String, regex: T.nilable(Regexp)).returns(T::Hash[Symbol, T.untyped]) } - def self.find_versions(url, regex, &b...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/launchpad.rb
@@ -23,6 +23,8 @@ module Strategy # # @api public class Launchpad + extend T::Sig + # The `Regexp` used to determine if the strategy applies to the URL. URL_MATCH_REGEX = %r{ ^https?://(?:[^/]+?\.)*launchpad\.net @@ -43,7 +45,15 @@ def self.match?(url) #...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/npm.rb
@@ -17,6 +17,8 @@ module Strategy # # @api public class Npm + extend T::Sig + NICE_NAME = "npm" # The `Regexp` used to determine if the strategy applies to the URL. @@ -39,7 +41,15 @@ def self.match?(url) # @param url [String] the URL of the content to check ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/page_match.rb
@@ -81,11 +81,12 @@ def self.page_matches(content, regex, &block) params( url: String, regex: T.nilable(Regexp), + cask: T.nilable(Cask::Cask), provided_content: T.nilable(String), block: T.nilable(T...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/pypi.rb
@@ -17,6 +17,8 @@ module Strategy # # @api public class Pypi + extend T::Sig + NICE_NAME = "PyPI" # The `Regexp` used to extract the package name and suffix (e.g., file @@ -49,7 +51,15 @@ def self.match?(url) # @param url [String] the URL of the content to check ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/sourceforge.rb
@@ -31,6 +31,8 @@ module Strategy # # @api public class Sourceforge + extend T::Sig + NICE_NAME = "SourceForge" # The `Regexp` used to determine if the strategy applies to the URL. @@ -55,7 +57,15 @@ def self.match?(url) # @param url [String] the URL of the conte...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/sparkle.rb
@@ -32,12 +32,24 @@ def self.match?(url) URL_MATCH_REGEX.match?(url) end - Item = Struct.new(:title, :url, :bundle_version, :short_version, :version, keyword_init: true) do + # @api private + Item = Struct.new( + # @api public + :title, + # @api publ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/livecheck/strategy/xorg.rb
@@ -38,6 +38,8 @@ module Strategy # # @api public class Xorg + extend T::Sig + NICE_NAME = "X.Org" # A `Regexp` used in determining if the strategy applies to the URL and @@ -78,7 +80,15 @@ def self.match?(url) # @param url [String] the URL of the content to chec...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/test/livecheck/strategy/page_match_spec.rb
@@ -79,7 +79,8 @@ describe "::find_versions?" do it "finds versions in provided_content" do - expect(page_match.find_versions(url, regex, page_content)).to eq(find_versions_cached_return_hash) + expect(page_match.find_versions(url, regex, provided_content: page_content)) + .to eq(find_version...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/test/livecheck/strategy/sparkle_spec.rb
@@ -10,26 +10,13 @@ let(:appcast_data) { { - title: "Version 1.2.3", - url: "https://www.example.com/example/example.tar.gz", - bundle_version: Homebrew::BundleVersion.new("1.2.3", "1234"), - short_version: "1.2.3", - version: "1234", + title: ...
true
Other
Homebrew
brew
a210b1a04ef52354c52ac3851582cc9ead805996.json
Add `extract_plist` strategy.
Library/Homebrew/unversioned_cask_checker.rb
@@ -60,6 +60,56 @@ def top_level_info_plists(paths) end end + sig { returns(T::Hash[String, BundleVersion]) } + def all_versions + versions = {} + + parse_info_plist = proc do |info_plist_path| + plist = system_command!("plutil", args: ["-convert", "xml1", "-o", "-", info_plist_path...
true
Other
Homebrew
brew
9476ba2d2f1dd60082e0a708f5683f678557e733.json
repair cache key and add restore key
.github/workflows/tests.yml
@@ -208,7 +208,8 @@ jobs: uses: actions/cache@v1 with: path: tests - key: ${{ runner.os }}-${{ matrix.test-flags }}-parallel_runtime_rspec + key: ${{ runner.os }}-${{ matrix.test-flags }}-parallel_runtime_rspec-${{ github.sha }} + restore-keys: ${{ runner.os }}-${...
false
Other
Homebrew
brew
5cae3f409640c2afbb1f87eaf99e790aba735f35.json
dev-cmd/bottle: fix license output. Don't output the complex license object but instead use the same format we use for `Formula#to_hash`.
Library/Homebrew/dev-cmd/bottle.rb
@@ -532,7 +532,7 @@ def bottle_formula(f, args:) "tap_git_revision" => tap_git_revision, "tap_git_remote" => tap_git_remote, "desc" => f.desc, - "license" => f.license, + "license" => SPDX.license_expression_to_string(f.license), ...
false
Other
Homebrew
brew
3c308aa031c81443f086a4f0ffb187ecbbefb175.json
create different tests log with each options
.github/workflows/tests.yml
@@ -207,9 +207,8 @@ jobs: - name: Cache parallel tests log uses: actions/cache@v1 with: - path: tests/parallel_runtime_rspec.log - key: ${{ runner.os }}-parallel_runtime_rspec.log - restore-keys: ${{ runner.os }}-parallel_runtime_rspec.log + path: tests + ...
true
Other
Homebrew
brew
3c308aa031c81443f086a4f0ffb187ecbbefb175.json
create different tests log with each options
Library/Homebrew/dev-cmd/tests.rb
@@ -98,10 +98,16 @@ def tests Dir.glob("test/**/*_spec.rb") end + parallel_rspec_log_name = "parallel_runtime_rspec" + parallel_rspec_log_name = "#{parallel_rspec_log_name}.no_compat" if args.no_compat? + parallel_rspec_log_name = "#{parallel_rspec_log_name}.generic" if args.generic? + ...
true
Other
Homebrew
brew
229e035a3dbc3268683c9f045eb7a58c19f500f7.json
Update PAT regex
Library/Homebrew/utils/github/api.rb
@@ -21,7 +21,7 @@ module GitHub #{ALL_SCOPES_URL} #{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")} EOS - GITHUB_PAT_REGEX = /^(?:[a-f0-9]{40}|gp1_[A-Za-z0-9_]{40,255})$/.freeze + GITHUB_PERSONAL_ACCESS_TOKEN_REGEX = /^(?:[a-f0-9]{40}|ghp_\w{36,251})$/.freeze ...
false
Other
Homebrew
brew
2852d9f0de7e49a138357b35f1f5c25e0607c15b.json
GHCR: Use reject to remove empty hash values
Library/Homebrew/github_packages.rb
@@ -206,8 +206,7 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) "org.opencontainers.image.url" => bottle_hash["formula"]["homepage"], "org.opencontainers.image.vendor" => org, "org.opencontainers.image.version" => version, - } - dele...
false
Other
Homebrew
brew
6eebcf46f7222fed06f51775f0acc4cc69db00ce.json
workflows/tests: remove version comments Dependabot doesn't bump them
.github/workflows/tests.yml
@@ -210,7 +210,7 @@ jobs: env: HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: codecov/codecov-action@fcebab03f26c7530a22baa63f06b3e0515f0c7cd # v1.2.1 + - uses: codecov/codecov-action@fcebab03f26c7530a22baa63f06b3e0515f0c7cd test-default-formula-linux: name: t...
false
Other
Homebrew
brew
52335b5d5cc3abe0e49369243b17017ed4a398fc.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.12.1.rbi
@@ -2180,6 +2180,8 @@ class RuboCop::Cop::Layout::EmptyLineAfterGuardClause < ::RuboCop::Cop::Base def last_argument_is_heredoc?(node); end def last_heredoc_argument(node); end def next_line_empty?(line); end + def next_line_empty_or_enable_directive_comment?(line); end + def next_line_enable_directive_comme...
false
Other
Homebrew
brew
a28b419d9d465f5168ac25aaf2fde9059e152007.json
CurlGitHubPackagesDownloadStrategy: Fix 3rd party Fix CurlGitHubPackagesDownloadStrategy for third party taps.
Library/Homebrew/software_spec.rb
@@ -306,9 +306,7 @@ def initialize(formula, spec) filename = Filename.create(formula, tag, spec.rebuild).bintray - # TODO: this will need adjusted when if we use GitHub Packages by default - path, resolved_basename = if (bottle_domain = Homebrew::EnvConfig.bottle_domain.presence) && - ...
false
Other
Homebrew
brew
e627885e16b5ea2df0414ddc5dd6f5a44abe4d13.json
OCI: Move CPU variant to sh.brew.cpu.variant
Library/Homebrew/github_packages.rb
@@ -194,6 +194,7 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) created_date = bottle_hash["bottle"]["date"] formula_annotations_hash = { + "com.github.package.type" => GITHUB_PACKAGE_TYPE, "org.opencontainers.image.created" => created_da...
false
Other
Homebrew
brew
c25b33a454d078e8b30b1b4c5c3d1ba43561733a.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
@@ -6252,6 +6252,10 @@ module CopHelper extend ::RSpec::Its end +class CurlDownloadStrategy + include ::AbstractDownloadStrategy::Compat_Fetch +end + class CxxStdlib extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks
false
Other
Homebrew
brew
f35baa27522997712b6c1a45ef19793ad839b6f9.json
OCI: Add sh.brew.tab to the image manifest The tab is needed to install the package using the SHA-256 of the single-architecture image.
Library/Homebrew/github_packages.rb
@@ -272,6 +272,7 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) "org.opencontainers.image.title" => "#{formula_full_name} #{tag}", "com.github.package.type" => GITHUB_PACKAGE_TYPE, "sh.brew.bottle.glibc.version" => glibc_ve...
false
Other
Homebrew
brew
ab04cfed831cf82232f4c1d815ada5f112133a71.json
Improve `_fetch` compatibility layer.
Library/Homebrew/compat/early/download_strategy.rb
@@ -2,21 +2,41 @@ # frozen_string_literal: true class AbstractDownloadStrategy - module Compat + module CompatFetch def fetch(timeout: nil) super() end end + module Compat_Fetch # rubocop:disable Naming/ClassAndModuleCamelCase + def _fetch(*args, **options) + options[:timeout] = nil...
true
Other
Homebrew
brew
ab04cfed831cf82232f4c1d815ada5f112133a71.json
Improve `_fetch` compatibility layer.
Library/Homebrew/compat/late.rb
@@ -1,4 +1,2 @@ # typed: strict # frozen_string_literal: true - -require_relative "late/download_strategy"
true
Other
Homebrew
brew
ab04cfed831cf82232f4c1d815ada5f112133a71.json
Improve `_fetch` compatibility layer.
Library/Homebrew/compat/late/download_strategy.rb
@@ -1,20 +0,0 @@ -# typed: false -# frozen_string_literal: true - -class CurlDownloadStrategy - module Compat - def _fetch(*args, **options) - unless options.key?(:timeout) - odeprecated "#{self.class}#_fetch" - options[:timeout] = nil - end - super(*args, **options) - end - end - -...
true
Other
Homebrew
brew
7fbe08e857b46402f57b1eefa92f7f52cfb92276.json
add a directory for test log
.github/workflows/tests.yml
@@ -201,6 +201,9 @@ jobs: - name: Install Bundler RubyGems run: brew install-bundler-gems + - name: Create parallel test log + run: mkdir tests + - name: Run brew tests run: | # brew tests doesn't like world writable directories @@ -215,7 +218,7 @@ jobs: -...
true
Other
Homebrew
brew
7fbe08e857b46402f57b1eefa92f7f52cfb92276.json
add a directory for test log
Library/Homebrew/dev-cmd/tests.rb
@@ -98,8 +98,8 @@ def tests Dir.glob("test/**/*_spec.rb") end - parallel_rspec_log_path =if ENV["CI"] - "parallel_runtime_rspec.log" + parallel_rspec_log_path = if ENV["CI"] + "tests/parallel_runtime_rspec.log" else "#{HOMEBREW_CACHE}/tests/parallel_runtime_rspe...
true
Other
Homebrew
brew
7f5a97d1f3674c889d2d62c03e5b4e558d2ad771.json
change directory for log
.github/workflows/tests.yml
@@ -204,7 +204,7 @@ jobs: - name: Cache parallel tests log uses: actions/cache@v1 with: - path: /tests/parallel_runtime_rspec.log + path: /tmp/parallel_runtime_rspec.log key: ${{ runner.os }}-parallel_runtime_rspec-${{ hashFiles('**/parallel_runtime_rspec.log') }} ...
true
Other
Homebrew
brew
7f5a97d1f3674c889d2d62c03e5b4e558d2ad771.json
change directory for log
Library/Homebrew/dev-cmd/tests.rb
@@ -99,7 +99,7 @@ def tests end parallel_rspec_log_path =if ENV["CI"] - "/tests/parallel_runtime_rspec.log" + "/tmp/parallel_runtime_rspec.log" else "#{HOMEBREW_CACHE}/tests/parallel_runtime_rspec.log" end
true
Other
Homebrew
brew
72a79d934e9c52a8468a6eab4708f36228fff2c6.json
Fix audit annotations for casks.
Library/Homebrew/cask/audit.rb
@@ -96,15 +96,15 @@ def warnings @warnings ||= [] end - def add_error(message) - errors << message + def add_error(message, location: nil) + errors << ({ message: message, location: location }) end - def add_warning(message) + def add_warning(message, location: nil) if ...
true
Other
Homebrew
brew
72a79d934e9c52a8468a6eab4708f36228fff2c6.json
Fix audit annotations for casks.
Library/Homebrew/cask/cmd/audit.rb
@@ -59,8 +59,6 @@ def run display_failures_only: args.display_failures_only?, ) - self.class.print_annotations(results) - failed_casks = results.reject { |_, result| result[:errors].empty? }.map(&:first) return if failed_casks.empty? @@ -103,23 +101,9 @@ def self.audit_c...
true
Other
Homebrew
brew
72a79d934e9c52a8468a6eab4708f36228fff2c6.json
Fix audit annotations for casks.
Library/Homebrew/dev-cmd/audit.rb
@@ -166,7 +166,7 @@ def audit spdx_license_data = SPDX.license_data spdx_exception_data = SPDX.exception_data new_formula_problem_lines = [] - audit_formulae.sort.each do |f| + formula_results = audit_formulae.sort.map do |f| only = only_cops ? ["style"] : args.only options = { ...
true
Other
Homebrew
brew
72a79d934e9c52a8468a6eab4708f36228fff2c6.json
Fix audit annotations for casks.
Library/Homebrew/test/cask/audit_spec.rb
@@ -4,11 +4,11 @@ require "cask/audit" describe Cask::Audit, :cask do - def include_msg?(messages, msg) + def include_msg?(problems, msg) if msg.is_a?(Regexp) - Array(messages).any? { |m| m =~ msg } + Array(problems).any? { |problem| problem[:message] =~ msg } else - Array(messages).inclu...
true
Other
Homebrew
brew
244cacf1c4593d47a3d27a46b9a91ade161ae557.json
github_packages: Add platform.variant on Linux only
Library/Homebrew/github_packages.rb
@@ -246,24 +246,14 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) (tab["built_on"]["glibc_version"] if tab["built_on"].present?) || "2.23" end - variant = if architecture == "arm64" - "v8" - elsif tab["oldest_cpu_family"] - tab["oldest_cpu_f...
false
Other
Homebrew
brew
2b7824f7de4a5587112226edb466deabd04ba30a.json
github_packages: Use hash compact
Library/Homebrew/github_packages.rb
@@ -205,10 +205,7 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) "org.opencontainers.image.url" => bottle_hash["formula"]["homepage"], "org.opencontainers.image.vendor" => org, "org.opencontainers.image.version" => version, - } - for...
false
Other
Homebrew
brew
82a787fdc7408228288a06a94a4715da83d03dfd.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -532,14 +532,6 @@ class ActiveSupport::CurrentAttributes def _reset_callbacks(); end def _run_reset_callbacks(&block); end - - def attributes(); end - - def attributes=(attributes); end - - def reset(); end - - def set(set_attributes); end end class ActiveSupport::CurrentAttributes @@ -561,17 +553,9 ...
false
Other
Homebrew
brew
695d44847a7b232dd57aa5728d5b030228339922.json
Adjust YARD config.
Library/Homebrew/.yardopts
@@ -7,6 +7,7 @@ --exclude test/ --exclude vendor/ --exclude compat/ +extend/os/**/*.rb **/*.rb - *.md
true
Other
Homebrew
brew
695d44847a7b232dd57aa5728d5b030228339922.json
Adjust YARD config.
Library/Homebrew/README.md
@@ -1,6 +1,6 @@ # Homebrew Ruby API -This is the public API for [Homebrew](https://github.com/Homebrew). +This is the API for [Homebrew](https://github.com/Homebrew). The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae ...
true
Other
Homebrew
brew
695d44847a7b232dd57aa5728d5b030228339922.json
Adjust YARD config.
Library/Homebrew/yard/templates/default/docstring/html/internal.erb
@@ -1,5 +1,5 @@ <p class="note private"> <strong>This <%= object.type %> is part of an internal API.</strong> This <%= object.type %> may only be used internally in repositories owned by <a href="https://github.com/Homebrew">Homebrew</a>, except in casks or formulae. - Third parties should avoid using this <%= ...
true
Other
Homebrew
brew
695d44847a7b232dd57aa5728d5b030228339922.json
Adjust YARD config.
Library/Homebrew/yard/templates/default/docstring/html/private.erb
@@ -1,5 +1,5 @@ <p class="note private"> <strong>This <%= object.type %> is part of a private API.</strong> This <%= object.type %> may only be used in the <a href="https://github.com/Homebrew/brew">Homebrew/brew</a> repository. - Third parties should avoid using this <%= object.type %> if possible, as it may b...
true
Other
Homebrew
brew
695d44847a7b232dd57aa5728d5b030228339922.json
Adjust YARD config.
Library/Homebrew/yard/templates/default/layout/html/footer.erb
@@ -0,0 +1,3 @@ +<div id="footer"> + Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>. +</div>
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
.gitignore
@@ -32,6 +32,9 @@ **/vendor/bundle/ruby/*/gems/*/* **/vendor/bundle/ruby/*/specifications +# Ignore YARD files +**/.yardoc + # Unignore vendored gems !**/vendor/bundle/ruby/*/gems/*/lib !**/vendor/bundle/ruby/*/gems/rubocop-performance-*/config
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
.yardopts
@@ -1,10 +0,0 @@ ---title "Homebrew" ---main Library/Homebrew/README.md ---markup markdown ---no-private ---exclude Library/Homebrew/test/ ---exclude Library/Homebrew/vendor/ ---exclude Library/Homebrew/compat/ -Library/Homebrew/**/*.rb -- -*.md
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
Library/Homebrew/.yardopts
@@ -0,0 +1,12 @@ +--title "Homebrew Ruby API" +--main README.md +--markup markdown +--no-private +--load yard/ignore_directives.rb +--template-path yard/templates +--exclude test/ +--exclude vendor/ +--exclude compat/ +**/*.rb +- +*.md
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
Library/Homebrew/README.md
@@ -1,6 +1,6 @@ -# Homebrew's Formula API +# Homebrew Ruby API -This is the public API for Homebrew. +This is the public API for [Homebrew](https://github.com/Homebrew). The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formula...
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
Library/Homebrew/sorbet/rbi/todo.rbi
@@ -3,6 +3,8 @@ # 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
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
Library/Homebrew/yard/ignore_directives.rb
@@ -0,0 +1,11 @@ +# typed: false +# frozen_string_literal: true + +# from https://github.com/lsegal/yard/issues/484#issuecomment-442586899 +class IgnoreDirectiveDocstringParser < YARD::DocstringParser + def parse_content(content) + super(content&.sub(/(\A(typed|.*rubocop)|TODO):.*/m, "")) + end +end + +YARD::Docst...
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
Library/Homebrew/yard/templates/default/docstring/html/internal.erb
@@ -0,0 +1,5 @@ +<p class="note private"> + <strong>This <%= object.type %> is part of an internal API.</strong> + This <%= object.type %> may only be used internally in repositories owned by <a href="https://github.com/Homebrew">Homebrew</a>, except in casks or formulae. + Third parties should avoid using this <%= ...
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
Library/Homebrew/yard/templates/default/docstring/html/private.erb
@@ -0,0 +1,5 @@ +<p class="note private"> + <strong>This <%= object.type %> is part of a private API.</strong> + This <%= object.type %> may only be used in the <a href="https://github.com/Homebrew/brew">Homebrew/brew</a> repository. + Third parties should avoid using this <%= object.type %> if possible, as it may b...
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
Library/Homebrew/yard/templates/default/docstring/html/setup.rb
@@ -0,0 +1,14 @@ +# typed: false +# frozen_string_literal: true + +def init + super + + return if sections.empty? + + sections[:index].place(:internal).before(:private) +end + +def internal + erb(:internal) if object.has_tag?(:api) && object.tag(:api).text == "internal" +end
true
Other
Homebrew
brew
7ada54886818ecadbd74aded0e3c9d6d2e63bc94.json
Move YARD config into `Library/Homebrew`.
Library/Homebrew/yard/templates/default/module/html/item_summary.erb
@@ -0,0 +1,39 @@ + +<li class="<%= @item.visibility %> <%= @item.has_tag?(:deprecated) ? 'deprecated' : '' %>"> + <span class="summary_signature"> + <% if @item.tags(:overload).size == 1 %> + <%= signature(@item.tag(:overload), true, false, !@item.attr_info) %> + <% else %> + <%= signature(@item, true,...
true
Other
Homebrew
brew
4e94f75bcb10971ef421e075f297a4e35d52fcd1.json
github_packages: Add glibc to os.version on Linux
Library/Homebrew/github_packages.rb
@@ -235,10 +235,18 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) end raise TypeError, "unknown tab['built_on']['os']: #{tab["built_on"]["os"]}" if os.blank? - os_version = if tab["built_on"].present? && tab["built_on"]["os_version"].present? - tab["built...
false
Other
Homebrew
brew
e26b13a74ab9d6c2aa480f54677cece668b51098.json
Add Codecov on macOS builds
.github/workflows/tests.yml
@@ -301,3 +301,5 @@ jobs: HOMEBREW_LANGUAGES: en-GB - run: brew test-bot --only-formulae --test-default-formula + + - uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1
false