124 Commits

Author SHA1 Message Date
Markus Reiter
6b5171de30 Remove unused e from rescue Interrupt. 2017-05-05 20:50:11 +02:00
Markus Reiter
f8ad9d7efd Use PATH where possible. 2017-04-30 21:11:27 +02:00
Mike McQuaid
45a7730f61 Fix and remove various TODOs.
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
2017-04-23 15:10:18 +01:00
Markus Reiter
3e7f94d5b5 Move cask to cmd/. 2017-03-06 11:41:29 +01:00
Mike McQuaid
598c5e36f9 Tell people to report URL/tap deprecations to the tap.
Rather than Homebrew/brew or Homebrew/homebrew-core.
2016-12-10 13:04:14 +00:00
Mike McQuaid
007002ad6f brew.rb: don't exit when failing to set devcmdrun.
It's not necessary to make this a hard failure so don't (and this makes
it more consistent with `brew.sh`).

Fixes #1462.
2016-11-09 12:44:13 +00:00
Markus Reiter
23dec587fd Make core_tap_version_string reusable. 2016-10-04 14:45:11 +02:00
Mike McQuaid
881fdcd25e Merge pull request #1190 from vladshablinsky/no-autoupdate-on-help
brew.sh: don't autoupdate if --help passed
2016-10-03 18:38:46 +01:00
Mike McQuaid
f90f52d902 Merge pull request #1205 from MikeMcQuaid/help-external-commands
help: support `#:` help in external commands.
2016-10-02 08:59:32 +01:00
Uladzislau Shablinski
d92a1ad584 brew.rb: update help parsing 2016-10-01 22:09:11 +03:00
Markus Reiter
75e8b59aad Add Formatter module. 2016-10-01 20:00:49 +02:00
Markus Reiter
6d8ee395fa Refactor Tty. 2016-10-01 20:00:49 +02:00
Mike McQuaid
a4ebda3fc4 help: support #: help in external commands.
Fixes https://github.com/Homebrew/homebrew-test-bot/issues/3
2016-10-01 18:25:16 +01:00
Markus Reiter
a5b11a6a5c Fix Style/GuardClause. 2016-09-23 15:30:07 +02:00
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
Mike McQuaid
3982950e61 rubocop --auto-correct all hash-rocket usage. 2016-09-17 16:14:13 +01:00
Mike McQuaid
8f1ae3b28b Move LinkedKegs migration.
Move the `LinkedKegs` migration into `utils.rb` so it can also be called
from `brew.rb` on startup.
2016-09-17 15:00:46 +01:00
Mike McQuaid
60d3bf4eb9 brew.rb: don't restrict dev-cmd/*.rb to Homebrew developers. 2016-09-08 20:44:33 +01:00
Mike McQuaid
e7984b34d5 Improve HOMEBREW_BREW_FILE unset failure case.
Print a better exception message and handle this in more cases rather
than producing confusing errors when it’s unset.
2016-08-24 14:48:53 +01:00
AnastasiaSulyagina
092e2797e1 edits 2016-08-19 14:50:27 +03:00
Xu Cheng
e423617d77
remove ruby 1.8 compatible codes 2016-08-18 14:35:39 +08:00
Mike McQuaid
7cb118221e brew.rb: allow 10.5.
We'll keep the Homebrew installer pointing to Tigerbrew for now but as
Homebrew/brew technically has no reason to not work on 10.5 let's remove
this check.
2016-08-17 15:09:20 +01:00
Baptiste Fontaine
43dafc9859 brew.rb: Use odie instead of onoe+exit
Closes #577.

Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-07-24 22:05:37 +02:00
Mike McQuaid
a07ab8bb92 brew.{rb,sh}: move to Library/Homebrew. (#506) 2016-07-15 19:33:30 +01:00