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 | 6efcde2eefea57692e6bde37ffd99c90151db536.json | shared_audts: add freetube to GITHUB_PRERELEASE_ALLOWLIST | Library/Homebrew/utils/shared_audits.rb | @@ -30,6 +30,7 @@ def github_release_data(user, repo, tag)
GITHUB_PRERELEASE_ALLOWLIST = {
"amd-power-gadget" => :all,
"elm-format" => "0.8.3",
+ "freetube" => :all,
"gitless" => "0.8.8",
"infrakit" => "0.5",
"pock" => :all, | false |
Other | Homebrew | brew | dba1cfbec999a21181b2b83fbd21956a66a108d8.json | options: handle `nil` array.
Fixes #8835 | Library/Homebrew/options.rb | @@ -68,7 +68,7 @@ class Options
include Enumerable
def self.create(array)
- new array.map { |e| Option.new(e[/^--([^=]+=?)(.+)?$/, 1] || e) }
+ new Array(array).map { |e| Option.new(e[/^--([^=]+=?)(.+)?$/, 1] || e) }
end
def initialize(*args) | false |
Other | Homebrew | brew | 6735debcd43dea6248c1e95c0842cc8252a5ac58.json | livecheck/pypi: allow post in pypi version | Library/Homebrew/livecheck/strategy/pypi.rb | @@ -49,7 +49,8 @@ def self.find_versions(url, regex = nil)
# Example regex: `%r{href=.*?/packages.*?/example[._-]v?(\d+(?:\.\d+)*).t}i`.
regex ||=
- %r{href=.*?/packages.*?/#{Regexp.escape(package_name)}[._-]v?(\d+(?:\.\d+)*)#{Regexp.escape(suffix)}}i
+ %r{href=.*?/packages... | false |
Other | Homebrew | brew | f01f3a9f5677e896b6b7a921ba491323efe5a23b.json | pr-pull: fix signoff for linuxbrew-core | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -104,7 +104,7 @@ def signoff!(path, pr: nil, dry_run: false)
if pr
# This is a tap pull request and approving reviewers should also sign-off.
tap = Tap.from_path(path)
- trailers += GitHub.approved_reviews(tap.user, "homebrew-#{tap.repo}", pr).map do |r|
+ trailers += GitHub.approved_rev... | false |
Other | Homebrew | brew | f5ffd712668156aaf5ca0cf468d9d238d9f7ecf7.json | tap: remove redundant exception.
Don't raise an exception only to catch it. | Library/Homebrew/tap.rb | @@ -38,12 +38,9 @@ def self.fetch(*args)
def self.from_path(path)
match = File.expand_path(path).match(HOMEBREW_TAP_PATH_REGEX)
- raise "Invalid tap path '#{path}'" unless match
+ return if match.blank? || match[:user].blank? || match[:repo].blank?
fetch(match[:user], match[:repo])
- rescue
- ... | false |
Other | Homebrew | brew | b3d12361acb9d41fbe5ca772a01af941a9be9bf1.json | sorbet: Update RBI files and prune files.yaml.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml). | Library/Homebrew/sorbet/rbi/gems/parser@2.7.1.5.rbi | @@ -1,10 +1,16 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `parser` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
+# Please instead update this file by running `tapioca sync`.
# typed: true
module Parser
+ class << self
+
+ pr... | true |
Other | Homebrew | brew | b3d12361acb9d41fbe5ca772a01af941a9be9bf1.json | sorbet: Update RBI files and prune files.yaml.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml). | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@0.7.0.rbi | @@ -8,6 +8,7 @@ module RuboCop
end
module RuboCop::AST
+ extend(::RuboCop::AST::RuboCopCompatibility)
end
class RuboCop::AST::AliasNode < ::RuboCop::AST::Node
@@ -37,8 +38,6 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
def values; end
end
-RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let... | true |
Other | Homebrew | brew | b3d12361acb9d41fbe5ca772a01af941a9be9bf1.json | sorbet: Update RBI files and prune files.yaml.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml). | Library/Homebrew/sorbet/rbi/gems/rubocop@0.92.0.rbi | @@ -175,7 +175,7 @@ class RuboCop::CommentConfig
def each_directive; end
def each_mentioned_cop; end
def enable_all?(comment); end
- def extra_enabled_comments_with_names(extras, names); end
+ def extra_enabled_comments_with_names(extras:, names:); end
def handle_enable_all(names, extras, comment); end
... | true |
Other | Homebrew | brew | b3d12361acb9d41fbe5ca772a01af941a9be9bf1.json | sorbet: Update RBI files and prune files.yaml.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml). | Library/Homebrew/sorbet/rbi/gems/strscan@1.0.3.rbi | @@ -0,0 +1,8 @@
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `strscan` gem.
+# Please instead update this file by running `tapioca sync`.
+
+# typed: true
+
+# THIS IS AN EMPTY RBI FILE.
+# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires | true |
Other | Homebrew | brew | b3d12361acb9d41fbe5ca772a01af941a9be9bf1.json | sorbet: Update RBI files and prune files.yaml.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml). | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -14200,893 +14200,7 @@ end
ParseError = Racc::ParseError
-Parser::CurrentRuby = Parser::Ruby26
-
-class Parser::Ruby24
- def _reduce_10(val, _values, result); end
-
- def _reduce_100(val, _values, result); end
-
- def _reduce_101(val, _values, result); end
-
- def _reduce_102(val, _values, result); end
-
- ... | true |
Other | Homebrew | brew | fc9a74dd282b6a00bfaa663d901b478f4f937c4b.json | Prevent tapping `phinze/cask`. | Library/Homebrew/tap.rb | @@ -235,7 +235,7 @@ def install(full_clone: true, quiet: false, clone_target: nil, force_auto_update
if official? && DEPRECATED_OFFICIAL_TAPS.include?(repo)
odie "#{name} was deprecated. This tap is now empty and all its contents were either deleted or migrated."
- elsif user == "caskroom"
+ elsif u... | false |
Other | Homebrew | brew | 0c74d93939e67e6929a6e581506cf33892f252c6.json | Fix man page difference on Linux. | Library/Homebrew/cask/cmd/abstract_command.rb | @@ -1,6 +1,5 @@
# frozen_string_literal: true
-require "cask/config"
require "search"
module Cask
@@ -35,8 +34,7 @@ def self.banner_headline
OPTIONS = [
[:switch, "--[no-]binaries", {
- description: "Disable/enable linking of helper executables to `#{Config.global.binarydir}`. " \
- ... | true |
Other | Homebrew | brew | 0c74d93939e67e6929a6e581506cf33892f252c6.json | Fix man page difference on Linux. | docs/Manpage.md | @@ -382,7 +382,7 @@ installed formulae or, every 30 days, for all formulae.
* `--language`:
Set language of the Cask to install. The first matching language is used, otherwise the default language on the Cask. The default value is the `language of your system`
* `--[no-]binaries`:
- Disable/enable linking of help... | true |
Other | Homebrew | brew | 0c74d93939e67e6929a6e581506cf33892f252c6.json | Fix man page difference on Linux. | manpages/brew.1 | @@ -593,7 +593,7 @@ Set language of the Cask to install\. The first matching language is used, other
.
.TP
\fB\-\-[no\-]binaries\fR
-Disable/enable linking of helper executables to \fB/usr/local/bin\fR\. Default: enabled
+Disable/enable linking of helper executables\. Default: enabled
.
.TP
\fB\-\-require\-sha\fR | true |
Other | Homebrew | brew | 08be729af04de693d7f44f3a3b216c3e15172dcb.json | Support all cask options in `brew install`. | Library/Homebrew/cask/cmd.rb | @@ -79,6 +79,70 @@ def self.description
EOS
end
+ OPTIONS = [
+ [:flag, "--appdir=", {
+ description: "Target location for Applications. " \
+ "Default: `#{Config::DEFAULT_DIRS[:appdir]}`",
+ }],
+ [:flag, "--colorpickerdir=", {
+ description: "Target lo... | true |
Other | Homebrew | brew | 08be729af04de693d7f44f3a3b216c3e15172dcb.json | Support all cask options in `brew install`. | Library/Homebrew/cask/cmd/abstract_command.rb | @@ -33,6 +33,22 @@ def self.banner_headline
"`#{command_name}` [<options>]#{banner_args}"
end
+ OPTIONS = [
+ [:switch, "--[no-]binaries", {
+ description: "Disable/enable linking of helper executables to `#{Config.global.binarydir}`. " \
+ "Default: enabled"... | true |
Other | Homebrew | brew | 08be729af04de693d7f44f3a3b216c3e15172dcb.json | Support all cask options in `brew install`. | Library/Homebrew/cask/cmd/install.rb | @@ -14,12 +14,20 @@ def self.description
"Installs the given <cask>."
end
+ OPTIONS = [
+ [:switch, "--skip-cask-deps", {
+ description: "Skip installing cask dependencies.",
+ }],
+ ].freeze
+
def self.parser(&block)
super do
switch "--force... | true |
Other | Homebrew | brew | 08be729af04de693d7f44f3a3b216c3e15172dcb.json | Support all cask options in `brew install`. | Library/Homebrew/cmd/install.rb | @@ -1,6 +1,8 @@
# frozen_string_literal: true
require "cask/config"
+require "cask/cmd"
+require "cask/cmd/install"
require "missing_formula"
require "formula_installer"
require "development_tools"
@@ -16,110 +18,94 @@ module Homebrew
module_function
def install_args
- cask_only_options = {
- ["-... | true |
Other | Homebrew | brew | 08be729af04de693d7f44f3a3b216c3e15172dcb.json | Support all cask options in `brew install`. | docs/Manpage.md | @@ -314,7 +314,7 @@ installed formulae or, every 30 days, for all formulae.
* `-d`, `--debug`:
If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory.
* `-f`, `--force`:
- Install without checking for previously installed keg-only or non-migrated... | true |
Other | Homebrew | brew | 08be729af04de693d7f44f3a3b216c3e15172dcb.json | Support all cask options in `brew install`. | manpages/brew.1 | @@ -457,7 +457,7 @@ If brewing fails, open an interactive debugging session with access to IRB or a
.
.TP
\fB\-f\fR, \fB\-\-force\fR
-Install without checking for previously installed keg\-only or non\-migrated versions\.
+Install formulae without checking for previously installed keg\-only or non\-migrated versions... | true |
Other | Homebrew | brew | 73ac03149c35687d1674497e01bcd58d6a18fd13.json | Switch most dependabot updates back to `daily`. | .github/dependabot.yml | @@ -5,14 +5,23 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
- interval: weekly
+ interval: daily
- package-ecosystem: bundler
directory: /docs
schedule:
interval: weekly
+ - package-ecosystem: bundler
+ directory: /Library/Homebrew
+ schedu... | false |
Other | Homebrew | brew | 87b05a9be29170fe7e932710bf01d5a94e135f78.json | sorbet: Update RBI files and prune files.yaml.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml). | Library/Homebrew/sorbet/rbi/gems/regexp_parser@1.8.0.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `regexp_parser` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
+# Please instead update this file by running `tapioca sync`.
# typed: true
@@ -794,7 +794,7 @@ class Regexp::Ex... | false |
Other | Homebrew | brew | 0447b2200ff5da3d249d0f6cedb79ea0cbb4ce3b.json | dev-cmd/pull: recommend gh over hub.
`gh` is the official GitHub tool and better maintained at this point. | Library/Homebrew/dev-cmd/pull.rb | @@ -43,6 +43,6 @@ def pull_args
end
def pull
- odisabled "brew pull", "hub checkout"
+ odisabled "brew pull", "gh pr checkout"
end
end | false |
Other | Homebrew | brew | 415c36041a87ef59eab0c04f557f8f498d762b90.json | dev-cmd/pr-pull: use GitHub API to get PR commits | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -275,22 +275,20 @@ def autosquash!(original_commit, path: ".", args: nil)
raise
end
- def cherry_pick_pr!(pr, args:, path: ".")
+ def cherry_pick_pr!(user, repo, pr, args:, path: ".")
if args.dry_run?
puts <<~EOS
git fetch --force origin +refs/pull/#{pr}/head
git merge-base ... | true |
Other | Homebrew | brew | 415c36041a87ef59eab0c04f557f8f498d762b90.json | dev-cmd/pr-pull: use GitHub API to get PR commits | Library/Homebrew/test/utils/github_spec.rb | @@ -75,4 +75,11 @@
expect(url).to eq("https://api.github.com/repos/Homebrew/homebrew-core/actions/artifacts/3557392/zip")
end
end
+
+ describe "::pull_request_commits", :needs_network do
+ it "gets the correct commits hashes for a pull request" do
+ hashes = %w[188606a4a9587365d930b02c98ad6857b1... | true |
Other | Homebrew | brew | 415c36041a87ef59eab0c04f557f8f498d762b90.json | dev-cmd/pr-pull: use GitHub API to get PR commits | Library/Homebrew/utils/github.rb | @@ -747,4 +747,8 @@ def create_bump_pr(info, args:)
end
end
end
+
+ def pull_request_commits(user, repo, pr)
+ open_api(url_to("repos", user, repo, "pulls", pr, "commits?per_page=100")).map { |c| c["sha"] }
+ end
end | true |
Other | Homebrew | brew | e3646c9b4e9dea9204f3c8a3bb472638546c4534.json | Remove unneeded back-references. | Library/Homebrew/extend/ENV/shared.rb | @@ -166,10 +166,12 @@ def fcflags
# end</pre>
def compiler
@compiler ||= if (cc = @cc)
- warn_about_non_apple_gcc($&) if cc =~ GNU_GCC_REGEXP
+ warn_about_non_apple_gcc(cc) if cc.match?(GNU_GCC_REGEXP)
+
fetch_compiler(cc, "--cc")
elsif (cc = homebrew_cc)
- warn_about_non_apple_gcc... | true |
Other | Homebrew | brew | e3646c9b4e9dea9204f3c8a3bb472638546c4534.json | Remove unneeded back-references. | Library/Homebrew/extend/ENV/std.rb | @@ -46,9 +46,9 @@ def setup_build_environment(**options)
send(compiler)
- return unless cc =~ GNU_GCC_REGEXP
+ return unless cc.match?(GNU_GCC_REGEXP)
- gcc_formula = gcc_version_formula($&)
+ gcc_formula = gcc_version_formula(cc)
append_path "PATH", gcc_formula.opt_bin.to_s
end
alias ... | true |
Other | Homebrew | brew | e3646c9b4e9dea9204f3c8a3bb472638546c4534.json | Remove unneeded back-references. | Library/Homebrew/extend/ENV/super.rb | @@ -111,7 +111,7 @@ def determine_path
path.append("/usr/bin", "/bin", "/usr/sbin", "/sbin")
begin
- path.append(gcc_version_formula($&).opt_bin) if homebrew_cc =~ GNU_GCC_REGEXP
+ path.append(gcc_version_formula(homebrew_cc).opt_bin) if homebrew_cc.match?(GNU_GCC_REGEXP)
rescue FormulaUnavai... | true |
Other | Homebrew | brew | e686a392c500888f85a069b625fc70495a920af5.json | bump-formula-pr: add message to check resources | Library/Homebrew/dev-cmd/bump-formula-pr.rb | @@ -330,11 +330,22 @@ def bump_formula_pr
end
unless args.dry_run?
- PyPI.update_python_resources! formula, new_formula_version, silent: args.quiet?, ignore_non_pypi_packages: true
+ resources_checked = PyPI.update_python_resources! formula, new_formula_version,
+ ... | true |
Other | Homebrew | brew | e686a392c500888f85a069b625fc70495a920af5.json | bump-formula-pr: add message to check resources | Library/Homebrew/utils/pypi.rb | @@ -56,6 +56,7 @@ def get_pypi_info(package, version)
[json["info"]["name"], sdist["url"], sdist["digests"]["sha256"]]
end
+ # Return true if resources were checked (even if no change)
def update_python_resources!(formula, version = nil, print_only: false, silent: false,
ig... | true |
Other | Homebrew | brew | 34ea8cbc9d0e45b8c30dc05792a3f3ddd82cef9e.json | PULL_REQUEST_TEMPLATE: Add a checklist item for `brew man`
- I've been changing command flags recently. I always forget to run
`brew man`, then I feel bad about causing red CI on my PRs. This has
happened to others too, so make `brew man` more obvious as a thing
that one should check. | .github/PULL_REQUEST_TEMPLATE.md | @@ -4,5 +4,6 @@
- [ ] Have you written new tests for your changes? [Here's an example](https://github.com/Homebrew/brew/blob/HEAD/Library/Homebrew/test/PATH_spec.rb).
- [ ] Have you successfully run `brew style` with your changes locally?
- [ ] Have you successfully run `brew tests` with your changes locally?
+- [ ]... | false |
Other | Homebrew | brew | 7ecb73f9da89bd3c6e752b860e8731e5607782e2.json | sorbet/files.yaml: Preserve newline at EOF | Library/Homebrew/dev-cmd/typecheck.rb | @@ -54,7 +54,7 @@ def typecheck
end
end
- File.write(SORBET_FILES_YAML, lines_to_keep.join("\n"))
+ File.write(SORBET_FILES_YAML, "#{lines_to_keep.join("\n")}\n")
end
if args.update_definitions? | true |
Other | Homebrew | brew | 7ecb73f9da89bd3c6e752b860e8731e5607782e2.json | sorbet/files.yaml: Preserve newline at EOF | Library/Homebrew/sorbet/files.yaml | @@ -963,4 +963,4 @@ strict:
- ./requirements.rb
- ./requirements/osxfuse_requirement.rb
- ./rubocops.rb
- - ./rubocops/rubocop-cask.rb
\ No newline at end of file
+ - ./rubocops/rubocop-cask.rb | true |
Other | Homebrew | brew | 56a8f8f99d73ea2b40b460e48105008b3c4ffdef.json | livecheck: fix TTY output for progress bar | Library/Homebrew/livecheck/livecheck.rb | @@ -75,7 +75,10 @@ def livecheck_formulae(formulae_to_check, args)
formulae_to_check.length
end
- $stderr.puts Formatter.headline("Running checks", color: :blue)
+ Tty.with($stderr) do |stderr|
+ stderr.puts Formatter.headline("Running checks", color: :blue)
+ end
+
... | true |
Other | Homebrew | brew | 56a8f8f99d73ea2b40b460e48105008b3c4ffdef.json | livecheck: fix TTY output for progress bar | Library/Homebrew/utils/tty.rb | @@ -88,7 +88,7 @@ def reset_escape_sequence!
SPECIAL_CODES.each do |name, code|
define_singleton_method(name) do
- if $stdout.tty?
+ if @stream.tty?
"\033[#{code}"
else
"" | true |
Other | Homebrew | brew | 4315a2647fec13e93976cba2a68e77f9b6e4947f.json | pr-pull: implement autosquash option | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -31,6 +31,9 @@ def pr_pull_args
switch "--keep-old",
description: "If the formula specifies a rebuild version, " \
"attempt to preserve its value in the generated DSL."
+ switch "--autosquash",
+ description: "Automatically reformat and reword commits ... | true |
Other | Homebrew | brew | 4315a2647fec13e93976cba2a68e77f9b6e4947f.json | pr-pull: implement autosquash option | docs/Manpage.md | @@ -1096,12 +1096,16 @@ Requires write access to the repository.
Do not amend the commits from pull requests.
* `--keep-old`:
If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL.
+* `--autosquash`:
+ Automatically reformat and reword commits in the pull request to our ... | true |
Other | Homebrew | brew | 4315a2647fec13e93976cba2a68e77f9b6e4947f.json | pr-pull: implement autosquash option | manpages/brew.1 | @@ -1519,6 +1519,10 @@ Do not amend the commits from pull requests\.
If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL\.
.
.TP
+\fB\-\-autosquash\fR
+Automatically reformat and reword commits in the pull request to our preferred format\.
+.
+.TP
\fB\-\-branch\-okay\fR
D... | true |
Other | Homebrew | brew | 86a838c03f5bea58cb4e19ef77d805a0af93829b.json | test/language/java_spec: drop version to 1.6+ | Library/Homebrew/test/language/java_spec.rb | @@ -5,7 +5,7 @@
describe Language::Java do
describe "::java_home" do
it "returns valid JAVA_HOME if version is specified", :needs_java do
- java_home = described_class.java_home("1.8+")
+ java_home = described_class.java_home("1.6+")
expect(java_home/"bin/java").to be_an_executable
end
| false |
Other | Homebrew | brew | f04b0142102a872d255440aef75984c1b213c584.json | language/python: build python binary names dynamically.
Co-authored-by: Alexander Bayandin <a.bayandin@gmail.com> | Library/Homebrew/language/python.rb | @@ -177,7 +177,7 @@ def needs_python?(python)
def virtualenv_install_with_resources(options = {})
python = options[:using]
if python.nil?
- pythons = %w[python python3 python@3 python@3.7 python@3.8 python@3.9 pypy pypy3]
+ pythons = %w[python python3 pypy pypy3] + Formula.nam... | false |
Other | Homebrew | brew | 875696de1b21ee992335c39b978097b77faba955.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -13372,6 +13372,7 @@ class Object
HOMEBREW_PRODUCT = ::T.let(nil, ::T.untyped)
HOMEBREW_PULL_API_REGEX = ::T.let(nil, ::T.untyped)
HOMEBREW_PULL_OR_COMMIT_URL_REGEX = ::T.let(nil, ::T.untyped)
+ HOMEBREW_RELEASES_URL_REGEX = ::T.let(nil, ::T.untyped)
HOMEBREW_REPOSITORY = ::T.let(nil, ::T.untyped)
HO... | false |
Other | Homebrew | brew | 584c839dcaf466b9f0a925e52b844a8db99f2114.json | bump-cask-pr: fix branch name for versions with colon
Replace commas and colons with hyphens | Library/Homebrew/dev-cmd/bump-cask-pr.rb | @@ -193,7 +193,7 @@ def bump_cask_pr
sourcefile_path: cask.sourcefile_path,
old_contents: old_contents,
origin_branch: origin_branch,
- branch_name: "bump-#{cask.token}-#{new_version}",
+ branch_name: "bump-#{cask.token}-#{new_version.tr(",:", "-")}",
commit_message: ... | false |
Other | Homebrew | brew | 5f0a55a19963b0f6e662f299da658eec7bd1faca.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@0.4.0.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rubocop-ast` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
+# Please instead update this file by running `tapioca sync`.
# typed: true
@@ -215,6 +215,7 @@ module RuboCop::AS... | true |
Other | Homebrew | brew | 5f0a55a19963b0f6e662f299da658eec7bd1faca.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -20081,14 +20081,10 @@ end
module RuboCop::AST::CollectionNode
def extract_options!(*args, &block); end
- def save_plist(*args, &block); end
-
def to_default_s(*args, &block); end
def to_formatted_s(*args, &block); end
- def to_plist(*args, &block); end
-
def to_sentence(*args, &block); end
... | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/cask/audit_spec.rb | @@ -17,15 +17,15 @@ def include_msg?(messages, msg)
end
end
- matcher :fail_with do |error_msg|
+ matcher :fail_with do |message|
match do |audit|
- include_msg?(audit.errors, error_msg)
+ include_msg?(audit.errors, message)
end
end
- matcher :warn_with do |warning_msg|
+ matcher ... | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/cask/cmd/cat_spec.rb | @@ -15,6 +15,8 @@
sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b"
url "https://brew.sh/TestCask.dmg"
+ name "Basic Cask"
+ desc "Cask for testing basic functionality"
homepage "https://brew.sh/"
app "TestCask.app" | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/cask/Casks/adobe-air.rb | @@ -3,7 +3,8 @@
sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b"
url "https://brew.sh/TestCask.dmg"
- name "Adobe Air"
+ name "Adobe AIR"
+ desc "Cross-platform application runtime"
homepage "https://brew.sh/"
app "TestCask.app" | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/cask/Casks/auto-updates.rb | @@ -3,6 +3,8 @@
sha256 "5633c3a0f2e572cbf021507dec78c50998b398c343232bdfc7e26221d0a5db4d"
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyApp.zip"
+ name "Auto-Updates"
+ desc "Cask which auto-updates"
homepage "https://brew.sh/MyFancyApp"
auto_updates true | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/cask/Casks/basic-cask.rb | @@ -3,6 +3,8 @@
sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b"
url "https://brew.sh/TestCask.dmg"
+ name "Basic Cask"
+ desc "Cask for testing basic functionality"
homepage "https://brew.sh/"
app "TestCask.app" | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/cask/Casks/latest-with-auto-updates.rb | @@ -3,6 +3,8 @@
sha256 :no_check
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
+ name "Latest with Auto-Updates"
+ desc "Unversioned cask which auto-updates"
homepage "https://brew.sh/latest-with-auto-updates"
auto_updates true | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/cask/Casks/pkg-without-uninstall.rb | @@ -3,6 +3,8 @@
sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b"
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip"
+ name "PKG without Uninstall"
+ desc "Cask with a package installer and no uninstall stanza"
homepage "https://brew.sh/fancy-pkg"
pkg "Fancy.pkg" | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/cask/Casks/version-latest.rb | @@ -3,6 +3,8 @@
sha256 :no_check
url "file://#{TEST_FIXTURE_DIR}/cask/caffeines.zip"
+ name "Version Latest"
+ desc "Unversioned cask"
homepage "https://brew.sh/"
app "Caffeine Mini.app" | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/cask/Casks/with-binary.rb | @@ -3,6 +3,8 @@
sha256 "d5b2dfbef7ea28c25f7a77cd7fa14d013d82b626db1d82e00e25822464ba19e2"
url "file://#{TEST_FIXTURE_DIR}/cask/AppWithBinary.zip"
+ name "With Binary"
+ desc "Cask with a binary stanza"
homepage "https://brew.sh/with-binary"
app "App.app" | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/cask/Casks/with-installer-manual.rb | @@ -3,6 +3,8 @@
sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
+ name "With Installer Manual"
+ desc "Cask with a manual installer"
homepage "https://brew.sh/"
installer manual: "Caffeine.app" | true |
Other | Homebrew | brew | c098ce5d16b3b9ca253ca07ffd44cf98cd7366f1.json | Fix tests for `cask audit`. | Library/Homebrew/test/support/fixtures/third-party/Casks/pharo.rb | @@ -4,6 +4,7 @@
url "https://brew.sh/ThirdParty.dmg"
name "Pharo"
+ desc "Cask from a third-party tap"
homepage "https://brew.sh/"
app "ThirdParty.app" | true |
Other | Homebrew | brew | e4356e85d1584ff0de83725875b6e347b8229353.json | Treat more things as errors in `cask audit`. | Library/Homebrew/cask/audit.rb | @@ -143,7 +143,7 @@ def check_untrusted_pkg
return unless cask.artifacts.any? { |k| k.is_a?(Artifact::Pkg) && k.stanza_options.key?(:allow_untrusted) }
- add_warning "allow_untrusted is not permitted in official Homebrew Cask taps"
+ add_error "allow_untrusted is not permitted in official Homebrew ... | false |
Other | Homebrew | brew | 8a4b433dbf95929fd5e14bc31a4d65a25f260689.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -13114,8 +13114,6 @@ Net::HTTPClientError::EXCEPTION_TYPE = Net::HTTPServerException
Net::HTTPClientErrorCode = Net::HTTPClientError
-Net::HTTPClientException = Net::HTTPServerException
-
class Net::HTTPEarlyHints
HAS_BODY = ::T.let(nil, ::T.untyped)
end | false |
Other | Homebrew | brew | f21591fd65c1492921fb956b1fbd6912d5f00afc.json | Ignore URLs protected by Incapsula. | Library/Homebrew/utils/curl.rb | @@ -122,6 +122,20 @@ def curl_output(*args, **options)
curl_with_workarounds(*args, print_stderr: false, show_output: true, **options)
end
+# Check if a URL is protected by CloudFlare (e.g. badlion.net and jaxx.io).
+def url_protected_by_cloudflare?(details)
+ [403, 503].include?(details[:status].to_i) &&
+ d... | false |
Other | Homebrew | brew | cccbb0b4ef767e644eb6db37c0c6c29ed0fabf80.json | sorbet: add new files and solve existing errors
Add 12 new files to sorbet/files.yaml and solve existing type errors.
36 errors=> 33 errors. | Library/Homebrew/sorbet/files.yaml | @@ -133,6 +133,7 @@ false:
- ./dependency.rb
- ./dev-cmd/audit.rb
- ./dev-cmd/bottle.rb
+ - ./dev-cmd/bump-cask-pr.rb
- ./dev-cmd/bump-formula-pr.rb
- ./dev-cmd/bump-revision.rb
- ./dev-cmd/cat.rb
@@ -145,6 +146,7 @@ false:
- ./dev-cmd/install-bundler-gems.rb
- ./dev-cmd/irb.rb
- ./dev-cmd/l... | true |
Other | Homebrew | brew | cccbb0b4ef767e644eb6db37c0c6c29ed0fabf80.json | sorbet: add new files and solve existing errors
Add 12 new files to sorbet/files.yaml and solve existing type errors.
36 errors=> 33 errors. | Library/Homebrew/sorbet/rbi/homebrew.rbi | @@ -38,6 +38,10 @@ class Formula
def active_spec; end
+ def any_installed_keg; end
+
+ def latest_installed_prefix; end
+
def patches; end
end
end | true |
Other | Homebrew | brew | cccbb0b4ef767e644eb6db37c0c6c29ed0fabf80.json | sorbet: add new files and solve existing errors
Add 12 new files to sorbet/files.yaml and solve existing type errors.
36 errors=> 33 errors. | Library/Homebrew/sorbet/rbi/utils/utils.rbi | @@ -13,4 +13,8 @@ module Utils
module Shebang
include Kernel
end
+
+ module Tar
+ include Kernel
+ end
end | true |
Other | Homebrew | brew | c98deebdbf0cfac6d9c6c86fa0af138f334d7e99.json | sorbet: Add a RBI file for `utils/svn.rb` typechecking
- Needed to `include Kernel` otherwise Sorbet couldn't find the
`system_command` method.
- I've also attempted to construct method signatures for all the methods.
- Before, `brew typecheck` surfaced 36 errors. Now we're down to 33 errors. | Library/Homebrew/sorbet/rbi/utils/svn.rbi | @@ -0,0 +1,14 @@
+# typed: strict
+
+module Utils::Svn
+ include Kernel
+
+ sig { returns(T::Boolean) }
+ def available?; end
+
+ sig { returns(T.nilable(String)) }
+ def version; end
+
+ sig { params(url: String).returns(T::Boolean) }
+ def remote_exists?(url); end
+end | false |
Other | Homebrew | brew | 7654cf87e99ece6eb3725e3d90ed089dca55a19d.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.8.0.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rubocop-performance` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
+# Please instead update this file by running `tapioca sync`.
# typed: true
@@ -13,18 +13,23 @@ end
modul... | true |
Other | Homebrew | brew | 7654cf87e99ece6eb3725e3d90ed089dca55a19d.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/gems/tapioca@0.4.5.rbi | @@ -173,8 +173,8 @@ class Tapioca::Compilers::SymbolTable::SymbolGenerator
def compile_object(name, value); end
sig { params(constant: Module).returns(String) }
def compile_props(constant); end
- sig { params(signature: T.untyped).returns(String) }
- def compile_signature(signature); end
+ sig { params(sign... | true |
Other | Homebrew | brew | 7654cf87e99ece6eb3725e3d90ed089dca55a19d.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -8162,6 +8162,8 @@ module Homebrew::EnvConfig
def self.temp(); end
+ def self.update_report_only_installed?(); end
+
def self.update_to_tag?(); end
def self.verbose?(); end | true |
Other | Homebrew | brew | cea6bf6efe52c318a4e33ec2f4fd0374db34b090.json | formula: add missing SPDX require.
https://github.com/Homebrew/formulae.brew.sh/pull/328/checks?check_run_id=1102740199#step:6:5 | Library/Homebrew/formula.rb | @@ -23,6 +23,7 @@
require "tab"
require "mktemp"
require "find"
+require "utils/spdx"
# A formula provides instructions and metadata for Homebrew to install a piece
# of software. Every Homebrew formula is a {Formula}. | false |
Other | Homebrew | brew | ba54a54dfcd74dcdf1fe119a080c8915f9f71e9e.json | tests: handle tapped homebrew/bundle. | .github/workflows/tests.yml | @@ -45,11 +45,10 @@ jobs:
- name: Set up Homebrew official command taps
run: |
# Setup taps needed for 'brew tests' and 'brew man'
- brew tap homebrew/bundle
cd "$(brew --repo)"
if [ "$RUNNER_OS" = "macOS" ]; then
- brew update-reset Library/Taps/homebrew/homebre... | false |
Other | Homebrew | brew | 4278847403ba20ec18ebbb10d52541cdc1898161.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/gems/activesupport@6.0.3.2.rbi | @@ -1,7 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `activesupport` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
-
-# typed: false
-
- | true |
Other | Homebrew | brew | 4278847403ba20ec18ebbb10d52541cdc1898161.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/gems/activesupport@6.0.3.3.rbi | @@ -0,0 +1,8 @@
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `activesupport` gem.
+# Please instead update this file by running `tapioca sync`.
+
+# typed: false
+
+# THIS IS AN EMPTY RBI FILE.
+# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires | true |
Other | Homebrew | brew | 77566d89f72b07247a6beaaea634d51cadf046dd.json | sorbet: update RBI files using Tapioca.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml). | Library/Homebrew/sorbet/rbi/todo.rbi | @@ -2,14 +2,13 @@
# srb rbi todo
# typed: strong
+module ::StackProf; end
module DependencyCollector::Compat; end
-module ELFShim::Metadata::PatchELF::PatchError; end
-module ELFShim::PatchELF::PatchError; end
-module ELFShim::PatchELF::Patcher; end
module Homebrew::Error; end
module OS::Mac::Version::NULL; en... | false |
Other | Homebrew | brew | 37ecdb28f7c892d61d9625ef2f7c92f39f78c0dd.json | Add spec for `NamedArgs#to_paths`. | Library/Homebrew/cli/named_args.rb | @@ -84,7 +84,7 @@ def to_paths(only: nil)
@to_paths ||= {}
@to_paths[only] ||= downcased_unique_named.flat_map do |name|
if File.exist?(name)
- name
+ Pathname(name)
elsif name.count("/") == 1
Tap.fetch(name).path
else | true |
Other | Homebrew | brew | 37ecdb28f7c892d61d9625ef2f7c92f39f78c0dd.json | Add spec for `NamedArgs#to_paths`. | Library/Homebrew/test/cli/named_args_spec.rb | @@ -120,4 +120,45 @@
expect(described_class.new("foo").homebrew_tap_cask_names).to be_empty
end
end
+
+ describe "#to_paths" do
+ let(:existing_path) { mktmpdir }
+ let(:formula_path) { Pathname("/path/to/foo.rb") }
+ let(:cask_path) { Pathname("/path/to/baz.rb") }
+
+ before do
+ allow... | true |
Other | Homebrew | brew | d45af9e78110415a8298db69a55117848b0fbf36.json | Remove colon from RSpec annotations. | Library/Homebrew/test/support/github_formatter.rb | @@ -33,7 +33,7 @@ def example_failed(failure)
description = failure.example.full_description
message = failure.message_lines.join("\n")
- annotation = "#{description}:\n\n#{message}"
+ annotation = "#{description}\n\n#{message}"
output.puts "\n::error file=#{file},line=#{lin... | false |
Other | Homebrew | brew | b1cc9bdee7417ca59d9296a7e57d9822cda65829.json | brew.sh: update implied HOMEBREW_VERSION
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/brew.sh | @@ -140,7 +140,7 @@ HOMEBREW_VERSION="$("$HOMEBREW_GIT" -C "$HOMEBREW_REPOSITORY" describe --tags --
HOMEBREW_USER_AGENT_VERSION="$HOMEBREW_VERSION"
if [[ -z "$HOMEBREW_VERSION" ]]
then
- HOMEBREW_VERSION=">=2.2.0 (shallow or no git repository)"
+ HOMEBREW_VERSION=">=2.5.0 (shallow or no git repository)"
HOMEBR... | false |
Other | Homebrew | brew | 8fd565403ed06efcb83e3c9e08fb7de1083f3da8.json | Remove unused zsh completions | completions/zsh/_brew_cask | @@ -12,10 +12,6 @@
zstyle -T ':completion:*:*:*:brew-cask:*' tag-order && \
zstyle ':completion:*:*:*:brew-cask:*' tag-order 'commands'
-__brew_cask() {
- [ -d "$(brew --repo homebrew/cask)" ] && brew cask $@
-}
-
__brew_all_casks() {
local -a list
local expl
@@ -91,10 +87,6 @@ _brew_cask_cat() {
__brew... | false |
Other | Homebrew | brew | e0645f395077636cdea3200887951a5b686d647f.json | cask/audit: detect tag from URL | Library/Homebrew/cask/audit.rb | @@ -468,8 +468,9 @@ def check_github_prerelease_version
user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online
return if user.nil?
- # TODO: Detect tag from URL instead of using `cask.version`.
- error = SharedAudits.github_release(user, repo, cask.version, cask: c... | true |
Other | Homebrew | brew | e0645f395077636cdea3200887951a5b686d647f.json | cask/audit: detect tag from URL | Library/Homebrew/dev-cmd/audit.rb | @@ -784,9 +784,7 @@ def audit_specs
owner = Regexp.last_match(1)
repo = Regexp.last_match(2)
- tag = url.match(%r{^https://gitlab\.com/[\w-]+/[\w-]+/-/archive/([^/]+)/})
- .to_a
- .second
+ tag = SharedAudits.gitlab_tag_from_url(url)
tag ||= sta... | true |
Other | Homebrew | brew | e0645f395077636cdea3200887951a5b686d647f.json | cask/audit: detect tag from URL | Library/Homebrew/utils/shared_audits.rb | @@ -164,4 +164,22 @@ def bitbucket(user, repo)
"Bitbucket repository not notable enough (<30 forks and <75 watchers)"
end
+
+ def github_tag_from_url(url)
+ url = url.to_s
+ tag = url.match(%r{^https://github\.com/[\w-]+/[\w-]+/archive/([^/]+)\.(tar\.gz|zip)$})
+ .to_a
+ .second... | true |
Other | Homebrew | brew | 412be8e024b9cb3a27fb7074d60ecbcd2e98dffc.json | docs: add discussion forums to troubleshooting | docs/Troubleshooting.md | @@ -12,6 +12,7 @@ This document will help you check for common issues and make sure your issue has
* Search the [Homebrew/homebrew-core issue tracker](https://github.com/Homebrew/homebrew-core/issues) or [Homebrew/linuxbrew-core issue tracker](https://github.com/Homebrew/linuxbrew-core/issues) to see if someone else... | false |
Other | Homebrew | brew | 83f62d1fad34f98f7d360f2a84932040fdeb06b1.json | docs: update outdated formula references for Node | docs/Node-for-Formula-Authors.md | @@ -32,11 +32,11 @@ Node modules which are compatible with the latest Node version should declare a
depends_on "node"
```
-If your formula requires being executed with an older Node version you should use one of the versioned node formulae (e.g. `node@6`).
+If your formula requires being executed with an older Node... | false |
Other | Homebrew | brew | 15a56655c8a5216d9b99d2f961cec4f5047049e9.json | docs: move supporters into its own group | docs/README.md | @@ -26,12 +26,13 @@
- [Python](Homebrew-and-Python.md)
- [How To Build Software Outside Homebrew With Homebrew `keg_only` dependencies](How-to-Build-Software-Outside-Homebrew-with-Homebrew-keg-only-Dependencies.md)
- [Xcode](Xcode.md)
-- [Kickstarter Supporters](Kickstarter-Supporters.md)
- [Creating a Homebrew I... | false |
Other | Homebrew | brew | d0b0dafb0bbe4eaa253ba7ccbab898c7c49a46c4.json | docs: update cross-compiler practice in core | docs/Custom-GCC-and-cross-compilers.md | @@ -1,22 +1,11 @@
# Custom GCC and Cross Compilers
-Homebrew depends on having an up-to-date version of Xcode because it comes with
-specific versions of build tools, e.g. `clang`.
+Homebrew depends on having an up-to-date version of Xcode because it comes with specific versions of build tools, e.g. `clang`. Install... | false |
Other | Homebrew | brew | 196d7badfae5692bfe7dd79e4559f5b41eea5761.json | Improve RSpec annotations. | Library/Homebrew/test/spec_helper.rb | @@ -95,15 +95,15 @@
config.include(Test::Helper::OutputAsTTY)
config.before(:each, :needs_compat) do
- skip "Requires compatibility layer." if ENV["HOMEBREW_NO_COMPAT"]
+ skip "Requires the compatibility layer." if ENV["HOMEBREW_NO_COMPAT"]
end
config.before(:each, :needs_linux) do
- skip "Not ... | true |
Other | Homebrew | brew | 196d7badfae5692bfe7dd79e4559f5b41eea5761.json | Improve RSpec annotations. | Library/Homebrew/test/support/github_formatter.rb | @@ -9,6 +9,13 @@ module Github
class Formatter < RSpec::Core::Formatters::BaseFormatter
RSpec::Core::Formatters.register self, :example_failed, :example_pending
+ def self.escape(string)
+ # See https://github.community/t/set-output-truncates-multiline-strings/16852/3.
+ string.gsub("%"... | true |
Other | Homebrew | brew | 196d7badfae5692bfe7dd79e4559f5b41eea5761.json | Improve RSpec annotations. | Library/Homebrew/utils/github/actions.rb | @@ -6,10 +6,10 @@ module GitHub
# @api private
module Actions
def self.escape(string)
- string.gsub(/\r/, "%0D")
- .gsub(/\n/, "%0A")
- .gsub(/]/, "%5D")
- .gsub(/;/, "%3B")
+ # See https://github.community/t/set-output-truncates-multiline-strings/16852/3.
+ st... | true |
Other | Homebrew | brew | c22c6c4a93a4197046108ecb49a2546454e65aef.json | Remove cbmc from GITHUB_PRERELEASE_ALLOWLIST | Library/Homebrew/utils/shared_audits.rb | @@ -29,7 +29,6 @@ def github_release_data(user, repo, tag)
GITHUB_PRERELEASE_ALLOWLIST = {
"amd-power-gadget" => :all,
- "cbmc" => "5.12.6",
"elm-format" => "0.8.3",
"gitless" => "0.8.8",
"infrakit" => "0.5", | false |
Other | Homebrew | brew | 5b393cb049edbc4d85356896883bf5e85d913acc.json | help: show help text for tapped external command
Previously, running e.g. `brew help bundle` when homebrew-bundle was not
tapped would tap homebrew-bundle and then run `brew bundle` showing
`Error: No Brewfile found` instead of the expected help text. | Library/Homebrew/brew.rb | @@ -143,6 +143,7 @@ class MissingEnvironmentVariables < RuntimeError; end
safe_system(*tap_commands)
end
+ ARGV << "--help" if help_flag
exec HOMEBREW_BREW_FILE, cmd, *ARGV
end
rescue UsageError => e | false |
Other | Homebrew | brew | d7097b5598bc120db273008190f278e01d8a3586.json | Fix the usage of outdated brew cask list | completions/zsh/_brew_cask | @@ -32,7 +32,7 @@ __brew_all_casks() {
__brew_installed_casks() {
local -a list
local expl
- list=( $(__brew_cask list|sed 's/(!)//') )
+ list=( $(brew list --cask) )
_wanted list expl 'installed casks' compadd -a list
}
@@ -136,10 +136,6 @@ _brew_cask_list() {
'*::token:__brew_installed_casks'
}
... | false |
Other | Homebrew | brew | f2ff0c21ba5b534a99f5e7b3ad867ed17be03e64.json | Add pock to GITHUB_PRERELEASE_ALLOWLIST | Library/Homebrew/utils/shared_audits.rb | @@ -33,6 +33,7 @@ def github_release_data(user, repo, tag)
"elm-format" => "0.8.3",
"gitless" => "0.8.8",
"infrakit" => "0.5",
+ "pock" => :all,
"riff" => "0.5.0",
"telegram-cli" => "1.3.1",
"volta" => "0.8.6", | false |
Other | Homebrew | brew | 249e8e29f9add84e44e66bd453f82e8a68e8f6d1.json | fix latest_tag in homebrew/brew update | Library/Homebrew/cmd/update.sh | @@ -428,7 +428,7 @@ EOS
echo "HOMEBREW_BREW_GIT_REMOTE set: using $HOMEBREW_BREW_GIT_REMOTE for Homebrew/brew Git remote."
git remote set-url origin "$HOMEBREW_BREW_GIT_REMOTE"
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- latest_tag="$(git ls-remote --tags --refs -q origin | ... | false |
Other | Homebrew | brew | 4d8dcb1d8114f87664ec43b8c5f65ed83497a839.json | Add RSpec formatter for Github Actions. | Library/Homebrew/dev-cmd/tests.rb | @@ -118,6 +118,8 @@ def tests
--out #{HOMEBREW_CACHE}/tests/parallel_runtime_rspec.log
]
+ bundle_args << "--format" << "RSpec::Github::Formatter" if ENV["GITHUB_ACTIONS"]
+
unless OS.mac?
bundle_args << "--tag" << "~needs_macos" << "--tag" << "~cask"
files = files.reject... | true |
Other | Homebrew | brew | 4d8dcb1d8114f87664ec43b8c5f65ed83497a839.json | Add RSpec formatter for Github Actions. | Library/Homebrew/test/sandbox_spec.rb | @@ -2,7 +2,7 @@
require "sandbox"
-describe Sandbox do
+describe Sandbox, :needs_macos do
define_negated_matcher :not_matching, :matching
let(:dir) { mktmpdir } | true |
Other | Homebrew | brew | 4d8dcb1d8114f87664ec43b8c5f65ed83497a839.json | Add RSpec formatter for Github Actions. | Library/Homebrew/test/spec_helper.rb | @@ -36,6 +36,7 @@
require_relative "../global"
require "test/support/no_seed_progress_formatter"
+require "test/support/github_formatter"
require "test/support/helper/cask"
require "test/support/helper/fixtures"
require "test/support/helper/formula" | true |
Other | Homebrew | brew | 4d8dcb1d8114f87664ec43b8c5f65ed83497a839.json | Add RSpec formatter for Github Actions. | Library/Homebrew/test/support/github_formatter.rb | @@ -0,0 +1,36 @@
+# frozen_string_literal: true
+
+require "rspec/core"
+require "rspec/core/formatters/base_formatter"
+
+# TODO: Replace with `rspec-github` when https://github.com/Drieam/rspec-github/pull/4 is merged.
+module RSpec
+ module Github
+ class Formatter < RSpec::Core::Formatters::BaseFormatter
+ ... | true |
Other | Homebrew | brew | 55e045d23829328827ae8b2ece0187c25fa6c0ef.json | audit: fix lmod hashcat cert issue | Library/Homebrew/dev-cmd/audit.rb | @@ -547,6 +547,7 @@ def audit_versioned_keg_only
end
CERT_ERROR_ALLOWLIST = {
+ "hashcat" => "https://hashcat.net/hashcat/",
"jinx" => "https://www.jinx-lang.org/",
"lmod" => "https://www.tacc.utexas.edu/research-development/tacc-projects/lmod",
"micropython" => "... | false |
Other | Homebrew | brew | 8ab5ea52495a3f2a53e376e43e8e3551227e58ef.json | bottle: use File.lutime instead of system call | Library/Homebrew/dev-cmd/bottle.rb | @@ -278,10 +278,7 @@ def bottle_formula(f, args:)
keg.find do |file|
if file.symlink?
- # Ruby does not support `File.lutime` yet.
- # Shellout using `touch` to change modified time of symlink itself.
- system "/usr/bin/touch", "-h",
- "-t", tab.s... | false |
Other | Homebrew | brew | f4d81fee1c57b0e152876ea8bb57115807b3c223.json | Add flowchart for managing pull requests
- Add flowchart for handling ready-to-merge pull requests
- Add diagram guidelines
Many thanks to Sean Molenaar for the idea and initial version of the
chart.
CC: Sean Molenaar <smillernl@me.com> | .editorconfig | @@ -16,6 +16,11 @@ trim_trailing_whitespace = true
# trailing whitespace is crucial for patches
trim_trailing_whitespace = false
+[**.drawio.svg]
+indent_size = unset
+indent_style = unset
+insert_final_newline = false
+
[**.md]
trim_trailing_whitespace = true
x-soft-wrap-text = true | true |
Other | Homebrew | brew | f4d81fee1c57b0e152876ea8bb57115807b3c223.json | Add flowchart for managing pull requests
- Add flowchart for handling ready-to-merge pull requests
- Add diagram guidelines
Many thanks to Sean Molenaar for the idea and initial version of the
chart.
CC: Sean Molenaar <smillernl@me.com> | docs/Diagram-Guidelines.md | @@ -0,0 +1,45 @@
+# Diagram Guidelines
+
+## Preferred file format
+
+For complex diagrams, use the `.drawio.svg` format.
+
+Files with the `.drawio.svg` extension are SVG files with embedded [draw.io](https://www.diagrams.net/) source code. Using that format lends itself to a developer-friendly workflow: it is valid S... | true |
Other | Homebrew | brew | f4d81fee1c57b0e152876ea8bb57115807b3c223.json | Add flowchart for managing pull requests
- Add flowchart for handling ready-to-merge pull requests
- Add diagram guidelines
Many thanks to Sean Molenaar for the idea and initial version of the
chart.
CC: Sean Molenaar <smillernl@me.com> | docs/Maintainer-Guidelines.md | @@ -76,6 +76,10 @@ their branch is filled with nonsensical merges, then `rebase` and squash
the commits. Our main branch history should be useful to other people,
not confusing.
+Here’s a flowchart for managing a PR which is ready to merge:
+
+![Flowchart for managing pull requests](assets/img/docs/managing-pull-re... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.