2330 Commits

Author SHA1 Message Date
Sam Ford
55ec4c483c
Crate: Rework conditions
Co-authored-by: Douglas Eichelberger <dduugg@gmail.com>
Co-authored-by: Markus Reiter <me@reitermark.us>
2024-02-11 21:53:21 -05:00
Sam Ford
98f3258ff4
Livecheck: Add Crate strategy
We discussed the idea of adding a livecheck strategy to check crate
versions years ago but decided to put it off because it would have
only applied to one formula at the time (and it wasn't clear that a
crate was necessary in that case). We now have a few formulae that
use a crate in the `stable` URL (`cargo-llvm-cov`, `pngquant`,
`oakc`) and another formula with a crate resource (`deno`), so
there's some value to the idea now.

I established a standard approach for checking crate versions in a
somewhat recent `pngquant` `livecheck` block update and this commit
reworks it into a strategy, so we won't have to duplicate that
`livecheck` block in these cases. With this strategy, we usually
won't even need a `livecheck` block at all.

Under normal circumstances, a regex and/or strategy block shouldn't
be necessary but the strategy supports them when needed. The response
from the crates.io API is a JSON object, so this uses
`Json#versions_from_content` internally and a `strategy` block will
receive the parsed `json` object and a regex (the strategy default or
the regex from the `livecheck` block).
2024-02-11 21:53:21 -05:00
Aaron Liu
db12a9c4ae
Docs: the deleted → be deleted 2024-02-11 14:47:32 -05:00
Issy Long
dbb10da4b0
Merge pull request #16585 from issyl0/rm-ancient-flowchart
Delete ancient 'managing PRs' flowchart
2024-02-05 16:05:04 +01:00
Issy Long
a8beb98bad
PRs raised at 2am are only half done, zzzz 2024-02-05 15:49:40 +01:00
BrewTestBot
137dc5d2bf
Update maintainers.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2024-02-05 12:07:42 +00:00
BrewTestBot
09582bba6a
Update maintainers.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2024-02-05 09:29:14 +00:00
BrewTestBot
5bea5532f9
Update maintainers.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2024-02-05 09:07:40 +00:00
Mike McQuaid
cda2205fae
Merge pull request #16494 from MikeMcQuaid/import_homebrew_governance_private
Homebrew-Governance: import PLC-approved changes.
2024-02-05 10:00:10 +01:00
Issy Long
d0795d2b9d
Delete ancient 'managing PRs' flowchart
- This diagram was really old and didn't reflect the current practices
  (a lot more things are automated now, hurray).
- Anything we replace it with will get outdated fast too.
- Also delete the diagramming docs since I don't believe we have made
  another diagram since this one which got out of date and forgotten
  about since it was a DrawIO SVG and not easily editable as code.
- If we want diagrams these days, we can use Mermaid which is
  diagrams-as-code.
2024-02-05 01:47:55 +01:00
Mike McQuaid
f09ea3a472
Merge pull request #16583 from dnicolson/fix-quick-look-2
Replace “QuickLook” with “Quick Look”
2024-02-04 17:55:54 +01:00
Dave Nicolson
4d9496831d Replace “QuickLook” with “Quick Look” 2024-02-04 16:30:03 +01:00
Eric Knibbe
e63b1f4da5
docs: monospace suggested values 2024-02-04 15:42:26 +01:00
Mike McQuaid
683bb6d73a
docs/Homebrew-Governance: fix typo.
Co-authored-by: Steve Peters <computersthatmove@gmail.com>
2024-02-04 13:52:15 +01:00
Mike McQuaid
1cbc5462c7
Homebrew-Governance: import PLC-approved changes.
All the changes here were approved by a majority of the PLC and
offered for review to the TSC and members with no blocking objections.
2024-02-04 13:52:15 +01:00
BrewTestBot
17e7006651
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2024-02-04 11:40:44 +00:00
Issy Long
06028c204a
Merge pull request #16518 from issyl0/rubocop-md
rubocop: Try out `rubocop-md` for linting the code in our docs
2024-02-02 15:49:46 +00:00
Issy Long
ca92fca770
Turn off FormulaAudit/{Desc,Homepage} for docs
- We don't need this blanket enabled, we only have a few docs where it actually matters that there's a description, it's just cruft having to invent descriptions.
2024-02-02 15:37:01 +00:00
Issy Long
bcd3a78f6d
Ignore the generated manpage; reinstate its trailing whitespace 2024-02-02 15:24:17 +00:00
BrewTestBot
7db1103408 Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2024-01-31 22:17:10 -08:00
Issy Long
3ee62bb244
Update example formula descriptions 2024-01-29 22:43:36 +00:00
Issy Long
3955a70a26
Delete easily outdated template docs for brew create 2024-01-29 22:39:12 +00:00
Issy Long
3f5ae06ab1
Allow a longer Layout/LineLength for just the bottle blocks 2024-01-27 12:32:46 +00:00
Issy Long
aaddc66548
Fix remaining RuboCop FormulaAudit offenses in example code 2024-01-27 12:30:00 +00:00
Patrick Linnane
72a7ffd7ee
docs: drop example that requires --eval-all
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-01-26 08:17:44 -08:00
BrewTestBot
a1ce124ca3
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2024-01-26 14:03:20 +00:00
Patrick Linnane
58c58da3fe
docs: use --eval-all with brew info
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-01-25 09:30:06 -08:00
Michael Cho
6bc6aae0ca
cmd/upgrade: rename arg to installed_formula/cask
This avoids running `brew outdated` in shell completions, which is
noticeably slow.
2024-01-24 12:45:49 -05:00
Issy Long
00b47d1fec
Teach brew style about docs/.rubocop.yml
- Yes, we have yet another `.rubocop.yml` but in-line exclusions in
  `<span class="display:none;">` in the Markdown seemed more ugly.
- This needed tweaks to `brew style` to make it read the new config
  file when we're scanning docs.
2024-01-24 00:01:45 +00:00
Issy Long
e5ae67f906
Fix RuboCop FormulaAudit/ group offenses for docs code examples 2024-01-24 00:01:44 +00:00
Issy Long
9b6903f50b
Fix RuboCop Style/ group offenses in docs example code 2024-01-24 00:01:43 +00:00
Issy Long
af90f0858a
Fix RuboCop Layout/ group offenses in docs example code 2024-01-24 00:01:42 +00:00
Issy Long
6485324b18
Fix Sorbet/ group offenses in docs example code
- T::Sig hasn't been needed in every file for a long time.
2024-01-24 00:01:41 +00:00
Issy Long
28c513ac9d
Fix basic Ruby syntax errors in docs example code
- Blocks should open with `do` and close with `end`.
- `...` is not valid Ruby syntax, so comment it out so that the user
  knows that it's a placeholder for "other things here".
- Reword the "header line details" in `Cask-Cookbook` otherwise RuboCop
  crashes even with an `end` because of the empty block. There was
  already an example of a valid header line in the first code block on
  the page, so it's not a big loss.
2024-01-24 00:01:39 +00:00
Mike McQuaid
2ed2b337c2
Merge pull request #16507 from bevanjkay/cask-uninstall-upgrade-skip
cask/uninstall: skip quit/signal directives when upgrading or reinstalling
2024-01-21 19:16:36 +00:00
Issy Long
b3fad798be
docs/Maintainer-Guide: Fix BuildPulse links
https://github.com/Homebrew/brew/actions/runs/7596213836/job/20689665591?pr=16512
2024-01-20 19:18:46 +00:00
Bevan Kay
bd6ab1d2b8
cask/uninstall: skip quit and signal directives when upgrading or reinstalling 2024-01-19 23:30:25 +11:00
Michael Cho
ac8cba73b7
docs: remove OpenSSL keg_only information
OpenSSL is no longer `keg_only` since
501a8a714d
2024-01-15 11:43:18 -05:00
Mike McQuaid
155641340b
Merge pull request #16418 from jaymzh/gem-docs
Add some specifics on gems (and maybe pips)
2024-01-15 13:52:17 +00:00
Phil Dibowitz
9f11ef9aa1 Add some specifics on gems (and maybe pips)
In https://github.com/Homebrew/homebrew-core/pull/157910 we discussed
some improvements to docs on setting up gems. THis is an attempt at some
docs for that.

If someone can help with pip docs for this I'll add it too.

Signed-off-by: Phil Dibowitz <phil@ipom.com>
2024-01-13 15:29:51 -08:00
Patrick Linnane
3fdba532a2
various: fix miscellaneous typos
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-01-12 10:56:49 -08:00
BrewTestBot
f4120ccfe9
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2024-01-12 18:41:23 +00:00
Tomy Hsieh
bb5d98358a
Patch new cask documentation 2024-01-10 22:01:12 +08:00
Mike McQuaid
1ed083f607
docs/Homebrew-Governance: import changes.
These are changes that were made in the private repository mirror
and either voted on by members already (where they were changes) or
were agreed clarifications on existing policy.
2024-01-09 10:16:57 +00:00
apainintheneck
894b94bfd7 dev-cmd/tests: Add profile option
This will allow us to more easily measure test performance. The only
downside here is that we can't use it with parallel rspec because
it will show the n slowest tests for each parallel rspec run which
is not what we want.
2024-01-06 12:51:15 -08:00
Osama Albahrani
0d190f7497
Homebrew-on-Linux.md: switch to pacman -S
I realized the convention in documentations is to recommend `-S`, not `-Syu`, as a system upgrade is usually an overkill. This change also makes Homebrew's documentation more consistent.
2024-01-04 05:15:21 -05:00
Eric Knibbe
09b7a7bceb
docs: mention standard argument methods 2023-12-22 21:44:42 -05:00
Sean Molenaar
86e31d07d8
feat: add "no public presence" as cask rejection reason 2023-12-21 15:35:55 +01:00
Rylan Polster
67598ce2c9
Merge pull request #16354 from Rylan12/docs-deprecate-disable-cask
Add `deprecate!` and `disable!` to cask docs
2023-12-19 20:39:45 -05:00
lucky
1ee012fd78 update brew audit params in docs 2023-12-18 21:02:15 +04:00