aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
AgeCommit message (Collapse)Author
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
2014-02-13Offload more filtering to the search APIJack Nagel
2014-02-13Allow passing arbitrary qualifiers to issue searchJack Nagel
2014-02-12Pass the string instead of reconstructing it from a regexpJack Nagel
2014-02-12Let the API do more work for usJack Nagel
2014-02-12Drop TODO that nobody has ever worked onJack Nagel
2014-02-12Drop unnecessary type check, we never pass a Formula instanceJack Nagel
2014-02-12Return only open issues in GitHub.issues_for_formulaJack Nagel
2014-02-08Use GitHub wrapper for private tap checkJack Nagel
2014-02-08Pin GitHub module to v3 APIJack Nagel
2014-02-08Switch to v3 search APIJack Nagel
2014-02-08Prevent repeated warnings when GitHub API rate limit is exceededJack Nagel
2014-02-08Preserve original backtrace when raising GitHub::ErrorJack Nagel
2014-02-08Raise only GitHub::Error from GitHub.openJack Nagel
2014-02-08Parse JSON early in GitHub moduleJack Nagel
2014-01-20utils: improve issue searching.Mike McQuaid
* issues_matching now returns an array * prints issues titles and URLs * find_pull_requests shows closed PRs if no matching PRs are open Closes #26032.