Commit Graph
35 Commits
Author SHA1 Message Date
Jack Nagel 387a7002ed Rename variables for clarity 2013-06-12 14:48:17 -05:00
Jack Nagel a2971aeb70 Extract search_taps method 2013-06-12 14:48:17 -05:00
Jack Nagel e3f12e1219 Pull tap list into a constant 2013-06-12 14:48:17 -05:00
Jack Nagel d6d112f227 Remove use of global variable 2013-06-12 14:48:17 -05:00
Jack Nagel cf37904f84 Rename method 2013-06-12 14:48:16 -05:00
Jack Nagel bceae883c7 Extract query construction 2013-06-12 14:48:16 -05:00
Jack Nagel c77e9d5cdf Use inspect instead of escaping quotes 2013-06-12 14:48:16 -05:00
Jack Nagel eb287869ef Move require out of method 2013-06-12 12:23:45 -05:00
Adam Vandenberg 743c8286bf Add brew search --debian <f> 2013-05-27 17:32:27 -07:00
Daniel Lee Harple 88d5a5a632 Remove unnecessary rescue-all exception handling
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-22 19:53:05 -05:00
Daniel Lee Harple a113ebbfee Check GitHub API rate limit instead of silently failing
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-22 19:53:04 -05:00
Daniel Lee Harple 46941be352 Pass a User-Agent when fetching data from the GitHub API
See <http://developer.github.com/v3/#user-agent-required>.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-22 19:53:01 -05:00
Adam Vandenberg 295d2832a2 search homebrew-x11 2013-02-10 11:15:20 -08:00
Mike McQuaid dedc6aec75 brew-search: search homebrew/apache tap. 2013-01-30 22:15:37 -08:00
Samuel John 322635a22b brew search looks in samueljohn/python, too.
Closes #17267.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-23 19:53:46 -08:00
Adam Vandenberg ac1d7d181a Add Homebrew-completions to search 2013-01-23 19:53:06 -08:00
Jack Nagel 82a2fdcd33 Respect BROWSER environment variable 2012-12-27 23:41:44 -06:00
Adam Vandenberg 57fbd5ef7c Fix the name because adamv doesn't know what he's doing. 2012-09-01 19:01:56 -07:00
Adam Vandenberg 7a112696c8 bless alanthing/homebrew-apachemod
Add external tap to default search path, and recommend it for packaging
Apache Modules.
2012-09-01 18:51:39 -07:00
hazz bef8e25a41 Run each search_tap in a separate thread to speed things up.
Closes #14066.

Signed-off-by: Max Howell <mxcl@me.com>
2012-08-09 11:58:58 -04:00
Max Howell a436c86c33 Deprecate adamv/alt from brew search
Add brew/science.
2012-07-30 13:24:53 -04:00
Max Howell 4f16573afa Use GitHub API 3 in brew search 2012-04-05 13:06:36 -04:00
Max Howell 130131524b Search Homebrew/games 2012-03-25 11:06:28 +01:00
Max Howell da917ed466 Don't query online for plain brew search 2012-03-20 16:03:27 +00:00
Max Howell ab571e4d72 Downcase when checking if no tap search needed 2012-03-18 02:03:19 +00:00
Max Howell e820345902 Special case "Homebrew" in brew-search
Again, "Homebrew" is changed to "homebrew" before rendering to the user.
2012-03-18 01:51:36 +00:00
Max Howell 087408b8e0 Add brew/versions and brew/dupes to search 2012-03-18 01:23:15 +00:00
Max Howell 5641e6b38e brew search will search taps we decide are core
This means `brew search` always does some network operations. Which is a shame, but I think (for brew) fine. Probably the no-connectivity handling needs to be improved.
2012-03-16 22:37:11 +00:00
Misty De Meo f2f26a11bb search: return results while parsing
Instead of returning a full list of results after parsing, yield and
print each result as it's found for a snappier user experience.

Closes #9576.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-13 22:31:55 -06:00
Jack Nagel 7c9a7b4272 search: don't try to escape nil
Fixes #9575.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12 18:55:16 -06:00
Jack Nagel c00dbf3e41 search: return matches from open pull requests
When search can't find any local results, hit the GitHub API and search
the titles of pending pull requests. This will help people find the many
proposed formulae and prevent them from wasting time duplicating them.

Closes #9018.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-11 21:11:53 -06:00
Adam Vandenberg 2f5742dbe8 Fix 'brew search' with no parameter. 2011-03-12 11:55:08 -08:00
Adam Vandenberg 05d175d51f Use + instead of /. 2011-03-12 11:55:07 -08:00
Max Howell c051e2d91a Refactor the blacklists
Also don't abort searches if the query matches a blacklist. Eg.
`brew search vim` should return macvim and the information that vim itself is
not packaged.
2011-03-12 11:55:02 -08:00
Max Howell 9afc85ad33 Refactor the brew command into one file per command
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.

But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.

If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.

Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00