Cartfile git and binary methods cannot take a GitHub repo

This commit is contained in:
Douwe Maan 2017-05-25 08:43:47 -05:00
parent d9f13db3a1
commit 4ba547809f
1 changed files with 2 additions and 8 deletions

View File

@ -6,14 +6,8 @@ module Gitlab
private
def link_dependencies
link_method_call(%w[github git binary]) do |value|
case value
when %r{\A#{REPO_REGEX}\z}
github_url(value)
when /\A#{URL_REGEX}\z/
value
end
end
link_method_call('github', REPO_REGEX, &method(:github_url))
link_method_call(%w[github git binary], URL_REGEX, &:itself)
end
end
end