Add OFFICIAL_CASK_TAPS in official_taps.rb.

This commit is contained in:
Markus Reiter 2017-03-04 19:45:21 +01:00
parent 3c017a7405
commit 6ce84c4fb8
2 changed files with 7 additions and 4 deletions

View File

@ -100,10 +100,8 @@ module Homebrew
raise SEARCH_ERROR_QUEUE.pop unless SEARCH_ERROR_QUEUE.empty? raise SEARCH_ERROR_QUEUE.pop unless SEARCH_ERROR_QUEUE.empty?
end end
SEARCHABLE_TAPS = OFFICIAL_TAPS.map { |tap| ["Homebrew", tap] } + [ SEARCHABLE_TAPS = OFFICIAL_TAPS.map { |tap| ["Homebrew", tap] } +
%w[caskroom cask], OFFICIAL_CASK_TAPS.map { |tap| ["caskroom", tap] }
%w[caskroom versions],
]
def query_regexp(query) def query_regexp(query)
case query case query

View File

@ -5,6 +5,11 @@ OFFICIAL_TAPS = %w[
science science
].freeze ].freeze
OFFICIAL_CASK_TAPS = %w[
cask
versions
].freeze
OFFICIAL_CMD_TAPS = { OFFICIAL_CMD_TAPS = {
"homebrew/bundle" => ["bundle"], "homebrew/bundle" => ["bundle"],
"homebrew/test-bot" => ["test-bot"], "homebrew/test-bot" => ["test-bot"],