Sam Ford 473f448b22
OnSystem: handle non-macOS current_os values
The `OnSystem.os_condition_met?` method only handles Linux and macOS
values for the current OS, so this fails when testing with a generic
OS. This shortcoming is only being surfaced now because there weren't
any tests for `OnSystem` before.

This addresses the issue by accounting for macOS values (`:macos` or
a symbol from `MacOSVersion::SYMBOLS`) and returning `false` for any
other values (`:linux`, `:generic`, etc.).
2025-06-08 10:13:40 -04:00
..
2024-12-31 00:15:10 +00:00
2025-06-07 17:58:12 -04:00
2025-04-23 10:09:45 +02:00
2025-06-07 17:58:12 -04:00
2025-03-31 17:55:07 +01:00
2025-05-14 17:13:58 -07:00
2025-02-04 16:27:39 +00:00
2025-02-17 18:56:31 -08:00
2025-04-23 10:09:45 +02:00
2025-04-15 23:02:00 +01:00
2025-02-16 13:26:10 -08:00
2024-11-26 14:09:13 -08:00
2025-05-05 14:35:08 -07:00
2025-06-07 17:58:12 -04:00
2025-04-22 11:50:08 -07:00
2025-02-17 18:56:31 -08:00
2024-12-11 11:04:55 -08:00
2025-04-16 16:22:36 +01:00
2024-12-05 14:01:37 +00:00
2025-02-04 16:27:39 +00:00
2025-06-07 17:58:12 -04:00
2025-03-02 21:36:03 -08:00
2025-01-07 17:40:18 +00:00
2025-05-05 14:35:08 -07:00
2024-12-07 10:35:33 -08:00
2025-03-31 17:55:07 +01:00
2025-03-27 03:38:09 +00:00
2025-03-02 21:36:03 -08:00
2025-05-27 16:55:00 +00:00
2025-05-21 17:54:21 +02:00
2025-02-24 11:57:20 -08:00
2025-05-13 01:33:14 +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!