Files
brew/Library/Homebrew
Zhiming Wang 3ebd7df62d bump-formula-pr: fix removal of old mirrors
Previously, old mirrors are only removed if the requested spec is
stable, and if the mirror lines only have two leading spaces. This leads
to stale mirror line(s) when the formula a stable block like

    stable do
      url "http://example.com/v1.0.tar.gz"
      mirror "http://example.net/v1.0.tar.gz"
    end

where the mirror line is lead by four spaces.

In this commit, we discard the /(^ mirror .*\n)?/ pattern, and instead
create a pattern with the exact url and flexible leading spaces for each
mirror of the requested spec.
2016-12-22 00:54:08 -05:00
..
2016-12-20 10:22:30 +00:00
2016-10-04 22:57:08 -07:00
2016-12-19 18:01:36 +00:00
2016-12-13 15:40:31 -08:00
2016-11-21 08:48:26 +00:00
2016-10-23 14:44:14 +02:00
2016-09-25 19:55:34 +02:00
2016-11-10 15:01:29 +01:00
2016-12-20 10:22:30 +00:00
2016-10-30 16:14:51 -04:00
2016-09-23 18:19:53 +02:00
2016-09-23 15:30:07 +02:00
2016-11-13 23:00:47 +01:00
2016-12-20 10:22:30 +00:00
2016-09-23 15:30:06 +02:00
2016-10-01 20:00:49 +02:00
2016-09-23 18:19:53 +02:00
2016-12-10 17:58:41 +00:00
2016-09-23 18:19:53 +02:00
2016-12-14 05:07:54 +03:00
2016-11-14 09:45:44 +01:00
2016-10-22 13:32:46 +01:00
2016-11-03 12:09:44 +00:00
2016-09-24 18:55:03 +01:00
2016-10-02 00:24:47 +02:00
2016-09-24 12:24:35 +02:00
2016-09-23 18:19:53 +02:00
2016-09-21 11:45:47 -05:00
2016-09-20 10:41:42 +01:00
2016-10-12 15:37:33 +01:00
2016-11-13 23:00:47 +01:00
2016-12-20 10:22:30 +00:00
2016-12-20 10:22:30 +00:00
2016-11-10 15:09:36 -08:00

Homebrew's Formula API

This is the (partially) documented public 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!