Skip to content
Snippets Groups Projects
Commit a2645902 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #2254 from reitermarkus/lowercase-caskroom

Lowercase `caskroom` and add missing Taps.
parents 62cc258b 6ce84c4f
No related branches found
No related tags found
No related merge requests found
...@@ -100,10 +100,8 @@ module Homebrew ...@@ -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
...@@ -126,7 +124,7 @@ module Homebrew ...@@ -126,7 +124,7 @@ module Homebrew
regex = regex_or_string.is_a?(String) ? /^#{Regexp.escape(regex_or_string)}$/ : regex_or_string regex = regex_or_string.is_a?(String) ? /^#{Regexp.escape(regex_or_string)}$/ : regex_or_string
if (HOMEBREW_LIBRARY/"Taps/#{user.downcase}/homebrew-#{repo.downcase}").directory? && \ if (HOMEBREW_LIBRARY/"Taps/#{user.downcase}/homebrew-#{repo.downcase}").directory? && \
user != "Caskroom" user != "caskroom"
return [] return []
end end
......
...@@ -5,6 +5,11 @@ OFFICIAL_TAPS = %w[ ...@@ -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"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment