aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
AgeCommit message (Collapse)Author
2015-03-14Remove unused argumentJack Nagel
2015-01-05Emit warning when no editor is setJack Nagel
Closes #34647.
2015-01-05utils: install_gem_setup_path! now checks PATH.Mike McQuaid
Check the executable is present to give a better error message if it isn't. Closes #35541.
2015-01-03Remove readline and zlib hacksJack Nagel
2015-01-02utils: always set PATH in install_gem_setup_path.Mike McQuaid
2015-01-02utils: tweak install_gem_setup_path to not warn.Mike McQuaid
If the `Gem.user_dir/bin` is not already in the PATH it'll complain unnecessarily (as we add it to the PATH ourselves) so just add it to the PATH before running the install.
2015-01-02Add Homebrew.install_gem_setup_path! function.Mike McQuaid
This uses the logic from tests.rb in man.rb too so that this can be shared in a few places.
2014-12-06Remove {start,stop}doc as we're using Yard now.Mike McQuaid
2014-11-20Friendlier error message for EOFError raised inside Net::HTTPJack Nagel
Closes #34312. Closes #34358.
2014-10-05Shows time since last commit in brew configTim D. Smith
Closes #32936.
2014-09-24Generate RDoc documentation.Mike McQuaid
This is currently still very messy and we probably want to work out the best way to declare what parts of our DSL/what files are "public". Still, even if this is a WIP I'd rather get something committed sooner rather than later and start iterating on this as a replacement for `example_formula.rb` and the formula cookbook. To test: ```bash cd $(brew --prefix)/Library/Homebrew && \ rdoc formula.rb requirement.rb utils.rb &&\ open doc/index.html ``` Closes #32470.
2014-09-20Don't to_s the cmd parameter in Homebrew.systemJack Nagel
2014-09-20Stop invoking the editor through an interactive shellJack Nagel
This was added in d2ecfb9 / #12784 to fix a bug repotted in #12779, but at that time we were invoking the editor via `system` rather than `exec`. Now we are using exec, and running it through an interactive shell seems to cause other problems, for example, emacs does not suspend/resume properly. Fixes #32328.
2014-09-18Pass command and arg list into ErrorDuringExecution constructorJack Nagel
2014-09-04Hack around Zlib constant conflictJack Nagel
2014-08-04utils: use the $stderr global variable.Federico Bond
For easier capturing. Closes #31303. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-07-20Simplify onoeJack Nagel
2014-07-19Passing an empty array to puts prints nothingJack Nagel
2014-07-18exec_editor with no arguments should not silently succeedJack Nagel
2014-07-06nostdout doesn't need to capture outputJack Nagel
2014-07-06Let File.expand_path also do the joinJack Nagel
2014-07-06Check File.file? first to avoid second stat()Jack Nagel
2014-07-06Just use each since we're returning from inside the blockJack Nagel
2014-07-06Expand ~ in PATH entriesJack Nagel
2014-07-05Add popen wrapper that does not invoke the shellJack Nagel
2014-06-30Add a method for getting the repo HEADJack Nagel
2014-06-24Fix uninitialized constant error in GitHub.openJack Nagel
The error handling depends on side effects of `require "net/https"`, so it should be wrapped in an explicit begin block. cf. #30407.
2014-06-12Linuxbrew: Use xdg-openShaun Jackman
Closes #29817. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-10"exit $?" raises TypeError on Ruby 2.0Jack Nagel
2014-06-05Find vim on the pathJames Wald
If vim is on the path, it will be used instead of `/usr/bin/vim`. Closes #29885. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-26pluralize formulae in tap/untapAdam Vandenberg
Closes #28560.
2014-03-29Always call Process.wait with an argumentJack Nagel
2014-03-29Make sure we wait for the correct childJack Nagel
Fixes #27962.
2014-03-16which is supposed to return a pathnameAdam Vandenberg
2014-03-16return found path directly in whichAdam Vandenberg
2014-03-16utils.rb:which: bug fixkynnjo
Closes #27524. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-13utils: return empty issues array when no API.Mike McQuaid
2014-03-03utils: replace bright green with ANSI bold+green.April Arcus
There are two ways of outputting bright ANSI colors to the terminal - the ANSI codes 30-37 plus a bold code (most terminals render bold text with brighter colors, by convention), or the widely supported aixterm codes 90-97. Although the aixterm codes are more precise (disambiguating bold font from bright color), the ANSI bold+green enables compatibility with the popular [Solarized](https://github.com/altercation/solarized) color theme, which reassigns the "bright green" codepoint to a shade of gray. Closes #27125. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-28move scons helper to fileutilsAdam Vandenberg
2014-02-25add scons helperAdam Vandenberg
2014-02-18Use standard curl progress output in verbose modeJack Nagel
Closes #26818.
2014-02-16Add helpful error message for authentication failuresJack Nagel
2014-02-16Move error text and helper into error classJack Nagel
2014-02-16Add a more useful message when ratelimit is exceededJack Nagel
2014-02-16Make GitHub::Error a RuntimeError to suppress backtraceJack Nagel
2014-02-16Handle GitHub API authentication failuresJack Nagel
2014-02-16Extract error handling from GitHub.openJack Nagel
2014-02-13Use a more accurate method name and drop unhelpful blockJack Nagel
2014-02-13Always print top-level issue URLJack Nagel
2014-02-13Delete comment that isn't relevant to this code anymoreJack Nagel