Colin Dean d5b3ae095c
Prohibit non-ASCII characters in URLs, nudge toward punycode
Inspired by curl's blog post, [Detecting malicious Unicode][1], this likely captures most if not all cases and nudges the user toward supplying IDNs with punycode.

A possible improvement would be telling the user exactly what punycode domain to use instead, but that may require another library as I can't quickly find something built into the Ruby stdlib that handles punycode encoding.

[1]: https://daniel.haxx.se/blog/2025/05/16/detecting-malicious-unicode/

Co-authored-by: Štefan Baebler <319826+stefanb@users.noreply.github.com>
2025-05-21 12:42:07 +01:00
..
2025-05-15 11:48:36 -04:00
2025-05-05 14:35:08 -07:00
2025-04-23 10:09:45 +02:00
2025-05-20 20:57:13 -07:00
2025-03-31 17:55:07 +01:00
2025-05-14 17:13:58 -07:00
2025-05-01 07:25:18 +01:00
2025-04-23 10:09:45 +02:00
2025-04-15 23:02:00 +01:00
2025-05-05 14:35:08 -07:00
2025-03-30 18:15:00 +02:00
2025-04-22 11:50:08 -07:00
2025-04-16 16:22:36 +01:00
2025-05-05 14:35:08 -07:00
2025-03-31 17:55:07 +01:00
2025-03-27 03:38:09 +00: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!