aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
AgeCommit message (Collapse)Author
2014-05-26pluralize formulae in tap/untapAdam Vandenberg
Closes Homebrew/homebrew#28560.
2014-03-29Always call Process.wait with an argumentJack Nagel
2014-03-29Make sure we wait for the correct childJack Nagel
Fixes Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#26032.
2014-01-16Only search open pull requests, not closedMisty De Meo
Refs Homebrew/homebrew#25962.
2014-01-10Escape issue search stringJack Nagel
Fixes Homebrew/homebrew#25779.
2013-12-14Update docs, comment mxcl/homebrew refs.Mike McQuaid
2013-12-13fix repo URL for brew searchAdam Vandenberg
Closes Homebrew/homebrew#25192.
2013-11-28typoAdam Vandenberg
2013-10-25Add HOMEBREW_NO_GITHUB_API env var.David MacMahon
This patch allows users to "opt out" of using the GitHub API altogether by setting the HOMEBREW_NO_GITHUB_API environment variable. The value of the environment variable does not matter (it can even be empty!). For Bash/ZSH: export HOMEBREW_NO_GITHUB_API=1 Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-22Avoid comparing MacOS.version to floatsJack Nagel
2013-10-18Rename MacOS to OS::MacJack Nagel
2013-09-17move paths to utilsAdam Vandenberg
2013-08-30Use system path for more tools, for Linux compat.Dan Hughes
Closes Homebrew/homebrew#22196. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-19Use File::PATH_SEPARATOR globally instead of ':'Amos Wenger
On Unix, the path separator is ':', whereas on Windows, it is ';'. This is the first of a series of patch to bring macbrew's and winbrew's codebases closer together. The main places the magic constant ':' was being used were: - the $PATH environment variable - CMAKE-related environment variables - pkg-config related environment variables Closes Homebrew/homebrew#21921. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-10Allow specifying a custom PATH for which methodJack Nagel
Closes Homebrew/homebrew#21794.
2013-08-02Always load net/https before referencing related constantsJack Nagel
I put this require inside the method body, because eager-loading net/https is slow compared to the rest of Homebrew, and utils.rb is loaded for each `brew` invocation. It's probably worth breaking up global.rb a bit, to reduce the amount of code we are loading unnecessarily, but hopefully also to make inter-file dependencies a bit more obvious. Fixes Homebrew/homebrew#21617.
2013-07-15GitHub API access may result in SSL errorsJack Nagel
Closes Homebrew/homebrew#21216.
2013-07-12Move inreplace off of ObjectJack Nagel
Closes Homebrew/homebrew#21163.