Martin Afanasjew 8dc1e05ff8 utils: inject Ruby path when running Gems
Particularly the `bundler` Gem requires the right Ruby binary to be in
the PATH to work correctly if the Ruby binary used to run Homebrew is
overridden via `HOMEBREW_RUBY_PATH` and thus intentionally not prefixed
to the PATH (as that would affect formulae with a Ruby dependency).

The workaround here is to prefix this path only when a Gem is activated
via `Homebrew.install_gem_setup_path!` (currently used in `brew man`,
`brew style`, and `brew tests`).
2016-01-06 06:21:42 +01:00
..
2016-01-03 19:08:10 +00:00
2016-01-03 19:08:11 +00:00
2015-12-14 13:50:00 +01:00
2016-01-05 14:33:06 +01:00
2015-12-26 23:00:38 +01:00
2015-11-23 22:56:18 -08:00
2015-12-09 16:56:59 +08:00
2016-01-04 13:17:21 +01:00
2016-01-03 19:08:11 +00:00
2016-01-05 14:33:06 +01:00
2016-01-05 16:08:25 +01:00
2015-12-13 01:29:52 +08:00
2015-12-09 16:56:59 +08:00
2015-10-18 22:57:42 +08:00
2016-01-03 21:00:11 +08:00
2016-01-04 16:22:26 -04: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!