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 | d8afed206fc782a1411f1d9dfb5813caa9167670.json | Use AppleScript to check if GUI apps are running. | Library/Homebrew/cask/artifact/abstract_uninstall.rb | @@ -127,7 +127,7 @@ def running_processes(bundle_id)
# :quit/:signal must come before :kext so the kext will not be in use by a running process
def uninstall_quit(*bundle_ids, command: nil, **_)
bundle_ids.each do |bundle_id|
- next if running_processes(bundle_id).empty?
+ next ... | true |
Other | Homebrew | brew | d8afed206fc782a1411f1d9dfb5813caa9167670.json | Use AppleScript to check if GUI apps are running. | Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb | @@ -119,7 +119,7 @@
it "is skipped when the user does not have automation access" do
allow(User).to receive(:automation_access?).and_return false
allow(User.current).to receive(:gui?).and_return true
- allow(subject).to receive(:running_processes).with(bundle_id).and_return([[0, "", bundle_id]])... | true |
Other | Homebrew | brew | 3e46488ca4b564c03a9ead93f27941c457d77a27.json | Display packages to upgrade one package per line | Library/Homebrew/cmd/upgrade.rb | @@ -105,7 +105,7 @@ def upgrade
"#{f.full_specified_name} #{f.pkg_version}"
end
end
- puts formulae_upgrades.join(", ")
+ puts formulae_upgrades.join("\n")
end
return if args.dry_run?
| false |
Other | Homebrew | brew | 2ec526609c321883e0b2349e1a9e51586e6d4345.json | Add link, rename file and remove semicolons | docs/Homebrew-homebrew-core-Merge-Checklist.md | @@ -1,4 +1,4 @@
-# Formula Merge Checklist
+# Homebrew/homebrew-core Merge Checklist
The following checklist is intended to help maintainers to decide on
whether to merge, request changes or close a PR. It also brings more
@@ -18,38 +18,38 @@ This is a more practical checklist, it should be used after you get famil... | true |
Other | Homebrew | brew | 2ec526609c321883e0b2349e1a9e51586e6d4345.json | Add link, rename file and remove semicolons | docs/README.md | @@ -51,6 +51,7 @@
- [Common Issues for Maintainers](Common-Issues-for-Core-Contributors.md)
- [Releases](Releases.md)
- [Developer/Internal API Documentation](https://rubydoc.brew.sh)
+- [Homebrew/homebrew-core merge checklist](Homebrew-homebrew-core-Merge-Checklist.md)
## Governance
| true |
Other | Homebrew | brew | 4b30a6173224a51342c71a680b3c59ecdebefbb9.json | prof: use ruby-prof 0.18.0
This is the newest version that works with Ruby 2.3.
Also, update the `.gitignore` to hide it while we're here. | .gitignore | @@ -134,6 +134,7 @@
**/vendor/bundle/ruby/*/gems/rspec-support-*/
**/vendor/bundle/ruby/*/gems/rspec-wait-*/
**/vendor/bundle/ruby/*/gems/rubocop-0*/
+**/vendor/bundle/ruby/*/gems/ruby-prof-*/
**/vendor/bundle/ruby/*/gems/ruby-progressbar-*/
**/vendor/bundle/ruby/*/gems/simplecov-*/
**/vendor/bundle/ruby/*/gems/s... | true |
Other | Homebrew | brew | 4b30a6173224a51342c71a680b3c59ecdebefbb9.json | prof: use ruby-prof 0.18.0
This is the newest version that works with Ruby 2.3.
Also, update the `.gitignore` to hide it while we're here. | Library/Homebrew/dev-cmd/prof.rb | @@ -18,7 +18,7 @@ def prof_args
def prof
prof_args.parse
- Homebrew.install_gem_setup_path! "ruby-prof"
+ Homebrew.install_gem_setup_path! "ruby-prof", version: "0.18.0"
FileUtils.mkdir_p "prof"
brew_rb = (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path
safe_system "ruby-prof", "--printer=... | true |
Other | Homebrew | brew | 4e2096f21a68fd3f95248cd5a0482fdff112e146.json | Add cask completions to `brew cleanup` | completions/fish/brew.fish | @@ -253,6 +253,7 @@ __fish_brew_complete_arg 'cat' -a '(__fish_brew_suggest_formulae_all)'
__fish_brew_complete_cmd 'cleanup' "Remove old installed versions"
__fish_brew_complete_arg 'cleanup' -a '(__fish_brew_suggest_formulae_installed)'
+__fish_brew_complete_arg 'cleanup' -a '(__fish_brew_suggest_casks_installed)... | false |
Other | Homebrew | brew | f2a4681f26154363b1b62a204319ca549d48a310.json | workflows/apidoc: combine steps to preserve current directory | .github/workflows/apidoc.yml | @@ -17,7 +17,7 @@ jobs:
with:
version: '>=2.3'
- - name: Set up repositories
+ - name: Build and push API docs
run: |
# clone rubydoc.brew.sh with SSH so we can push back
git clone git@github.com:Homebrew/rubydoc.brew.sh
@@ -26,18 +26,9 @@ jobs:
... | false |
Other | Homebrew | brew | 4add1d1cb35ececf8823e2400a424254a44660ac.json | Check binary URL resources with RuboCop
- Migrate the existing binary URL audit to a RuboCop.
- Check resources as well as main URLs
- Also check for "macos" and "osx" in URLs
- Add whitelists for URLs and formulae | Library/Homebrew/dev-cmd/audit.rb | @@ -920,18 +920,6 @@ def audit_prefix_has_contents
EOS
end
- def audit_url_is_not_binary
- return unless @core_tap
-
- urls = @specs.map(&:url)
-
- urls.each do |url|
- if url =~ /darwin/i && (url =~ /x86_64/i || url =~ /amd64/i)
- problem "#{url} looks like a binary pack... | true |
Other | Homebrew | brew | 4add1d1cb35ececf8823e2400a424254a44660ac.json | Check binary URL resources with RuboCop
- Migrate the existing binary URL audit to a RuboCop.
- Check resources as well as main URLs
- Also check for "macos" and "osx" in URLs
- Add whitelists for URLs and formulae | Library/Homebrew/rubocops/urls.rb | @@ -7,6 +7,28 @@ module Cop
module FormulaAudit
# This cop audits URLs and mirrors in Formulae.
class Urls < FormulaCop
+ # These are formulae that, sadly, require an upstream binary to bootstrap.
+ BINARY_FORMULA_URLS_WHITELIST = %w[
+ crystal
+ fpc
+ ghc
+ ... | true |
Other | Homebrew | brew | 4add1d1cb35ececf8823e2400a424254a44660ac.json | Check binary URL resources with RuboCop
- Migrate the existing binary URL audit to a RuboCop.
- Check resources as well as main URLs
- Also check for "macos" and "osx" in URLs
- Add whitelists for URLs and formulae | Library/Homebrew/test/dev-cmd/audit_spec.rb | @@ -530,84 +530,6 @@ def formula_gsub_commit(before, after = "")
end
end
- describe "#audit_url_is_not_binary" do
- specify "it detects a url containing darwin and x86_64" do
- fa = formula_auditor "foo", <<~RUBY, core_tap: true
- class Foo < Formula
- url "https://brew.... | true |
Other | Homebrew | brew | 4add1d1cb35ececf8823e2400a424254a44660ac.json | Check binary URL resources with RuboCop
- Migrate the existing binary URL audit to a RuboCop.
- Check resources as well as main URLs
- Also check for "macos" and "osx" in URLs
- Add whitelists for URLs and formulae | Library/Homebrew/test/rubocops/urls_spec.rb | @@ -142,12 +142,26 @@
"msg" => "https://central.maven.org/maven2/com/bar/foo/1.1/foo-1.1.jar should be " \
"`https://search.maven.org/remotecontent?filepath=com/bar/foo/1.1/foo-1.1.jar`",
"col" => 2,
+ }, {
+ "url" => "https://brew.sh/example-darwin.x86_64.tar.gz",
+ "... | true |
Other | Homebrew | brew | c34b4c3abd0654733a072df5efbfafb04e1d8d4f.json | MacOSRequirement: add to_json method | Library/Homebrew/requirements/macos_requirement.rb | @@ -42,11 +42,11 @@ def message(type: :formula)
versions newer than #{@version.pretty_name} due to an upstream incompatibility.
EOS
when :cask
- "This cask does not on macOS versions newer than #{@version.pretty_name}."
+ "This cask does not run on macOS versions newer than #{@v... | false |
Other | Homebrew | brew | 22a7b4bc1e51e3fd32e9916bed25fcd45f178ff8.json | python_virtualenv_constants: upgrade virtualenv to 16.7.4 | Library/Homebrew/language/python_virtualenv_constants.rb | @@ -1,8 +1,8 @@
# frozen_string_literal: true
PYTHON_VIRTUALENV_URL =
- "https://files.pythonhosted.org/packages/a9/8a" \
- "/580c7176f01540615c2eb3f3ab5462613b4beac4aa63410be89ecc7b7472" \
- "/virtualenv-16.7.2.tar.gz"
+ "https://files.pythonhosted.org/packages/11/74" \
+ "/2c151a13ef41ab9fb43b3c4ff9e788e0496... | false |
Other | Homebrew | brew | 82e314c4674598552ad7f469377b47772ca64a05.json | messages_spec: handle frozen Homebrew.args.
This is an order dependent test failure fix as seen in
https://travis-ci.org/Homebrew/homebrew-test-bot/builds/574559080 | Library/Homebrew/test/messages_spec.rb | @@ -72,9 +72,11 @@
end
end
+ # Homebrew.args OpenStruct usage cannot use verified doubles.
+ # rubocop:disable RSpec/VerifiedDoubles
context "when the --display-times argument is present" do
before do
- allow(Homebrew.args).to receive(:display_times?).and_return(true)
+ all... | false |
Other | Homebrew | brew | 3ed9b35f7099e8557ad75983a42686597379c74f.json | man: allow multi-line paragraphs for comment-based docs | Library/Homebrew/dev-cmd/man.rb | @@ -196,8 +196,11 @@ def cmd_comment_manpage_lines(cmd_path)
lines = [format_usage_banner(comment_lines.first).chomp]
comment_lines.slice(1..-1)
.each do |line|
- line = line.slice(4..-1)
- next unless line
+ line = line.slice(4..-2)
+ unless line
+ lines.last << "... | true |
Other | Homebrew | brew | 3ed9b35f7099e8557ad75983a42686597379c74f.json | man: allow multi-line paragraphs for comment-based docs | docs/Manpage.md | @@ -423,11 +423,11 @@ build systems would not find otherwise.
Use the standard `PATH` instead of superenv's when `std` is passed.
### `shellenv`
+
Print export statements. When run in a shell, this installation of Homebrew will be added to your `PATH`, `MANPATH`, and `INFOPATH`.
The variables `HOMEBREW_PREFIX... | true |
Other | Homebrew | brew | 3ed9b35f7099e8557ad75983a42686597379c74f.json | man: allow multi-line paragraphs for comment-based docs | manpages/brew.1 | @@ -530,10 +530,7 @@ Use the standard \fBPATH\fR instead of superenv\'s when \fBstd\fR is passed\.
Print export statements\. When run in a shell, this installation of Homebrew will be added to your \fBPATH\fR, \fBMANPATH\fR, and \fBINFOPATH\fR\.
.
.P
-The variables \fBHOMEBREW_PREFIX\fR, \fBHOMEBREW_CELLAR\fR and \f... | true |
Other | Homebrew | brew | 20e3edfc780f6ca096e5d762a73abbf3182f0eda.json | manpages: add link to API & regenerate | Library/Homebrew/manpages/brew.1.md.erb | @@ -326,6 +326,8 @@ And for an authenticated HTTP proxy:
Homebrew Documentation: <https://docs.brew.sh>
+Homebrew API: <https://rubydoc.brew.sh>
+
`brew-cask`(1), `git`(1), `git-log`(1)
## AUTHORS | true |
Other | Homebrew | brew | 20e3edfc780f6ca096e5d762a73abbf3182f0eda.json | manpages: add link to API & regenerate | docs/Manpage.md | @@ -15,13 +15,16 @@ didn't include with macOS.
For the full command list, see the [COMMANDS](#commands) section.
-With `--verbose` or `-v`, many commands print extra debugging information. Note that
-these flags should only appear after a command.
+With `--verbose` or `--debug`, many commands print extra debugging... | true |
Other | Homebrew | brew | 20e3edfc780f6ca096e5d762a73abbf3182f0eda.json | manpages: add link to API & regenerate | manpages/brew.1 | @@ -19,36 +19,39 @@ Homebrew is the easiest and most flexible way to install the UNIX tools Apple di
For the full command list, see the \fICOMMANDS\fR section\.
.
.P
-With \fB\-\-verbose\fR or \fB\-v\fR, many commands print extra debugging information\. Note that these flags should only appear after a command\.
+Wit... | true |
Other | Homebrew | brew | 329c6c78bece4a0c8211c5c3e4495ba2a9aeb81b.json | manpages: relocate some sections
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page. | Library/Homebrew/cmd/fetch.rb | @@ -19,11 +19,11 @@ def fetch_args
description: "Fetch HEAD version instead of stable version."
switch "--devel",
description: "Fetch development version instead of stable version."
+ switch :force,
+ description: "Remove a previously cached version and re-fetch."
... | true |
Other | Homebrew | brew | 329c6c78bece4a0c8211c5c3e4495ba2a9aeb81b.json | manpages: relocate some sections
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page. | Library/Homebrew/cmd/gist-logs.rb | @@ -17,9 +17,6 @@ def gist_logs_args
Upload logs for a failed build of <formula> to a new Gist.
- <formula> is usually the name of the formula to install, but it can be specified
- in several different ways.
-
If no logs are found, an error message is presented.
EOS
swi... | true |
Other | Homebrew | brew | 329c6c78bece4a0c8211c5c3e4495ba2a9aeb81b.json | manpages: relocate some sections
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page. | Library/Homebrew/cmd/install.rb | @@ -20,9 +20,6 @@ def install_args
Install <formula>.
- <formula> is usually the name of the formula to install, but it can be specified
- in several different ways.
-
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will be run for the
installed formulae or, ever... | true |
Other | Homebrew | brew | 329c6c78bece4a0c8211c5c3e4495ba2a9aeb81b.json | manpages: relocate some sections
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page. | Library/Homebrew/cmd/options.rb | @@ -16,12 +16,12 @@ def options_args
EOS
switch "--compact",
description: "Show all options on a single line separated by spaces."
- switch "--all",
- description: "Show options for all formulae."
switch "--installed",
description: "Show options for all ... | true |
Other | Homebrew | brew | 329c6c78bece4a0c8211c5c3e4495ba2a9aeb81b.json | manpages: relocate some sections
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page. | Library/Homebrew/cmd/postinstall.rb | @@ -14,8 +14,8 @@ def postinstall_args
Rerun the post-install steps for <formula>.
EOS
- switch :verbose
switch :force
+ switch :verbose
switch :debug
end
end | true |
Other | Homebrew | brew | 329c6c78bece4a0c8211c5c3e4495ba2a9aeb81b.json | manpages: relocate some sections
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page. | Library/Homebrew/cmd/update-report.rb | @@ -29,8 +29,8 @@ def update_report_args
description: "Run in 'auto-update' mode (faster, less output)."
switch :force
switch :quiet
- switch :debug
switch :verbose
+ switch :debug
hide_from_man_page!
end
end | true |
Other | Homebrew | brew | 329c6c78bece4a0c8211c5c3e4495ba2a9aeb81b.json | manpages: relocate some sections
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page. | Library/Homebrew/manpages/brew.1.md.erb | @@ -33,6 +33,9 @@ these flags should only appear after a command.
Install <formula>.
+<formula> is usually the name of the formula to install, but it has other syntaxes which
+are listed in the [SPECIFYING FORMULAE](#specifying-formulae) section.
+
### `uninstall` <formula>:
Uninstall <formula>. | true |
Other | Homebrew | brew | b567ed738ef9acfde242a0bda2860aab42c1b219.json | Remove Azure Pipelines CI. | Library/Homebrew/extend/os/mac/diagnostic.rb | @@ -72,7 +72,7 @@ def check_xcode_up_to_date
# `brew test-bot` runs `brew doctor` in the CI for the Homebrew/brew
# repository. This only needs to support whatever CI providers
# Homebrew/brew is currently using.
- return if ENV["HOMEBREW_AZURE_PIPELINES"] || ENV["HOMEBREW_GITHUB_ACTIO... | true |
Other | Homebrew | brew | b567ed738ef9acfde242a0bda2860aab42c1b219.json | Remove Azure Pipelines CI. | azure-pipelines.yml | @@ -1,29 +0,0 @@
-jobs:
-- job: macOS
- pool:
- vmImage: macOS-10.14
- steps:
- - bash: |
- set -e
- sudo xcode-select --switch /Applications/Xcode_10.2.app/Contents/Developer
- HOMEBREW_REPOSITORY="$(brew --repo)"
- mv "$HOMEBREW_REPOSITORY/Library/Taps" "$PWD/Library"
- sudo... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/build.rb | @@ -197,7 +197,7 @@ def fixopt(f)
# Special case: need to recreate BuildErrors in full
# for proper analytics reporting and error messages.
- # BuildErrors are specific to build processses and not other
+ # BuildErrors are specific to build processes and not other
# children, which is why we create the nec... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/cmd/missing.rb | @@ -11,7 +11,7 @@ module Homebrew
def missing_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `missing` [<options>] [<formule>]
+ `missing` [<options>] [<formulae>]
Check the given <formula> for missing dependencies. If no <formula> are
given, check all installed... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/formulary.rb | @@ -71,7 +71,7 @@ def self.resolve(name, spec: nil)
# instead have found the new formula.)
#
# Because of this, the user is referring to this specific formula,
- # not any formula targetted by the same alias, so in this context
+ # not any formula targeted by the same alias, so in this context
... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/os/mac/version.rb | @@ -42,7 +42,7 @@ def pretty_name
to_sym.to_s.split("_").map(&:capitalize).join(" ")
end
- # For OS::Mac::Version compatability
+ # For OS::Mac::Version compatibility
def requires_nehalem_cpu?
Hardware.oldest_cpu(self) == :nehalem
end | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/rubocops/components_order.rb | @@ -115,7 +115,7 @@ def reorder_components(corrector, node1, node2)
corrector.insert_after(node2.source_range, line_breaks + indentation + node1.source)
else
indentation = " " * (start_column(node2) - line_start_column(node2))
- # No line breaks upto version_scheme, order... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/shims/super/cc | @@ -381,7 +381,7 @@ class Cmd
paths.map! { |path| prefix + path }
end
- # Unlike path_flags, do not prune non-existant directories.
+ # Unlike path_flags, do not prune non-existent directories.
# formula.lib for example does not yet exist, but should not be pruned.
def rpath_flags(prefix, paths)
... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/test/ENV_spec.rb | @@ -67,7 +67,7 @@
expect(subject["foo"]).to eq("1")
end
- it "appends to a non-existant key" do
+ it "appends to a non-existent key" do
subject.append "foo", "1"
expect(subject["foo"]).to eq("1")
end
@@ -93,7 +93,7 @@
expect(subject["foo"]).to eq("1")
end
- it "pr... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/test/cask/cask_spec.rb | @@ -185,7 +185,7 @@
end
context "when it is from no known tap" do
- it "retuns the cask token" do
+ it "returns the cask token" do
file = Tempfile.new(%w[tapless-cask .rb])
begin | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/test/cask/cmd/edit_spec.rb | @@ -23,7 +23,7 @@
}.to raise_error(/Only one Cask can be edited at a time\./)
end
- it "raises an exception when the Cask doesnt exist" do
+ it "raises an exception when the Cask doesn't exist" do
expect {
described_class.run("notacask")
}.to raise_error(Cask::CaskUnavailableError) | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/test/cask/cmd/outdated_spec.rb | @@ -21,7 +21,7 @@
it_behaves_like "a command that handles invalid options"
- describe 'without --greedy it ignores the Casks with "vesion latest" or "auto_updates true"' do
+ describe 'without --greedy it ignores the Casks with "version latest" or "auto_updates true"' do
it "checks all the installed Casks... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/test/formula_validation_spec.rb | @@ -21,7 +21,7 @@ def supports_block_expectations?
end
end
- it "cant override the `brew` method" do
+ it "can't override the `brew` method" do
expect {
formula do
def brew; end | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/test/inreplace_spec.rb | @@ -199,7 +199,7 @@
describe "#sub!" do
let(:string) { "foo" }
- it "replaces the first occurence" do
+ it "replaces the first occurrence" do
subject.sub!("o", "e")
expect(subject).to eq("feo")
end
@@ -208,7 +208,7 @@
describe "#gsub!" do
let(:string) { "foo" }
- it "repl... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/test/resource_spec.rb | @@ -38,7 +38,7 @@
expect(subject.download_strategy).to eq(GitDownloadStrategy)
end
- it "raises an error if the download strategy class is unkown" do
+ it "raises an error if the download strategy class is unknown" do
expect { subject.url("foo", using: Class.new) }.to raise_error(TypeError)
... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/test/tab_spec.rb | @@ -307,7 +307,7 @@
expect(subject.tabfile).to eq(f_tab_path)
end
- it "can create a Tab for a non-existant Keg" do
+ it "can create a Tab for a non-existent Keg" do
f.prefix.mkpath
expect(subject.tabfile).to eq(f_tab_path)
@@ -336,7 +336,7 @@
expect(tab.tabfile).to eq(f_tab_p... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | Library/Homebrew/version/null.rb | @@ -28,7 +28,7 @@ def null?
true
end
- # For OS::Mac::Version compatability
+ # For OS::Mac::Version compatibility
def requires_nehalem_cpu?
false
end | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | completions/fish/brew.fish | @@ -25,7 +25,7 @@ function __fish_brew_opts -d "Only arguments starting with a dash (options)"
string match --all -- '-*' (__fish_brew_args)
end
-# This can be used either to get the first argument or to match it against a given list of commmands
+# This can be used either to get the first argument or to match ... | true |
Other | Homebrew | brew | 7ddc185b35260791e0cd21319f39f6202b7041ed.json | Fix various typos | completions/zsh/_brew | @@ -219,7 +219,7 @@ _brew_audit() {
_arguments \
'(--new-formula)--strict[run additional checks including RuboCop style checks]' \
'(--new-formula)--online[run slower checks that require a network connection]' \
- '(--online --strict)--new-formula[check if a new formula is eligable for Homebrew. Implies... | true |
Other | Homebrew | brew | e5899a6101320cb0ed10ddf0434802d752b2c78b.json | Move global methods into `Kernel` module.
Otherwise they are not defined inside of subclasses of `DelegateClass`. | Library/Homebrew/utils.rb | @@ -16,177 +16,6 @@
require "tap_constants"
require "time"
-def require?(path)
- return false if path.nil?
-
- require path
- true
-rescue LoadError => e
- # we should raise on syntax errors but not if the file doesn't exist.
- raise unless e.message.include?(path)
-end
-
-def ohai_title(title)
- title = Tty.... | false |
Other | Homebrew | brew | 3a6a75ac0e5af4c9069fce67d260662e6784eb70.json | gnome_devel_whitelist: add gtk-doc 1.31
Necessary for https://github.com/Homebrew/homebrew-core/pull/42851 | Library/Homebrew/dev-cmd/audit.rb | @@ -692,6 +692,7 @@ def audit_specs
libart 2.3.21
pygtkglext 1.1.0
gtk-mac-integration 2.1.3
+ gtk-doc 1.31
].each_slice(2).to_a.map do |formula, version|
[formula, version.split(".")[0..1].join(".")]
end | false |
Other | Homebrew | brew | 40c3184f82d15e0a1cfb9d40c084ad9f50ab09b5.json | gnome_devel_whitelist: add gtk-mac-integration 2.1.3
This fixes the error produced by `brew audit gtk-mac-integration --online`:
Error: 1 problem in 1 formula detected
gtk-mac-integration:
* 2.1.3 is a development release
This problem is currently blocking https://github.com/Homebrew/homebrew-core/pull/42536 | Library/Homebrew/dev-cmd/audit.rb | @@ -691,6 +691,7 @@ def audit_specs
gnome_devel_whitelist = %w[
libart 2.3.21
pygtkglext 1.1.0
+ gtk-mac-integration 2.1.3
].each_slice(2).to_a.map do |formula, version|
[formula, version.split(".")[0..1].join(".")]
end | false |
Other | Homebrew | brew | 7f6ef77d0e12b898a366dd907e4c4f3434fcb9a6.json | Address PR comments: remove test and use return ... if | Library/Homebrew/cask/cmd/upgrade.rb | @@ -42,16 +42,14 @@ def run
.map { |(old_cask, new_cask)| "#{new_cask.full_name} #{old_cask.version} -> #{new_cask.version}" }
.join(", ")
- if dry_run?
- puts "Dry run: did not upgrade anything."
- else
- upgradable_casks.each do |(old_cask, new_cask)|
- ... | true |
Other | Homebrew | brew | 7f6ef77d0e12b898a366dd907e4c4f3434fcb9a6.json | Address PR comments: remove test and use return ... if | Library/Homebrew/cmd/upgrade.rb | @@ -106,15 +106,13 @@ def upgrade
puts formulae_upgrades.join(", ")
end
- if args.dry_run?
- puts "Dry run: did not upgrade anything."
- else
- upgrade_formulae(formulae_to_install)
+ return puts "Dry run: did not upgrade anything." if args.dry_run?
- check_dependents(formulae_to... | true |
Other | Homebrew | brew | 7f6ef77d0e12b898a366dd907e4c4f3434fcb9a6.json | Address PR comments: remove test and use return ... if | Library/Homebrew/test/cmd/upgrade_spec.rb | @@ -16,17 +16,4 @@
expect(HOMEBREW_CELLAR/"testball/0.1").to be_a_directory
expect(HOMEBREW_CELLAR/"testball/0.0.1").not_to exist
end
-
- it "can do a dry run upgrade" do
- setup_test_formula "testball"
- (HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
-
- expect { brew "upgrade", "--dry-run" }
- ... | true |
Other | Homebrew | brew | ac0ff9ae46dc47790a3c0d16c2c85b11bd08383d.json | Update md and run `brew man`. | Library/Homebrew/manpages/brew-cask.1.md | @@ -97,13 +97,16 @@ graphical user interface.
Uninstall the given Cask. With `--force`, uninstall even if the Cask
does not appear to be present.
- * `upgrade` [--force] [--greedy] <token> [ <token> ... ]:
+ * `upgrade` [--force] [--greedy] [--dry-run] <token> [ <token> ... ]:
Without token arguments... | true |
Other | Homebrew | brew | ac0ff9ae46dc47790a3c0d16c2c85b11bd08383d.json | Update md and run `brew man`. | manpages/brew-cask.1 | @@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "BREW\-CASK" "1" "May 2019" "Homebrew" "brew-cask"
+.TH "BREW\-CASK" "1" "July 2019" "Homebrew" "brew-cask"
.
.SH "NAME"
\fBbrew\-cask\fR \- a friendly binary installer for macOS
@@ -103,6 +103,9 @@ Uninstall the ... | true |
Other | Homebrew | brew | ac0ff9ae46dc47790a3c0d16c2c85b11bd08383d.json | Update md and run `brew man`. | manpages/brew.1 | @@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "BREW" "1" "May 2019" "Homebrew" "brew"
+.TH "BREW" "1" "July 2019" "Homebrew" "brew"
.
.SH "NAME"
\fBbrew\fR \- The missing package manager for macOS | true |
Other | Homebrew | brew | 97cbf43a3dc8db337f6dfd703b9e5055900a4f89.json | python_virtualenv_constants: upgrade virtualenv to 16.7.2 | Library/Homebrew/language/python_virtualenv_constants.rb | @@ -1,8 +1,8 @@
# frozen_string_literal: true
PYTHON_VIRTUALENV_URL =
- "https://files.pythonhosted.org/packages/fc/e4" \
- "/f0acb4e82acd60f843308112421a41ea70c06bbce51d13fa00736d09a6ae" \
- "/virtualenv-16.7.1.tar.gz"
+ "https://files.pythonhosted.org/packages/a9/8a" \
+ "/580c7176f01540615c2eb3f3ab5462613b4... | false |
Other | Homebrew | brew | da20f63da1e69538de9283dd8e2b64a61d59caa0.json | python_virtualenv_constants: upgrade virtualenv to 16.7.1 | Library/Homebrew/language/python_virtualenv_constants.rb | @@ -1,8 +1,8 @@
# frozen_string_literal: true
PYTHON_VIRTUALENV_URL =
- "https://files.pythonhosted.org/packages/97/f4" \
- "/64c1853c3b35c1cfa57f3485b49c8c684f9dcaba4e24c56717b83fc66e90" \
- "/virtualenv-16.6.2.tar.gz"
+ "https://files.pythonhosted.org/packages/fc/e4" \
+ "/f0acb4e82acd60f843308112421a41ea70c... | false |
Other | Homebrew | brew | 739c06229dc04861d225f19480b8169e965b9727.json | curl/curl_output: allow redacting secrets in the log
Add a new argument `secrets` to specify secret tokens, so we can redact them in the log. | Library/Homebrew/utils/curl.rb | @@ -42,13 +42,14 @@ def curl_args(*extra_args, show_output: false, user_agent: :default)
args + extra_args
end
-def curl(*args)
+def curl(*args, secrets: [], **options)
# SSL_CERT_FILE can be incorrectly set by users or portable-ruby and screw
# with SSL downloads so unset it here.
system_command! curl_e... | false |
Other | Homebrew | brew | 66697d429046550904adfa3ac8e689b37c964b6a.json | ENV: add sensitive_environment function
ENV#sensitive_environment is used to list all sensitive environments.
Also refactor the code on determining whether an environment is sensitive. | Library/Homebrew/extend/ENV.rb | @@ -29,12 +29,16 @@ def with_build_environment
replace(old_env)
end
- def clear_sensitive_environment!
- each_key do |key|
- next unless /(cookie|key|token|password)/i =~ key
+ def sensitive?(key)
+ /(cookie|key|token|password)/i =~ key
+ end
- delete key
- end
+ def sensitive_environ... | true |
Other | Homebrew | brew | 66697d429046550904adfa3ac8e689b37c964b6a.json | ENV: add sensitive_environment function
ENV#sensitive_environment is used to list all sensitive environments.
Also refactor the code on determining whether an environment is sensitive. | Library/Homebrew/system_config.rb | @@ -4,6 +4,7 @@
require "software_spec"
require "rexml/document"
require "development_tools"
+require "extend/ENV"
class SystemConfig
class << self
@@ -173,7 +174,7 @@ def dump_verbose_config(f = $stdout)
next if boring_keys.include?(key)
next if defaults_hash[key.to_sym]
- val... | true |
Other | Homebrew | brew | 66697d429046550904adfa3ac8e689b37c964b6a.json | ENV: add sensitive_environment function
ENV#sensitive_environment is used to list all sensitive environments.
Also refactor the code on determining whether an environment is sensitive. | Library/Homebrew/test/ENV_spec.rb | @@ -143,6 +143,13 @@
expect(subject["MAKEFLAGS"]).to eq("-j4")
end
+ describe "#sensitive_environment" do
+ it "list sensitive environment" do
+ subject["SECRET_TOKEN"] = "password"
+ expect(subject.sensitive_environment).to include("SECRET_TOKEN")
+ end
+ end
+
describe "#clear_sensitive... | true |
Other | Homebrew | brew | 9232ca4508184505f140b3810823872299b480df.json | system_command: allow redacting secrets in the log
Add a new argument `secrets` to specify secret tokens, so we can redact them in the log. | Library/Homebrew/exceptions.rb | @@ -1,6 +1,7 @@
# frozen_string_literal: true
require "shellwords"
+require "utils"
class UsageError < RuntimeError
attr_reader :reason
@@ -520,7 +521,7 @@ class ErrorDuringExecution < RuntimeError
attr_reader :status
attr_reader :output
- def initialize(cmd, status:, output: nil)
+ def initialize(c... | true |
Other | Homebrew | brew | 9232ca4508184505f140b3810823872299b480df.json | system_command: allow redacting secrets in the log
Add a new argument `secrets` to specify secret tokens, so we can redact them in the log. | Library/Homebrew/system_command.rb | @@ -34,7 +34,7 @@ def self.run!(command, **options)
end
def run!
- puts command.shelljoin.gsub(/\\=/, "=") if verbose? || ARGV.debug?
+ puts redact_secrets(command.shelljoin.gsub('\=', "="), @secrets) if verbose? || ARGV.debug?
@output = []
@@ -54,7 +54,7 @@ def run!
end
def initialize(ex... | true |
Other | Homebrew | brew | 9232ca4508184505f140b3810823872299b480df.json | system_command: allow redacting secrets in the log
Add a new argument `secrets` to specify secret tokens, so we can redact them in the log. | Library/Homebrew/test/system_command_spec.rb | @@ -252,5 +252,17 @@
expect(system_command(executable)).to be_a_success
end
end
+
+ context "when given arguments with secrets" do
+ it "does not leak the secrets" do
+ redacted_msg = /#{Regexp.escape("username:******")}/
+ expect do
+ described_class.run! "curl",
+ ... | true |
Other | Homebrew | brew | 9232ca4508184505f140b3810823872299b480df.json | system_command: allow redacting secrets in the log
Add a new argument `secrets` to specify secret tokens, so we can redact them in the log. | Library/Homebrew/utils.rb | @@ -500,3 +500,7 @@ def tap_and_name_comparison
def command_help_lines(path)
path.read.lines.grep(/^#:/).map { |line| line.slice(2..-1) }
end
+
+def redact_secrets(input, secrets)
+ secrets.reduce(input) { |str, secret| str.gsub secret, "******" }.freeze
+end | true |
Other | Homebrew | brew | f3e15955b3cc698b532b4cbd0c9cd92da49ab2b6.json | formula_creator: remove redundant dep for meson | Library/Homebrew/formula_creator.rb | @@ -96,12 +96,12 @@ class #{Formulary.class_s(name)} < Formula
<% end %>
sha256 "#{sha256}"
<% end %>
+
<% if mode == :cmake %>
depends_on "cmake" => :build
<% elsif mode == :meson %>
depends_on "meson" => :build
depends_on "ninja" => :buil... | false |
Other | Homebrew | brew | ba9dde9a4e384cb590718331d74e18da5e78786e.json | python_virtualenv_constants: upgrade virtualenv to 16.6.2 | Library/Homebrew/language/python_virtualenv_constants.rb | @@ -1,8 +1,8 @@
# frozen_string_literal: true
PYTHON_VIRTUALENV_URL =
- "https://files.pythonhosted.org/packages/37/27" \
- "/706af3ee62032933a3217454609c50a5325a6bd9c2c2f495b58c456ba286" \
- "/virtualenv-16.6.1.tar.gz"
+ "https://files.pythonhosted.org/packages/97/f4" \
+ "/64c1853c3b35c1cfa57f3485b49c8c684f9... | false |
Other | Homebrew | brew | 02b97600af01f8a59566defe27af8673c48edd64.json | bottle_publisher: fix bottle info accessor | Library/Homebrew/bottle_publisher.rb | @@ -107,14 +107,14 @@ def verify_bintray_published(formulae_names)
# Poll for publication completion using a quick partial HEAD, to avoid spurious error messages
# 401 error is normal while file is still in async publishing process
- url = URI(bottle_info.url)
+ url = URI(bottle_info["... | false |
Other | Homebrew | brew | 0ac5cbbda9ddca02da5e0196d29e9ae2a2d6ae98.json | java_dep_if_needed: Install adoptopenjdk for Linux
Install adoptopenjdk rather than openjdk for Linux.
openjdk is superseded by adoptopenjdk. | Library/Homebrew/extend/os/linux/dependency_collector.rb | @@ -4,7 +4,7 @@ class DependencyCollector
def java_dep_if_needed(tags)
req = JavaRequirement.new(tags)
begin
- dep = Dependency.new("openjdk", tags)
+ dep = Dependency.new("adoptopenjdk", tags)
return dep if dep.installed?
return req if req.satisfied?
| false |
Other | Homebrew | brew | 99ed23347abb7a13af38e5af52487d36975550c3.json | formula: update caveats documentation. | Library/Homebrew/formula.rb | @@ -1014,13 +1014,13 @@ def run_post_install
@prefix_returns_versioned_prefix = false
end
- # Tell the user about any Homebrew-specific caveats or locations regarding
- # this package. These should not contain setup instructions that would apply
- # to installation through a different package manager on a ... | false |
Other | Homebrew | brew | 9b0b10ca03b10d6886b25c98e5a5a197504c990f.json | Formula Cookbook: use "caveats" name explicitly. | docs/Formula-Cookbook.md | @@ -283,7 +283,7 @@ Homebrew expects to find manual pages in `#{prefix}/share/man/...`, and not in `
Some software installs to `man` instead of `share/man`, so check the output and add a `"--mandir=#{man}"` to the `./configure` line if needed.
-### Special instructions
+### Caveats
In case there are specific is... | false |
Other | Homebrew | brew | 0980c4150f09c65a3df36c2d2e9a180cc56a9819.json | Docs: add caveat info to cookbook | docs/Formula-Cookbook.md | @@ -283,6 +283,18 @@ Homebrew expects to find manual pages in `#{prefix}/share/man/...`, and not in `
Some software installs to `man` instead of `share/man`, so check the output and add a `"--mandir=#{man}"` to the `./configure` line if needed.
+### Special instructions
+
+In case there are specific issues with th... | false |
Other | Homebrew | brew | 69f4c3fe05ccc130beaa3dc2f92f5180cdbb4646.json | .github/issue-close-app: make message friendlier.
This should hopefully make the experience a little more pleasant when users make an innocent mistake. | .github/issue-close-app.yml | @@ -1,10 +1,10 @@
# Comment that will be sent if an issue is judged to be closed
comment: |
- From the issue template:
+ Whoops, it looks like you created an issue without filling out the checklist and providing all the needed information from one of the issue templates: <https://github.com/Homebrew/homebrew-brew/i... | false |
Other | Homebrew | brew | 08561335cebcf4cfc6d5459e8fb4c0ea9a52baf8.json | python_virtualenv_constants: upgrade virtualenv to 16.6.1 | Library/Homebrew/language/python_virtualenv_constants.rb | @@ -1,8 +1,8 @@
# frozen_string_literal: true
PYTHON_VIRTUALENV_URL =
- "https://files.pythonhosted.org/packages/53/c0" \
- "/c7819f0bb2cf83e1b4b0d96c901b85191f598a7b534d297c2ef6dc80e2d3" \
- "/virtualenv-16.6.0.tar.gz"
+ "https://files.pythonhosted.org/packages/37/27" \
+ "/706af3ee62032933a3217454609c50a5325... | false |
Other | Homebrew | brew | 3cfb028e7f15bc3c51783380d8358b1c7f141ec9.json | Resource#fetch: verify downloads by default.
This API is used internally correctly and externally mostly correctly
but #6230 reveals the external usage is fairly confusing and a bit
unsafe by default. Preserve the existing API while verifying the
checksum by default and providing an opt-out. Using the existing, safe
m... | Library/Homebrew/cmd/fetch.rb | @@ -133,7 +133,7 @@ def fetch_fetchable(f)
already_fetched = f.cached_download.exist?
begin
- download = f.fetch
+ download = f.fetch(verify_download_integrity: false)
rescue DownloadError
retry if retry_fetch? f
raise | true |
Other | Homebrew | brew | 3cfb028e7f15bc3c51783380d8358b1c7f141ec9.json | Resource#fetch: verify downloads by default.
This API is used internally correctly and externally mostly correctly
but #6230 reveals the external usage is fairly confusing and a bit
unsafe by default. Preserve the existing API while verifying the
checksum by default and providing an opt-out. Using the existing, safe
m... | Library/Homebrew/dev-cmd/mirror.rb | @@ -47,7 +47,6 @@ def mirror
downloader = f.downloader
downloader.fetch
- f.verify_download_integrity(downloader.cached_location)
filename = downloader.basename
| true |
Other | Homebrew | brew | 3cfb028e7f15bc3c51783380d8358b1c7f141ec9.json | Resource#fetch: verify downloads by default.
This API is used internally correctly and externally mostly correctly
but #6230 reveals the external usage is fairly confusing and a bit
unsafe by default. Preserve the existing API while verifying the
checksum by default and providing an opt-out. Using the existing, safe
m... | Library/Homebrew/formula.rb | @@ -1688,8 +1688,8 @@ def to_hash
end
# @private
- def fetch
- active_spec.fetch
+ def fetch(verify_download_integrity: true)
+ active_spec.fetch(verify_download_integrity: verify_download_integrity)
end
# @private
@@ -2057,10 +2057,7 @@ def prepare_patches
active_spec.add_legacy_patches(pa... | true |
Other | Homebrew | brew | 3cfb028e7f15bc3c51783380d8358b1c7f141ec9.json | Resource#fetch: verify downloads by default.
This API is used internally correctly and externally mostly correctly
but #6230 reveals the external usage is fairly confusing and a bit
unsafe by default. Preserve the existing API while verifying the
checksum by default and providing an opt-out. Using the existing, safe
m... | Library/Homebrew/formula_installer.rb | @@ -948,8 +948,9 @@ def pour
downloader = LocalBottleDownloadStrategy.new(bottle_path)
else
downloader = formula.bottle
- downloader.verify_download_integrity(downloader.fetch)
+ downloader.fetch
end
+
HOMEBREW_CELLAR.cd do
downloader.stage
end | true |
Other | Homebrew | brew | 3cfb028e7f15bc3c51783380d8358b1c7f141ec9.json | Resource#fetch: verify downloads by default.
This API is used internally correctly and externally mostly correctly
but #6230 reveals the external usage is fairly confusing and a bit
unsafe by default. Preserve the existing API while verifying the
checksum by default and providing an opt-out. Using the existing, safe
m... | Library/Homebrew/resource.rb | @@ -70,17 +70,14 @@ def clear_cache
def stage(target = nil, &block)
raise ArgumentError, "target directory or block is required" unless target || block
- verify_download_integrity(fetch)
+ fetch
prepare_patches
unpack(target, &block)
end
def prepare_patches
patches.grep(DATAPatch)... | true |
Other | Homebrew | brew | 7c04c34a88924b1edf9268be9a3faf870b78c080.json | system_config: hide HOMEBREW_BUNDLE_* env vars.
These are being introduced in e.g.
https://github.com/Homebrew/homebrew-bundle/pull/486 and we don't care
about them in Homebrew bug reports. | Library/Homebrew/system_config.rb | @@ -169,6 +169,7 @@ def dump_verbose_config(f = $stdout)
unless ENV["HOMEBREW_ENV"]
ENV.sort.each do |key, value|
next unless key.start_with?("HOMEBREW_")
+ next if key.start_with?("HOMEBREW_BUNDLE_")
next if boring_keys.include?(key)
next if defaults_hash[key.t... | false |
Other | Homebrew | brew | 57fa2137b29a2f93a478a2038af626c0949fa306.json | audit: check bind for development versions | Library/Homebrew/dev-cmd/audit.rb | @@ -719,6 +719,15 @@ def audit_specs
problem "#{stable.version} is a development release" if minor_version.odd?
end
end
+
+ case formula.name
+ when /bind/
+ version = Version.parse(stable.url)
+ return if version.to_s.split(".").second.to_i.even?
+
+ problem "B... | false |
Other | Homebrew | brew | 11de7de49d272af4f75c5289b28dfce7b735312c.json | rubocops/text: fix long line. | Library/Homebrew/rubocops/text.rb | @@ -16,8 +16,8 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
problem "Formulae should not depend on both OpenSSL and LibreSSL (even optionally)."
end
- if depends_on?("veclibfort") || depends_on?("lapack")
- problem "Formulae should use OpenBLAS as... | false |
Other | Homebrew | brew | 65fbcc86d0c51c1ae04a6224b82d8fcf696632d3.json | Add test for MPI choice cop's autocorrect | Library/Homebrew/test/rubocops/lines_spec.rb | @@ -292,6 +292,14 @@ class Foo < Formula
^^^^^^^^^^^^^^^^^^ Use 'depends_on "open-mpi"' instead of 'depends_on "mpich"'.
end
RUBY
+
+ expect_correction(<<~RUBY)
+ class Foo < Formula
+ desc "foo"
+ url 'https://brew.sh/foo-1.0.tgz'
+ depends_on "open-mpi... | false |
Other | Homebrew | brew | ffe30058ab2bfbd62c6e3a4e85df6c6cad389a31.json | Add MPICH cop and test
- Split off from PR Homebrew/brew#6209
- Create stand alone class for cop w/ auto-correct | Library/Homebrew/rubocops/lines.rb | @@ -157,6 +157,24 @@ def unless_modifier?(node)
end
end
+ class MpiCheck < FormulaCop
+ def audit_formula(_node, _class_node, _parent_class_node, body_node)
+ # Enforce use of OpenMPI for MPI dependency in core
+ return unless formula_tap == "homebrew-core"
+
+ f... | true |
Other | Homebrew | brew | ffe30058ab2bfbd62c6e3a4e85df6c6cad389a31.json | Add MPICH cop and test
- Split off from PR Homebrew/brew#6209
- Create stand alone class for cop w/ auto-correct | Library/Homebrew/test/rubocops/lines_spec.rb | @@ -279,6 +279,23 @@ def options
end
end
+describe RuboCop::Cop::FormulaAudit::MpiCheck do
+ subject(:cop) { described_class.new }
+
+ context "When auditing formula" do
+ it "reports an offense when using depends_on \"mpich\"" do
+ expect_offense(<<~RUBY, "/homebrew-core/")
+ class Foo < Formula... | true |
Other | Homebrew | brew | 68288b3495778dcb38e04d28b178b8ac49da0231.json | Add link to rubydoc.brew.sh to docs landing page | docs/README.md | @@ -50,6 +50,7 @@
- [Brew Test Bot For Maintainers](Brew-Test-Bot-For-Core-Contributors.md)
- [Common Issues for Maintainers](Common-Issues-for-Core-Contributors.md)
- [Releases](Releases.md)
+- [Developer/Internal API Documentation](https://rubydoc.brew.sh)
## Governance
| false |
Other | Homebrew | brew | 629c319dc4edee6a8a700351b1ba6fddb5ab73a9.json | pkg-config: add initial support for macOS Catalina | Library/Homebrew/os/mac/pkgconfig/10.15/libcurl.pc | @@ -0,0 +1,39 @@
+#***************************************************************************
+# _ _ ____ _
+# Project ___| | | | _ \| |
+# / __| | | | |_) | |
+# | (__| |_| | _ <| |___
+# ... | true |
Other | Homebrew | brew | 629c319dc4edee6a8a700351b1ba6fddb5ab73a9.json | pkg-config: add initial support for macOS Catalina | Library/Homebrew/os/mac/pkgconfig/10.15/libexslt.pc | @@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+
+Name: libexslt
+Version: 0.8.17
+Description: EXSLT Extension library
+Requires: libxml-2.0
+Libs: -L${libdir} -lexslt -lxslt -lxml2 -lz -lpthread -licucore -lm
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 629c319dc4edee6a8a700351b1ba6fddb5ab73a9.json | pkg-config: add initial support for macOS Catalina | Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc | @@ -0,0 +1,13 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+modules=1
+
+Name: libXML
+Version: 2.9.4
+Description: libXML library version2.
+Requires:
+Libs: -L${libdir} -lxml2
+Libs.private: -lz -lpthread -licucore -lm
+Cflags: -I${includedir}/libxml2 | true |
Other | Homebrew | brew | 629c319dc4edee6a8a700351b1ba6fddb5ab73a9.json | pkg-config: add initial support for macOS Catalina | Library/Homebrew/os/mac/pkgconfig/10.15/libxslt.pc | @@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+
+Name: libxslt
+Version: 1.1.29
+Description: XSLT library version 2.
+Requires: libxml-2.0
+Libs: -L${libdir} -lxslt -lxml2 -lz -lpthread -licucore -lm
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 629c319dc4edee6a8a700351b1ba6fddb5ab73a9.json | pkg-config: add initial support for macOS Catalina | Library/Homebrew/os/mac/pkgconfig/10.15/sqlite3.pc | @@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: SQLite
+Description: SQL database engine
+Version: 3.28.0
+Libs: -L${libdir} -lsqlite3
+Libs.private:
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 629c319dc4edee6a8a700351b1ba6fddb5ab73a9.json | pkg-config: add initial support for macOS Catalina | Library/Homebrew/os/mac/pkgconfig/10.15/uuid.pc | @@ -0,0 +1,13 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+sharedlibdir=${libdir}
+includedir=${prefix}/include
+
+Name: uuid
+Description: Universally unique id library
+Version: 1.0
+
+Requires:
+Libs:
+Cflags: -I${includedir}/uuid | true |
Other | Homebrew | brew | 629c319dc4edee6a8a700351b1ba6fddb5ab73a9.json | pkg-config: add initial support for macOS Catalina | Library/Homebrew/os/mac/pkgconfig/10.15/zlib.pc | @@ -0,0 +1,13 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+sharedlibdir=${libdir}
+includedir=${prefix}/include
+
+Name: zlib
+Description: zlib compression library
+Version: 1.2.11
+
+Requires:
+Libs: -L${libdir} -L${sharedlibdir} -lz
+Cflags: -I${includedir} | true |
Other | Homebrew | brew | 2a5aee0a0b98f40d6936d124c67cc3ec33d6ee03.json | xcode: add initial support for Xcode 11.0 | Library/Homebrew/os/mac.rb | @@ -37,7 +37,7 @@ def full_version=(version)
def latest_sdk_version
# TODO: bump version when new Xcode macOS SDK is released
- Version.new "10.14"
+ Version.new "10.15"
end
def latest_stable_version
@@ -208,6 +208,7 @@ def preferred_arch
"10.1" => { clang: "10.0", clang_bui... | true |
Other | Homebrew | brew | 2a5aee0a0b98f40d6936d124c67cc3ec33d6ee03.json | xcode: add initial support for Xcode 11.0 | Library/Homebrew/os/mac/xcode.rb | @@ -17,16 +17,18 @@ def latest_version
when "10.12" then "9.2"
when "10.13" then "10.1"
when "10.14" then "10.2.1"
+ when "10.15" then "11.0"
else
raise "macOS '#{MacOS.version}' is invalid" unless OS::Mac.prerelease?
# Default to newest known version o... | true |
Other | Homebrew | brew | b2969e6063a923e03a4376785fa476807ebab6f0.json | Add needs_linux tag to specs that fails on MacOS | Library/Homebrew/software_spec.rb | @@ -171,7 +171,7 @@ def depends_on(spec)
end
def uses_from_macos(deps, **_args)
- deps.is_a?(Hash) && deps = Hash[*deps.shift]
+ deps = Hash[*deps.shift] if deps.is_a?(Hash)
depends_on(deps)
end | true |
Other | Homebrew | brew | b2969e6063a923e03a4376785fa476807ebab6f0.json | Add needs_linux tag to specs that fails on MacOS | Library/Homebrew/test/os/linux/software_spec_spec.rb | @@ -1,35 +0,0 @@
-# frozen_string_literal: true
-
-require "software_spec"
-
-describe SoftwareSpec do
- subject(:spec) { described_class.new }
-
- describe "#uses_from_macos" do
- before do
- allow(OS).to receive(:linux?).and_return(true)
- end
-
- it "allows specifying dependencies" do
- spec.use... | true |
Other | Homebrew | brew | b2969e6063a923e03a4376785fa476807ebab6f0.json | Add needs_linux tag to specs that fails on MacOS | Library/Homebrew/test/software_spec_spec.rb | @@ -132,6 +132,30 @@
end
end
+ describe "#uses_from_macos" do
+ it "allows specifying dependencies", :needs_linux do
+ spec.uses_from_macos("foo")
+
+ expect(spec.deps.first.name).to eq("foo")
+ end
+
+ it "works with tags", :needs_linux do
+ spec.uses_from_macos("foo" => :head, :afte... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.