Sam Ford 578c935bcf
Formula, BuildError: Update type signatures
We're seeing type errors when building formulae that use something
like `xcodebuild ..., "-arch", Hardware::CPU.arch`, since `CPU.arch`
is a symbol. We've been addressing these issues by calling `#to_s` on
the value but there was some talk about simply expanding the type
signatures to accommodate anything that will be cast to a `String`.

There's maybe still an argument to be made for doing string conversion
in formulae but expanding the type signatures will resolve a number of
existing type errors if we simply want to rely on implicit type
casting.

Past that, this also updates the type signature for `BuildError` to
align with the `#system` signature changes, as we receive a type error
otherwise.
2023-09-13 19:16:04 -04:00
..
2023-08-04 16:43:13 +01:00
2023-06-19 00:12:59 +00:00
2023-09-13 14:09:20 +01:00
2023-08-12 22:01:22 -07:00
2023-04-24 20:42:39 -07:00
2023-05-12 21:17:30 +02:00
2023-04-24 20:42:39 -07:00
2023-04-24 20:42:39 -07:00
2023-04-24 20:42:39 -07:00
2023-04-24 20:42:39 -07:00
2023-08-12 22:01:22 -07:00
2023-09-03 09:12:41 -04:00
2023-05-17 15:26:46 +02:00
2023-08-12 22:01:22 -07:00
2023-07-06 16:56:20 +01:00
2023-08-04 16:43:13 +01:00
2023-04-24 20:42:39 -07:00
2023-05-20 19:28:29 +02:00
2023-04-24 20:42:39 -07:00
2023-09-05 16:43:36 -04:00
2023-06-24 11:09:28 +01:00
2023-04-24 20:42:39 -07:00
2023-04-27 05:15:43 +01:00
2023-04-24 20:42:39 -07:00
2023-05-06 03:27:42 +02:00
2023-04-24 20:42:39 -07:00
2023-04-24 20:42:39 -07:00
2023-05-12 21:17:30 +02:00
2023-04-24 20:42:39 -07:00
2023-04-24 20:42:39 -07:00
2023-05-09 05:08:38 +02:00
2023-04-24 20:42:39 -07:00
2023-07-06 16:56:20 +01:00
2023-08-04 16:43:13 +01:00
2023-09-05 22:40:23 -04:00
2023-04-24 20:42:38 -07:00
2023-04-24 20:42:39 -07:00
2023-08-12 22:01:22 -07:00
2023-08-12 22:01:22 -07:00
2023-04-24 20:42:39 -07:00
2023-04-24 20:42:39 -07: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!