apainintheneck fff4e0a8f0 Speed up Tap#cask_files_by_name
This is most noticeable when you have a large local tap and it ends
up taking a nontrivial percentage of the overall run time for simple
commands like `brew info gimp`. The improvement here is to just
create paths later on in the loop which copies what we already do
for formulae.

See b1ddb05

```console
$ hyperfine --parameter-list branch master,speed-up-cask-files-by-name --warmup 5 --setup 'git switch {branch}' 'brew info gimp'
Benchmark 1: brew info gimp (branch = master)
  Time (mean ± σ):      2.737 s ±  0.010 s    [User: 1.958 s, System: 0.732 s]
  Range (min … max):    2.720 s …  2.748 s    10 runs

Benchmark 2: brew info gimp (branch = speed-up-cask-files-by-name)
  Time (mean ± σ):      2.597 s ±  0.017 s    [User: 1.828 s, System: 0.724 s]
  Range (min … max):    2.577 s …  2.624 s    10 runs

Summary
  brew info gimp (branch = speed-up-cask-files-by-name) ran
    1.05 ± 0.01 times faster than brew info gimp (branch = master)
```
2024-08-24 10:15:09 -07:00
..
2024-08-20 12:47:48 -07:00
2024-08-20 00:13:23 +00:00
2024-08-20 04:16:18 +01:00
2024-08-15 11:47:31 -04:00
2024-08-24 00:21:44 +00:00
2024-08-23 18:43:44 +00:00
2024-08-12 17:36:14 +01:00
2024-08-14 22:56:26 -04:00
2024-08-19 16:02:57 +01:00
2024-08-23 05:59:00 +01:00
2024-08-18 19:03:26 -04:00
2024-07-30 17:51:02 +01:00
2024-08-18 18:16:39 -07:00
2024-08-18 21:20:23 -06:00
2024-08-20 03:58:01 +01:00
2024-08-10 17:52:26 -07:00
2024-08-24 10:15:09 -07:00
2024-08-10 16:43:37 +01:00
2024-08-20 15:33:08 +01:00
2024-08-19 09:56:50 -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!