Mike McQuaid c00413f0e9
formulary: improve/loosen path rejection logic.
- Don't check if the `realpath` includes `/`: it always will.
  Instead, see if the originally user-passed `ref` includes `/` or ends
  with `.rb`.
- Always raise an error message, don't silently return.
2025-08-14 08:41:35 +01:00
..
2025-07-15 13:34:49 -04:00
2025-08-12 02:40:48 -04:00
2025-08-12 17:04:15 -04:00
2025-08-12 17:04:15 -04:00
2025-08-08 16:01:13 +08:00
2025-06-17 16:33:58 +01:00
2025-07-16 11:32:22 -04:00
2025-08-05 17:13:42 -04:00
2025-08-05 11:12:01 +01:00
2025-08-05 17:13:42 -04:00
2025-08-13 14:27:04 +08:00
2025-08-13 00:30:32 +00:00
2025-08-12 17:04:15 -04:00
2025-07-25 16:10:50 +00:00
2025-08-05 17:13:42 -04:00
2025-07-14 19:12:38 +01:00
2025-07-16 08:58:14 -07:00
2025-08-04 15:51:02 +01:00
2025-08-12 17:04:15 -04:00
2025-08-05 17:13:42 -04:00
2025-07-14 19:12:38 +01:00
2025-06-09 19:06:16 +01:00
2025-07-14 19:12:38 +01:00
2025-04-23 10:09:45 +02:00
2025-04-15 23:02:00 +01:00
2025-08-06 11:45:53 -07:00
2025-08-04 15:51:02 +01:00
2025-08-05 17:13:42 -04:00
2025-08-12 02:40:48 -04:00
2025-04-22 11:50:08 -07:00
2025-07-25 17:06:11 +01:00
2025-08-05 17:13:42 -04:00
2025-07-31 17:31:27 +01:00
2025-08-05 17:13:42 -04:00
2025-08-05 17:13:42 -04:00
2025-06-23 16:50:39 +01:00
2025-08-05 17:13:42 -04:00
2025-04-16 16:22:36 +01:00
2025-07-27 10:07:34 -07:00
2025-06-09 19:06:16 +01:00
2025-06-29 09:02:24 -07:00
2025-07-27 10:07:34 -07:00
2025-08-04 15:51:02 +01:00
2025-06-09 19:06:16 +01:00
2025-08-10 09:37:57 -07:00
2025-08-04 15:51:02 +01:00
2025-03-31 17:55:07 +01:00
2025-08-12 17:04:15 -04:00
2025-07-31 17:31:27 +01:00
2025-07-14 19:12:38 +01: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!