Mike McQuaid fd18c7b0ac
Tweak cask-source API handling
- Use raw.githubusercontent.com to download cask source rather than
  formulae.brew.sh. This allows us to remove these files
- output the tap's current `HEAD` for both formulae and cask JSON
- use this `HEAD` for the cask-source API to get the exact file on
  raw.githubusercontent.com rather than just whatever is newest (which
  is what the previous API did)
- set the `Tap` correctly when creating a `Cask` from the API
- if the `formula.json` file exists: print its modified time include
  `brew config`
- memoize `tap.git_head` as we'll be calling it a lot in the same
  process with the same value
2023-01-26 17:36:40 +00:00
..
2023-01-26 17:36:40 +00:00
2023-01-26 17:36:40 +00:00
2023-01-08 17:34:52 -08:00
2022-12-01 00:17:04 +00:00
2023-01-25 16:05:02 +00:00
2022-11-30 03:50:38 +00:00
2022-10-24 19:42:49 +01:00
2023-01-02 19:18:51 +00:00
2023-01-26 17:36:40 +00:00
2022-11-11 16:16:54 -05:00
2023-01-02 19:18:51 +00:00
2023-01-24 21:45:18 +09:00
2023-01-02 19:18:51 +00:00
2023-01-26 17:36:40 +00:00
2023-01-25 10:07:42 -08:00
2022-12-13 11:37:06 +00:00
2023-01-02 19:18:51 +00:00
2022-11-06 22:50:07 -05:00
2022-11-08 21:11:10 +09:00
2023-01-19 12:40:50 -05:00
2022-11-06 22:50:07 -05:00
2022-12-13 11:37:06 +00:00
2022-12-23 19:36:13 +01:00
2023-01-26 17:36:40 +00: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!