Mike McQuaid 03e583e746
cask: read bundle version from Info.plist when sensible.
If you're trying to use `brew info --json=v2` to get an installed
version and figure out if it is outdated: you're going to have a bad
time with `auto_updates` casks because `installed_version` alone is not
enough to get the actually currently installed version of the app.

Instead, in these cases, try to read from `Info.plist` if there is one
and use that version.

While we're here, add a `blank?` method to `Version` so we can use it
for `present?` checks (making a `null?` `Version` object `blank?`).

Co-authored-by: Markus Reiter <me@reitermark.us>
2024-03-06 15:52:16 +00:00
..
2024-02-09 00:11:05 +00:00
2024-03-05 18:11:53 -08:00
2024-03-03 14:44:22 -05:00
2024-01-26 15:03:59 -08:00
2024-03-05 18:42:27 +00:00
2024-02-11 21:53:21 -05:00
2023-11-11 05:36:40 +00:00
2023-12-31 11:29:57 -08:00
2023-12-18 09:34:01 -08:00
2023-12-19 19:05:28 +09:00
2023-10-10 03:42:22 +02:00
2023-11-05 08:55:58 -08:00
2024-02-18 15:47:56 -08:00
2024-02-18 15:47:56 -08:00
2024-02-04 15:42:26 +01:00
2023-12-27 15:29:33 -08:00
wip
2024-02-11 20:27:38 -08:00
2024-03-05 18:42:27 +00:00
2024-02-13 18:46:58 +01:00
2024-02-18 15:47:56 -08:00
2023-12-06 00:01:25 +00:00
2023-09-29 12:32:22 +01:00
2024-02-19 13:29:49 -08:00
2024-01-12 15:37:24 +01:00
2024-02-22 22:03:54 +01:00
2023-12-06 00:01:25 +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!