Dawid Dziurla 1e805e04f9
bump-formula-pr: fix when no 'version' stanza in formula found
Without this fix, a command like:

    `brew bump-formula-pr --version=0.3.3 --tag=v0.3.3 --revision=... test-formula-git-revision`

will fail because:

```
Error: no implicit conversion of nil into String
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:281:in `escape'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:281:in `bump_formula_pr'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:111:in `<main>'
```

Additionally, reject all `nil` replacement pairs by calling `compact`
method.
2020-07-26 10:26:39 +02:00
..
2020-07-25 02:37:10 +02:00
2020-07-17 20:45:54 +10:00
2020-07-13 23:24:14 +10:00
2020-07-13 23:24:14 +10:00
2020-07-23 22:30:05 +05:30
2020-07-25 22:53:25 -04:00
2020-07-24 09:33:30 +01:00
2020-07-07 12:23:29 +01:00
2020-07-02 10:22:54 +01:00
2020-05-23 14:38:58 +01:00
2020-07-20 15:30:33 +01:00
2020-07-07 12:23:29 +01:00
2020-06-27 09:59:56 +02:00
2020-05-23 19:39:11 +01:00
2020-07-10 10:32:30 -07:00
2020-06-25 11:59:42 -04:00
2020-06-23 14:11:05 +01:00
2020-05-31 13:52:55 +05:30
2020-06-02 09:49:23 +01:00
2020-05-23 14:38:58 +01:00
2020-05-18 13:50:46 +01:00
2020-06-18 20:15:07 +02:00
2020-06-10 19:29:04 +02:00
2020-07-13 23:24:14 +10:00
2020-07-07 12:23:29 +01:00
2020-07-07 11:53:55 +01:00
2020-07-13 23:24:14 +10:00
2020-06-02 09:49:23 +01:00
2020-06-25 11:59:42 -04:00
2020-06-27 21:03:16 -04:00

Homebrew's Formula API

This is the 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!