26902 Commits

Author SHA1 Message Date
Mike McQuaid
0915cc7b80
Merge pull request #14163 from apainintheneck/create-cop-for-os-checks
Add cop for `OS.linux?` and `OS.mac?` usage
2022-11-30 13:09:21 +00:00
apainintheneck
00990e34a7 Merge branch 'master' into create-cop-for-os-checks 2022-11-29 23:14:15 -08:00
apainintheneck
c477b9aab3 Cleanup after adding os specific rubocop
- Change name of rubocop warning
- Disable linting on remaining offending lines
- Add todos to move lines with disabled linting
  checks to extend/os in the future
2022-11-29 23:13:50 -08:00
apainintheneck
d48859a9ce Move FormulaInstaller check to extend/os 2022-11-29 23:13:50 -08:00
apainintheneck
2eee1e7c2a Move SimulateSystem check to extend/os 2022-11-29 23:13:50 -08:00
Bo Anderson
5445bf8f39
shims/super/cc: unset RUBYLIB 2022-11-30 03:50:38 +00:00
Frederick Zhang
c27eed4606
Curl: Fix following redirections when base changes
Update base URL when there is an absolute location, so that following
relative locations are considered relative to the new base.

Consider below cURL output for https://example_one.com:

    HTTP/1.1 302 Moved Temporarily
    Location: https://example_two.com

    HTTP/1.1 302 Moved Temporarily
    Location: /foo/

    HTTP/1.1 200 OK

The final URL should be https://example_two.com/foo/ rather than
https://example_one.com/foo/.
2022-11-30 01:32:24 +11:00
Mike McQuaid
747829334b
Merge pull request #14180 from Homebrew/dependabot/bundler/Library/Homebrew/bootsnap-1.15.0
build(deps): bump bootsnap from 1.14.0 to 1.15.0 in /Library/Homebrew
2022-11-29 11:56:53 +00:00
Mike McQuaid
f384c94ee5
Merge pull request #14179 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.1.3.0
build(deps): bump parser from 3.1.2.1 to 3.1.3.0 in /Library/Homebrew
2022-11-29 11:56:42 +00:00
BrewTestBot
be73fc19dd
Update RBI files for parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-29 10:49:22 +00:00
BrewTestBot
23ef33c3b1
Update RBI files for bootsnap.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-29 10:47:12 +00:00
BrewTestBot
36c1a15eda
brew vendor-gems: commit updates. 2022-11-29 10:44:27 +00:00
BrewTestBot
d121cd6cc1
brew vendor-gems: commit updates. 2022-11-29 10:42:15 +00:00
dependabot[bot]
b00046eec1
build(deps): bump parser from 3.1.2.1 to 3.1.3.0 in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 3.1.2.1 to 3.1.3.0.
- [Release notes](https://github.com/whitequark/parser/releases)
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v3.1.2.1...v3.1.3.0)

---
updated-dependencies:
- dependency-name: parser
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-29 10:38:40 +00:00
Mike McQuaid
2262abf317
Merge branch 'master' into rm-change-arch 2022-11-29 10:38:32 +00:00
dependabot[bot]
d69b827715
build(deps): bump bootsnap from 1.14.0 to 1.15.0 in /Library/Homebrew
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.14.0...v1.15.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-29 10:38:32 +00:00
Mike McQuaid
49bacd681e
diagnostic: remove some checks.
- Some of these are currently failing globally on GitHub Actions.
- Some(/all?) of these predate our use of the macOS sandbox,
  environment filtering, PATH filtering and pushing users much harder to
  use bottles instead of building from source
- I haven't seen a case for a long time where any of these actually
  debugged a user issue. If/when this happens: we can add a given check
  back.
- This should allow us to dramatically reduce the amount of cleanup
  that `brew test-bot` needs to do on GitHub Actions.
