Commit Graph
23538 Commits
Author SHA1 Message Date
Carlo CabreraandGitHub 0f0c7102f0 Merge pull request #12014 from carlocab/os-uname
os: add `uname` method
2021-09-10 22:57:16 +08:00
hyuraku e44ac800c2 repair cask install quiet mode 2021-09-10 23:12:52 +09:00
Bo AndersonandGitHub 4d07fb9c2e Merge pull request #11971 from Bo98/swift-sdkroot
shims: set SDKROOT for Swift
2021-09-10 14:53:43 +01:00
Carlo Cabrera 85580e7459 Use kernel_name instead of uname as the method name 2021-09-10 21:25:38 +08:00
b0668f4e31 Use -s flag in uname call
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-09-10 21:24:05 +08:00
Mike McQuaidandGitHub d649f15d6d Merge pull request #12009 from MikeMcQuaid/uses_from_macos_allow_aliases
formula_auditor: allow uses_from_macos for aliases.
2021-09-10 13:00:39 +01:00
Mike McQuaidandGitHub 1aae34d82d Merge pull request #12015 from FnControlOption/issue-11900
install, upgrade: don't print message if formula already installed
2021-09-10 13:00:26 +01:00
Mike McQuaidandGitHub eda7da3ce9 Merge pull request #12013 from Bo98/test-install-prerelease
test/cmd/(re)install_spec: don't fail on prerelease macOS
2021-09-10 12:55:48 +01:00
Bo AndersonandGitHub f8d0139015 Merge pull request #12017 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rails-2.12.0
build(deps): bump rubocop-rails from 2.11.3 to 2.12.0 in /Library/Homebrew
2021-09-09 19:59:51 +01:00
BrewTestBot 342fb409f8 Update RBI files for rubocop-rails. 2021-09-09 18:09:13 +00:00
BrewTestBot c4ac617a86 brew vendor-gems: commit updates. 2021-09-09 18:06:25 +00:00
BrewTestBot 252a1f3ee1 brew vendor-gems: commit updates. 2021-09-09 18:06:09 +00:00
dependabot[bot]andGitHub ab5f32a901 build(deps): bump rubocop-rails in /Library/Homebrew
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.11.3 to 2.12.0.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.11.3...v2.12.0)

---
updated-dependencies:
- dependency-name: rubocop-rails
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-09 18:03:13 +00:00
dependabot[bot]andGitHub 793310f03c build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9112 to 0.5.9115.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-09 18:02:46 +00:00
fn ⌃ ⌥ eec60c4086 install, upgrade: don't print message if formula already installed 2021-09-09 10:54:18 -07:00
Bo AndersonandGitHub 63fff991a2 Merge pull request #12011 from Bo98/monterey-fixtures
test/support/fixtures/bottles: add fixtures for Monterey
2021-09-09 17:30:19 +01:00
Bo Anderson 8076c9e569 os/mac/diagnostic: don't check for prerelease macOS in integration tests 2021-09-09 16:53:52 +01:00
Carlo Cabrera c90e63b299 os: add uname method
This will allow us to replace code like

    os = if OS.mac?
      "Darwin"
    else
      "Linux"
    end

with a call to `OS.uname`. Doing

    rg '= (if )?OS\.(mac|linux)\?'

returns about 70 matches, so there are probably at least a handful of
formulae that could be simplified by this.
2021-09-09 22:47:05 +08:00
Bo Anderson d742ea94f7 os/mac/pkgconfig/12: update version info 2021-09-09 15:28:56 +01:00
Bo Anderson a0093bd647 test/support/fixtures/bottles: add fixtures for Monterey 2021-09-09 15:28:15 +01:00
Mike McQuaid c6aea445a3 formula_auditor: allow uses_from_macos for aliases.
This will enable https://github.com/Homebrew/homebrew-core/pull/84910 which will
enable https://github.com/Homebrew/brew/pull/12008.
2021-09-09 10:24:35 +01:00
Mike McQuaidandGitHub f50b87031e Merge pull request #12005 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9112
build(deps-dev): bump sorbet from 0.5.9105 to 0.5.9112 in /Library/Homebrew
2021-09-09 10:21:27 +01:00
Mike McQuaidandGitHub 365e554f67 Revert "rubocops: allow uses_from_macos openssl@3" 2021-09-09 09:16:59 +01:00
BrewTestBot 0cacb21b42 brew vendor-gems: commit updates. 2021-09-08 18:08:38 +00:00
dependabot[bot]andGitHub e9cc08283c build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9105 to 0.5.9112.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-08 18:03:52 +00:00
fn ⌃ ⌥ 06041f7228 install, upgrade: recompute dependencies before installation 2021-09-08 08:48:21 -07:00
Mike McQuaid ebc4cce456 rubocops/lines: add some OS cop comments/exceptions.
Exclude and comment the cases the autocorrect currently doesn't work.

Follow-up from #11955.
2021-09-08 13:46:01 +01:00
Mike McQuaidandGitHub 56c413200c Merge pull request #11955 from Homebrew/on_os_if_rubocops
rubocops/lines: recommend on_os/OS.os? based on context.
2021-09-08 13:43:03 +01:00
Mike McQuaidandGitHub d42c81a507 Merge pull request #11987 from MikeMcQuaid/shims_path_helper
ENV/super: add `shims_path` helper method.
2021-09-08 13:39:30 +01:00
Mike McQuaid a6e4e195c1 rubocops/lines: recommend on_os/OS.os? based on context.
Recommend the use of `on_macos` and `on_linux` unless we're in
`def install`, `def post_install` or `test do` in which case recommend
`OS.mac?` and `OS.linux?` instead.
2021-09-08 13:18:07 +01:00
Mike McQuaidandGitHub 33a930ba5a Merge pull request #11997 from kurtraschke/patch-1
Replace two calls to undefined silent_command! in FossilDownloadStrategy with command!
2021-09-08 13:02:46 +01:00
Mike McQuaidandGitHub 4b68787740 Merge pull request #11990 from sullivan-sean/sandbox-pty-fix
Restore original TTY state after Sandbox
2021-09-08 12:57:21 +01:00
Mike McQuaid 2b6e580636 ENV/super: add shims_path helper method.
This allows us to stop repeatedly hardcoding this on macOS/Linux in
formulae.
2021-09-08 12:35:36 +01:00
Kurt RaschkeandGitHub f05f3ad345 Replace two calls to undefined silent_command! in FossilDownloadStrategy with command!
`FossilDownloadStrategy` attempts to call `silent_command!` in two places; this does not exist.
2021-09-08 00:09:31 -04:00
Sean Sullivan c0de9c5497 Comment more thoroughly 2021-09-07 19:49:01 -07:00
Carlo CabreraandGitHub 5c602003f2 Merge pull request #11930 from XuehaiPan/master
Show all export statements on `brew shellenv` if users modified `PATH` explicitly
2021-09-08 10:22:50 +08:00
BrewTestBot 669d7fd79d sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2021-09-08 00:11:45 +00:00
Sam FordandGitHub c4a91cdc95 Merge pull request #11972 from samford/fix-curl_args_options
Curl: Fix #curl_args options
2021-09-07 15:27:25 -04:00
Jonathan ChangandGitHub 87f7db3b7d Merge pull request #11994 from jonchang/openssl3
rubocops: allow uses_from_macos `openssl@3`
2021-09-07 11:52:34 -07:00
Mike McQuaidandGitHub f5a4214a70 Merge pull request #11956 from benpbolton/patch-1
Wrap mac 'brew info' multi-word service command parameters in single quotes
2021-09-07 19:43:06 +01:00
Jonathan Chang d85559876e tests: skip formulae exist check for openssl* 2021-09-07 11:33:27 -07:00
Jonathan Chang b463ad0124 rubocops: allow uses_from_macos openssl@3 2021-09-07 11:20:55 -07:00
Sean Sullivan 1f0f08c30d Remove redundant begin 2021-09-07 11:15:06 -07:00
Sam Ford f88966a8a5 Use curl options where appropriate 2021-09-07 14:13:19 -04:00
Sam Ford d44979fa67 Curl#curl_args: Fix and refactor options 2021-09-07 14:13:17 -04:00
BrewTestBot 75e1e4c05b brew vendor-gems: commit updates. 2021-09-07 18:05:46 +00:00
dependabot[bot]andGitHub abe46f61db build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9104 to 0.5.9105.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-07 18:03:21 +00:00
Sean Sullivan c7b36df879 Fix style 2021-09-07 10:09:47 -07:00
Benjamin Bolton dce6b77ad0 Modify syntax for readability / consistency
leverage map block and guard clause for readability thx @MikeMcQuaid
2021-09-07 10:10:26 -06:00
Benjamin Bolton a83877660b Revert "Accept @Rylan12 chained spacing conventions"
This reverts commit 538a5d9e69.
2021-09-07 07:24:58 -06:00