Commit 4ba54780 authored by Douwe Maan's avatar Douwe Maan

Cartfile git and binary methods cannot take a GitHub repo

parent d9f13db3
...@@ -6,14 +6,8 @@ module Gitlab ...@@ -6,14 +6,8 @@ module Gitlab
private private
def link_dependencies def link_dependencies
link_method_call(%w[github git binary]) do |value| link_method_call('github', REPO_REGEX, &method(:github_url))
case value link_method_call(%w[github git binary], URL_REGEX, &:itself)
when %r{\A#{REPO_REGEX}\z}
github_url(value)
when /\A#{URL_REGEX}\z/
value
end
end
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment