Sam Ford 5e57df7287
livecheck: restrict POST hashes to symbol keys
I initially set the type for livecheck's `post_form` and `post_json`
hashes to allow either a string or symbol key. I used string keys in
the documentation, as there will inevitably be some form field names
that would pose a problem for symbols (e.g., `E-mail` uses a hyphen,
`1twothree` starts with a digit, etc.). However, I remembered that we
can simply use quote symbols like `:"E-mail"` to handle these
situations, as they have the flexibility of a string while still being
a symbol.

With that in mind, this updates related type signatures to only allow
symbol keys and updates documentation and tests accordingly. The
documentation example contains a hyphenated form field, so it
demonstrates how to handle names that don't work as a bare symbol.
2025-02-21 21:54:46 -05:00
..
2025-02-06 21:04:08 -08:00
2024-12-31 00:15:10 +00:00
2025-02-21 15:05:42 +01:00
2025-01-19 12:32:55 +01:00
2025-02-22 00:24:35 +00:00
2025-02-13 16:33:59 -08:00
2025-01-16 15:12:03 -08:00
2025-02-06 21:04:08 -08:00
2025-02-04 16:27:39 +00:00
2025-02-04 16:27:39 +00:00
2025-01-27 08:42:49 +00:00
2024-10-02 10:03:12 -07:00
2025-02-17 18:56:31 -08:00
2025-02-17 18:56:31 -08:00
2024-09-26 14:32:55 -04:00
2025-02-16 13:26:10 -08:00
2024-11-26 14:09:13 -08:00
2025-02-21 14:53:34 +01:00
2024-09-26 14:48:32 -04:00
2025-02-06 21:04:08 -08:00
2025-02-17 18:56:31 -08:00
2025-01-07 17:40:18 +00:00
2025-02-04 16:27:39 +00:00
2025-01-23 14:42:03 +00:00
2024-10-05 12:18:29 -07:00
2024-12-11 11:04:55 -08:00
2025-01-07 17:40:18 +00:00
2025-02-04 21:18:02 +01:00
2024-09-26 16:19:11 -04:00
2024-12-05 14:01:37 +00:00
2025-02-04 16:27:39 +00:00
2025-01-07 17:40:18 +00:00
2024-09-17 12:43:28 +09:00
2024-12-07 10:35:33 -08:00
2025-02-04 16:27:39 +00:00
2025-01-07 17:40:18 +00:00
2025-02-06 21:04:08 -08:00
2024-09-25 16:49:46 +08:00
2025-02-17 19:11:48 -08:00
2024-09-27 12:31:59 -04: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!