diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-12 10:29:25 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-12 10:35:41 -0500 |
commit | e9d7b6cd8facc4828fc4abfb82902d803d523882 (patch) | |
tree | ccd3a136719c8abbe5a48e49aab56164c8916fc1 /lib | |
parent | 02650d97e5e3134c33514334f4721f5b4d1ebd26 (diff) | |
download | gitlab-ce-e9d7b6cd8facc4828fc4abfb82902d803d523882.tar.gz |
Link Gemfile git URLs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/dependency_linker/gemfile_linker.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitlab/dependency_linker/gemfile_linker.rb b/lib/gitlab/dependency_linker/gemfile_linker.rb index e36b88d357d..45be760d89e 100644 --- a/lib/gitlab/dependency_linker/gemfile_linker.rb +++ b/lib/gitlab/dependency_linker/gemfile_linker.rb @@ -16,6 +16,9 @@ module Gitlab "https://github.com/#{name}" end + # Link `git: "https://gitlab.example.com/user/repo"` to https://gitlab.example.com/user/repo + link_regex(%r{(git:|:git\s*=>)\s*['"](?<name>https?://[^'"]+)['"]}) { |url| url } + # Link `source "https://rubygems.org"` to https://rubygems.org link_method_call("source", %r{https?://[^'"]+}) { |url| url } end |