Mike McQuaid f0e9292acd Use git describe to get the HOMEBREW_VERSION.
For tagged commits produces the output:
- `1.0.1`

For untagged commits with a dirty tree produces the output:
- `1.0.1-19-g23efbc5-dirty`

Performance:
```
git describe --tags --dirty 2> /dev/null
0.07s user 0.01s system 96% cpu 0.086 total
```

This means we can tag any commit without needing to manually remember
to bump the revision every time.
2016-09-22 08:56:40 +01:00
..
2016-09-21 13:53:10 -05:00
2016-09-20 12:12:36 +02:00
2016-09-20 10:41:42 +01:00
2016-09-17 15:00:46 +01:00
2016-09-17 17:01:04 +01:00
2016-09-20 10:41:42 +01:00
2016-09-19 16:28:28 +01:00
2016-09-17 17:01:04 +01:00
2016-09-18 21:52:42 +01:00
2016-09-18 10:28:23 -04:00
2016-09-21 11:45:47 -05:00
2016-09-20 10:41:42 +01: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!