2022-11-29 09:21:34 +00:00
Carlo Cabrera
239743f39b
Fix shellcheck error 2022-11-24 22:15:03 +08:00
Carlo Cabrera
cf01a7f985
brew.sh: remove HOMEBREW_CHANGE_ARCH_TO_ARM
We used to need this because the GitHub runner process was running under
Rosetta. GitHub Actions has supported native M1 runners for a few months
now, so I think it's time to remove this.
2022-11-24 22:07:30 +08:00
apainintheneck
1db5d967c3 Ignore os.rb where checks are defined 2022-11-23 20:39:59 -08:00
apainintheneck
9c2293a08e Move Sandbox check to extend/os 2022-11-23 20:39:59 -08:00
apainintheneck
65bce0ed3c Move unpack_strategy/zip check to extend/os 2022-11-23 20:39:59 -08:00
apainintheneck
260fc858df Fix rubocop errors 2022-11-23 20:39:39 -08:00
apainintheneck
d69326c8d0 Move ::Cleanup check to extend/os 2022-11-23 20:38:40 -08:00
BrewTestBot
6e215ecaba
Update RBI files for rubocop-rails.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-21 18:14:15 +00:00
BrewTestBot
e1bf39a180
brew vendor-gems: commit updates. 2022-11-21 18:09:07 +00:00
dependabot[bot]
fd1ebc4e89
build(deps): bump rubocop-rails in /Library/Homebrew
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.17.2 to 2.17.3.
- [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.17.2...v2.17.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 18:05:14 +00:00
Issy Long
38a1bf337f
Merge pull request #14162 from issyl0/rubocop-cleanup
rubocop_todo: Clean up deleted paths & excludes without offenses
2022-11-21 14:48:08 +00:00
Mike McQuaid
9637c0fbcc
Merge pull request #14164 from ThatsJustCheesy/brew-casks-root-formulae
Prevent `brew casks` from finding formulae at tap root
2022-11-21 14:31:24 +00:00
Ian Gregory
9013ca2a22 Prevent brew casks from finding formulae at tap root 2022-11-20 16:22:18 -05:00
apainintheneck
c7d53a2d9c Add cop to police os checks
The methods `OS.linux?` and `OS.mac?` should only be used
in `extend/os` and this cop makes sure of that.
2022-11-19 22:01:13 -08:00
Issy Long
5beebf2238
rubocop_todo: Clean up file paths that no longer exist 2022-11-20 00:00:20 +00:00
Issy Long
70553455b8
rubocop_todo: dependency.rb no longer has empty blocks 2022-11-20 00:00:15 +00:00
Issy Long
c37601f585
dev-cmd/bump-{cask,formula}-pr: args.message is before the default
- I was wondering why `brew bump` PRs have descriptions with both commands, like:

```
Created with `brew bump`.

---

Created by `brew bump-formula-pr`.
```

- Then I read the code and realised that "append" was the wrong word for the
  `--message` arg description.
2022-11-19 23:03:23 +00:00
Bo Anderson
81f262ece3
utils/gems: use env shebang when installing gems 2022-11-19 00:58:05 +00:00
BrewTestBot
75eb7c56f5
Update RBI files for bootsnap.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-18 17:38:01 +00:00
BrewTestBot
6fb0d1dbdf
brew vendor-gems: commit updates. 2022-11-18 17:31:29 +00:00
dependabot[bot]
01b572b331
build(deps): bump bootsnap from 1.13.0 to 1.14.0 in /Library/Homebrew
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.13.0...v1.14.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-18 17:24:22 +00:00
Bo Anderson
a4f082dfe0
Merge pull request #14155 from Bo98/bundler-2.3.26
Update Bundler to 2.3.26
2022-11-18 17:23:15 +00:00
Mike McQuaid
984d9d712d
Merge pull request #14141 from apainintheneck/speed-up-deleted-reason
Speed up `deleted_reason` method
2022-11-18 09:18:37 +00:00
apainintheneck
2601cc410b Only optimize for the core tap 2022-11-17 21:15:43 -08:00
Bo Anderson
e21c926f9b
Update Bundler to 2.3.26 2022-11-17 16:35:08 +00:00
BrewTestBot
f0815b86d2
Update RBI files for regexp_parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-17 14:52:47 +00:00
BrewTestBot
1ac34a047b
brew vendor-gems: commit updates. 2022-11-17 14:46:05 +00:00
dependabot[bot]
fa9eab8d13
build(deps): bump regexp_parser from 2.6.0 to 2.6.1 in /Library/Homebrew
Bumps [regexp_parser](https://github.com/ammar/regexp_parser) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/ammar/regexp_parser/releases)
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ammar/regexp_parser/compare/v2.6.0...v2.6.1)

---
updated-dependencies:
- dependency-name: regexp_parser
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 14:42:06 +00:00
BrewTestBot
90f056218c
Update RBI files for rubocop-performance.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-16 18:12:53 +00:00
BrewTestBot
46088f22e0
brew vendor-gems: commit updates. 2022-11-16 18:06:28 +00:00
dependabot[bot]
c6f1907486
build(deps): bump rubocop-performance in /Library/Homebrew
Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.15.0...v1.15.1)

---
updated-dependencies:
- dependency-name: rubocop-performance
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 18:02:50 +00:00
Mike McQuaid
efa04015a1
Merge pull request #14149 from danielbayley/dev-cmd-ruby
dev-cmd/`ruby`: add `--version`
2022-11-16 13:39:49 +00:00
Daniel Bayley
4bf2b3df4a dev-cmd/ruby: add --version 2022-11-16 13:09:31 +00:00