aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brew.rb
AgeCommit message (Collapse)Author
2017-11-18Custom commands can show helpDan Wendorf
We attempted to find the help message for commands before loading custom commands in the path.
2017-11-05Refactor command handling codeMike McQuaid
Don’t rely on having external commands always present in the PATH in order to find them. Instead, provide an accessory method to Tap so they can be added and used when needed. While we’re here, do some general refactoring and cleanup of the command code in these places.
2017-11-03brew.rb: cleanup PATH setup.Mike McQuaid
Avoid adding all the tap commands to the PATH when not necessary.
2017-10-24Merge pull request #3306 from amyspark/hacktoberfest-quash-cask-helpMarkus Reiter
Fixes querying Cask commands' help
2017-10-24brew style fixesL. E. Segovia
2017-10-24Simplify cask help checkL. E. Segovia
2017-10-20Let Cask handle the -h flagL. E. Segovia
2017-10-18Shorten HOMEBREW_HELP set/unsetL. E. Segovia
2017-10-18Correct setting and deleting HOMEBREW_HELPL. E. Segovia
(and also delete the extra help_flag case, it's no longer needed)
2017-10-18Only unset HOMEBREW_HELP before issuing the tapL. E. Segovia
2017-10-17Specifies which errant version of Ruby is used in raise.Ash Furrow
2017-10-12Fix mistaken &L. E. Segovia
I meant to verify that both a cmd and a help flag were received from the shell
2017-10-12Fixes help queryingL. E. Segovia
- If a non-existent command with a flag is queried to Cask, the latter is printed instead of the command - If the help from a not-yet-tapped cask's command is queried, it prints brew tap's help infinitely Fixes caskroom/homebrew-cask#28977
2017-10-08Clean up code style and remove `.rubocop_todo.yml`.Markus Reiter
2017-09-29brew: handle Ruby 2.3 more gracefully.Mike McQuaid
- `brew.rb` needed updated to fail unless on Ruby 2.3 - `brew update` should unset `HOMEBREW_RUBY_PATH` to ensure that this doesn't "stick" on a Ruby 2.0 version after a portable Ruby has been installed.
2017-09-24Rubocop: manual rule fixes.Mike McQuaid
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.