Issy Long 9cc046bc60
rubocops/cask: Enforce the use of on_{system} blocks
- As discussed in
  https://github.com/Homebrew/brew/pull/14976#issuecomment-1474544569
  and further comments, this is needed because in order to enforce the
  order of `on_{arch,system}` blocks we need to have everything
  consistently within one of those blocks.
- We previously allowed overrides where the top-level `version` stanza
  would be the default, unless on an OS that had an `on_system` block
  with a `version` specified. But this breaks down when we try to order
  the `on_system` blocks because if a `url` at the top-level has a
  `version` interpolated in it, then the `version` stanza needs to be
  above the `url` stanza. But it could be that `version` is OS-specific.
- Let's stop allowing overrides and require that everything be in an
  `on_system` block. This will make it easier to enforce the order of
  `on_system` blocks in a future PR (14976).
2023-03-21 22:51:12 +00:00
..
2023-03-13 11:24:49 -07:00
2023-03-18 16:03:25 -07:00
2023-03-20 19:07:52 +00:00
2023-03-20 19:02:19 +00:00
2023-03-14 14:49:34 -07:00
2023-03-14 14:49:34 -07:00
2023-03-10 17:53:15 +00:00
2023-03-07 19:15:05 -08:00
2023-03-18 13:55:19 -07:00
2023-03-10 17:53:15 +00:00
2023-03-02 11:49:09 -08:00
2023-03-13 09:08:56 -07:00
2023-02-28 13:05:43 -08:00
2023-03-14 11:09:57 +01:00
2023-03-07 09:08:54 -08:00
2023-03-15 14:29:15 -07:00
2023-03-14 14:49:34 -07:00
2023-03-03 12:44:23 -08:00
2023-03-13 00:59:08 +01:00
2023-03-18 16:23:08 -07:00
2023-03-14 14:49:34 -07:00
2023-03-11 17:27:53 -08:00
2023-03-17 20:15:42 +08:00
2023-03-11 17:27:53 -08:00
2023-03-15 14:29:15 -07:00
2023-03-15 14:29:15 -07:00
2023-03-15 14:29:15 -07:00
2023-03-03 19:12:33 -08:00
2023-03-13 02:40:03 +01:00
2023-03-09 19:10:38 -08:00
2023-03-15 18:21:41 -07:00
2023-03-19 17:37:58 -07:00
2023-03-14 23:01:09 -07:00
2023-03-09 13:42:06 -08:00
2023-03-03 12:44:23 -08:00
2023-03-09 13:42:06 -08:00

Homebrew Ruby API

This is the API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!