Mike McQuaid
10549d13f4
brew: no issue report prompt unless autoupdating.
...
Otherwise: you may be on an old enough version that we don't care.
2017-06-07 16:37:39 +01:00
Mike McQuaid
5367f1b408
analytics: remove unused analytics.
...
We didn't end up using the `screenview` and `exception` analytics as
much as expected so let's remove them and focus on stuff that's
formula-specific.
2017-06-07 16:34:54 +01:00
Mike McQuaid
ff51f6ea42
Merge pull request #2719 from MikeMcQuaid/external-command-homebrew-path
...
brew.rb: use HOMEBREW_PATH for external commands.
2017-06-03 10:00:07 +01:00
Mike McQuaid
12e0a5ee7d
brew.rb: use HOMEBREW_PATH for external commands.
...
They shouldn’t need to handle our environment filtering on the PATH as
we’re essentially breaking an API for them otherwise.
2017-06-02 18:44:39 +01:00
Markus Reiter
2d6ae61314
Re-revert "Fix operator spacing."
2017-06-02 19:22:05 +02:00
Mike McQuaid
7a38bab333
Fixup all RuboCop warnings.
2017-05-29 18:43:18 +01:00
Esther W
6325fb88c5
Make behavior clearer by returning false
2017-05-18 15:43:54 -07:00
Esther W
4da2f24b0e
Remove to_s method
2017-05-18 13:41:36 -07:00
Markus Reiter
5828eefd01
Remove to_s
from some Pathname
s.
2017-05-08 13:37:28 +02:00
Mike McQuaid
57db2e539e
Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"
...
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing
changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07 17:28:39 +01:00
Mike McQuaid
e1bbab6ca6
Revert "Merge pull request #2603 from MikeMcQuaid/tweak-gem-vendoring"
...
This reverts commit 2372872974d1049c2beafe7dedb7f8f882502058, reversing
changes made to 3e4547f52e7ebec633f8bfefc8a396d944edf908.
2017-05-07 17:28:37 +01:00
Mike McQuaid
33f83be10e
Tweak Gem vendoring.
...
If people have `HOMEBREW_RUBY_PATH` set then things explode in a rather
confusing fashion. Instead, run `bundle` for them with the arguments
that they'd want.
Also, move `macho` requires into the module itself; it's a pain having
to do everything for Bundler before requiring `pathname` which is a core
Ruby class.
2017-05-07 15:33:54 +01:00
Mike McQuaid
ee253e465b
Vendor all Homebrew's gems.
...
Homebrew's actually ended up using a fair few gems. While we want to
avoid Bundler at runtime (and this PR still does that, in fact uses
Bundler even less at runtime than it did before) writing our own version
to use at build-time seems redundant.
2017-05-07 13:52:57 +01:00
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