Markus Reiter
6a44c529e5
Readd functionality to list all casks.
2018-06-23 01:54:07 +02:00
Markus Reiter
fcd75877c5
Update brew search
help.
2018-06-19 13:48:23 +02:00
Markus Reiter
b265d870ed
Allow searching Casks by name.
2018-06-18 16:23:36 +02:00
Markus Reiter
b21430b13c
Use extend/os
pattern.
2018-06-18 16:23:36 +02:00
Markus Reiter
1d629c6978
Don’t show Casks on Linux.
2018-06-18 16:23:35 +02:00
Markus Reiter
da193d2f7e
Merge brew cask search
into brew search
.
2018-06-18 16:23:35 +02:00
Markus Reiter
cc93997fb7
Refactor search_taps
.
2018-06-07 14:02:31 +02:00
Markus Reiter
717032d86d
Use Searchable
module.
2018-06-07 14:02:31 +02:00
Markus Reiter
dd8370a9fa
Move shared search logic into Homebrew::Search
module.
2018-06-07 13:50:10 +02:00
Markus Reiter
49619b09ea
Refactor package manager loop.
2018-06-07 13:48:35 +02:00
Markus Reiter
8b33fbef51
Refactor search_taps
to return Formulae and Casks separately.
2018-06-07 13:48:35 +02:00
Markus Reiter
9e807f8fe4
Refactor query_regexp
.
2018-06-07 13:48:35 +02:00
Markus Reiter
b2c85ad945
Refactor search
.
2018-06-07 13:48:35 +02:00
Markus Reiter
d1fb1d2abc
Use simpler check.
2018-05-25 22:47:41 +02:00
Markus Reiter
de246cc528
Update Homebrew-Cask references.
2018-05-25 18:20:02 +02:00
Markus Reiter
c4222141ac
Revert "Update Homebrew-Cask references."
...
This reverts commit 4475651b548afdcf15c4cf7a7cb57baca1885186.
2018-05-25 17:57:32 +02:00
Markus Reiter
4475651b54
Update Homebrew-Cask references.
2018-05-25 17:56:16 +02:00
Markus Reiter
16fb563d49
Refactor MissingFormula
spec.
2018-04-20 19:11:22 +02:00
Mike McQuaid
c73e873893
Merge pull request #4027 from SENG480-18/master
...
Simplify `search_taps` method and handle errors
2018-04-08 23:17:51 +01:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Stevie Howard
d74721acc7
More granular 'brew search' query == simpler code
2018-04-06 23:14:30 -07:00
Stevie Howard
296d48ba7a
Handle error when 'brew search' can't reach GitHub
2018-04-06 22:12:29 -07:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Dominyk Tiller
f6bc7dc4c6
search: pass explicit sort to handle APFS
2017-10-14 04:17:03 +01:00
Mike McQuaid
cf5fdeef1d
Rubocop: manual rule fixes.
2017-09-24 21:23:59 +01:00
Mike McQuaid
f0605f4a30
audit: don't output when searching taps.
...
This messaging was added for the `brew search` command and having it in
audit is annoying:
(https://github.com/Homebrew/brew/pull/3059#issuecomment-323638672 )
As a side note: this is why randomly including `cmd/*` is a bad idea.
2017-08-23 18:40:30 +01:00
Viktor Szakats
b44c7a1022
upgrade more urls to https
2017-08-22 10:31:21 +00:00
Markus Reiter
3b92f69869
Merge pull request #3054 from BenMusch/github-refactor
...
Clean-up code in GitHub module to reduce duplication & coupling w/ Github API
2017-08-18 16:26:30 +02:00
Mike McQuaid
961d79011e
search: explain why it takes the time it does.
...
Provide a bit of clarity that this isn't just searching a local database
but doing an GitHub API and Git history query.
2017-08-15 10:25:51 +01:00
Ben Muschol
603bdd01a8
Implement PR feedback
2017-08-14 11:08:56 -04:00
Ben Muschol
e93ec12b32
Remove duplicate url generation logic in Github module
2017-08-13 15:03:44 -04:00
Ben Muschol
cb1650075c
Fix style
2017-08-11 15:59:08 -04:00
Ben Muschol
b06fceda57
Add a test
2017-08-11 15:49:57 -04:00
Ben Muschol
348fefea10
Replace search_tap with search_taps
2017-08-11 13:04:37 -04:00
Bob W. Hogg
3b7113b304
cmd/search: use new Fedora package search
...
pkgdb has been put into read-only mode,
so it won't be updated for new Fedora releases
going forward. Use apps.fedoraproject.org/packages instead.
Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-08-07 18:22:26 -07:00
Mike McQuaid
7a0aff1080
Autocorrect Rubocop Style/PerlBackrefs.
2017-06-10 20:23:20 +03:00
Markus Reiter
8d514ae8f0
Merge pull request #2716 from reitermarkus/re-revert
...
Re-revert "Fix operator spacing."
2017-06-03 00:49:06 +02:00
Mike McQuaid
8d2794212f
search: don’t exclude Caskroom results even if tapped.
...
As they are not shown in the normal `brew search` output.
2017-06-02 22:19:04 +01:00
Markus Reiter
2d6ae61314
Re-revert "Fix operator spacing."
2017-06-02 19:22:05 +02:00
ilovezfs
197392b56d
Revert "Fix operator spacing."
2017-06-01 04:06:40 -07:00
Markus Reiter
d34ba7395b
Fix operator spacing.
2017-05-31 19:53:41 +02:00
Markus Reiter
2bda194bd9
Add GitHub::search_code
method.
2017-04-25 12:29:01 +02:00
Mike McQuaid
b3c69aba87
search: use single HTTP call for tap searches.
...
Use GitHub's code search API to search using the filename based on the
search query. This means we only need a single HTTP call and no more
multithreading madness. This also means we're able to search everything
in the Homebrew and Caskroom organisation by default without having to
maintain a list of things to search (and not) in here.
2017-04-24 14:11:04 +01:00
Markus Reiter
6ce84c4fb8
Add OFFICIAL_CASK_TAPS
in official_taps.rb
.
2017-04-20 05:22:34 +02:00
Markus Reiter
3c017a7405
Lowercase Caskroom
in search
.
2017-04-20 05:22:34 +02:00
Mike McQuaid
35a4836dc3
search: silence searching git log.
2017-03-23 08:39:29 +00:00
Mike McQuaid
f59eb358c2
missing_formula: subsume historic logic.
...
These methods belong together so combine them in a single class to
provide a simpler API.
2017-03-20 20:37:12 +01:00
Mike McQuaid
80e95b684e
blacklist: move to missing_formula class instead.
...
This will allow extending this class so it can be used by more than
just blacklisting.
2017-03-20 18:20:31 +02:00
Mike McQuaid
8cedd62750
search: tweak specific formula match formatting.
2017-03-20 18:20:31 +02:00
EricFromCanada
afc539f86e
Update brew's man page formatting and grammar
...
Also update command specifications to match descriptions.
2017-02-25 17:37:57 -05:00