aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brew.rb
AgeCommit message (Collapse)Author
2017-07-07Fix `brew tests` on High Sierra.Mike McQuaid
The `brew test` tests were failing as they were unable to include `test/unit/assertions`. This is because it's a gem and we were setting the `GEM_HOME` so system gems were being ignored. While I was there and examining the `$LOAD_PATH`: reduce the number of things we add there by using `Bundler.with_clean_env` and only adding `HOMEBREW_LIBRARY_PATH` in the `$LOAD_PATH` if it isn't already there (which it always is [and has to be] for integration tests). This also seems to have the side effect of speeding up integration tests from 1m26s to 1m8s on my machine.
2017-06-14Move `require?` to `utils`.Markus Reiter
2017-06-12Autocorrect Rubocop Style/SpecialGlobalVars.Mike McQuaid
2017-06-09Merge pull request #2752 from MikeMcQuaid/remove-unused-analyticsMike McQuaid
analytics: remove unused analytics.
2017-06-07brew: no issue report prompt unless autoupdating.Mike McQuaid
Otherwise: you may be on an old enough version that we don't care.
2017-06-07analytics: remove unused analytics.Mike McQuaid
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-03Merge pull request #2719 from MikeMcQuaid/external-command-homebrew-pathMike McQuaid
brew.rb: use HOMEBREW_PATH for external commands.
2017-06-02brew.rb: use HOMEBREW_PATH for external commands.Mike McQuaid
They shouldn’t need to handle our environment filtering on the PATH as we’re essentially breaking an API for them otherwise.
2017-06-02Re-revert "Fix operator spacing."Markus Reiter
2017-05-29Fixup all RuboCop warnings.Mike McQuaid
2017-05-18Make behavior clearer by returning falseEsther W
2017-05-18Remove to_s methodEsther W
2017-05-08Remove `to_s` from some `Pathname`s.Markus Reiter
2017-05-07Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"Mike McQuaid
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07Revert "Merge pull request #2603 from MikeMcQuaid/tweak-gem-vendoring"Mike McQuaid
This reverts commit 2372872974d1049c2beafe7dedb7f8f882502058, reversing changes made to 3e4547f52e7ebec633f8bfefc8a396d944edf908.
2017-05-07Tweak Gem vendoring.Mike McQuaid
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-07Vendor all Homebrew's gems.Mike McQuaid
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-05Remove unused `e` from `rescue Interrupt`.Markus Reiter
2017-04-30Use `PATH` where possible.Markus Reiter
2017-04-23Fix and remove various TODOs.Mike McQuaid
Fix those that can be done so without tearing Homebrew to pieces and remove the comments for those that can never be done.
2017-03-06Move `cask` to `cmd/`.Markus Reiter
2016-12-10Tell people to report URL/tap deprecations to the tap.Mike McQuaid
Rather than Homebrew/brew or Homebrew/homebrew-core.
2016-11-09brew.rb: don't exit when failing to set devcmdrun.Mike McQuaid
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-10-04Make `core_tap_version_string` reusable.Markus Reiter
2016-10-03Merge pull request #1190 from vladshablinsky/no-autoupdate-on-helpMike McQuaid
brew.sh: don't autoupdate if --help passed
2016-10-02Merge pull request #1205 from MikeMcQuaid/help-external-commandsMike McQuaid
help: support `#:` help in external commands.
2016-10-01brew.rb: update help parsingUladzislau Shablinski
2016-10-01Add `Formatter` module.Markus Reiter
2016-10-01Refactor Tty.Markus Reiter
2016-10-01help: support `#:` help in external commands.Mike McQuaid
Fixes https://github.com/Homebrew/homebrew-test-bot/issues/3
2016-09-23Fix Style/GuardClause.Markus Reiter
2016-09-22Use git describe to get the HOMEBREW_VERSION.Mike McQuaid
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-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-17Move LinkedKegs migration.Mike McQuaid
Move the `LinkedKegs` migration into `utils.rb` so it can also be called from `brew.rb` on startup.
2016-09-08brew.rb: don't restrict dev-cmd/*.rb to Homebrew developers.Mike McQuaid
2016-08-24Improve HOMEBREW_BREW_FILE unset failure case.Mike McQuaid
Print a better exception message and handle this in more cases rather than producing confusing errors when it’s unset.
2016-08-19editsAnastasiaSulyagina
2016-08-18remove ruby 1.8 compatible codesXu Cheng
2016-08-17brew.rb: allow 10.5.Mike McQuaid
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-07-24brew.rb: Use odie instead of onoe+exitBaptiste Fontaine
Closes #577. Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-07-15brew.{rb,sh}: move to Library/Homebrew. (#506)Mike McQuaid