diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-16 23:28:52 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-23 23:35:42 +0300 |
commit | 03db4f110613c73003f86d0ff98a7dcb6f0dae59 (patch) | |
tree | c0410dfcfe5a08157fea95e23e6dad85a29c9ffa /lib/gitlab/dependency_linker/cocoapods.rb | |
parent | fbec6dbd1a120cd111608c637cd63c8313aeb976 (diff) |
Autolink package names in Podfile
Diffstat (limited to 'lib/gitlab/dependency_linker/cocoapods.rb')
-rw-r--r-- | lib/gitlab/dependency_linker/cocoapods.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/gitlab/dependency_linker/cocoapods.rb b/lib/gitlab/dependency_linker/cocoapods.rb new file mode 100644 index 00000000000..2fbde7da1b4 --- /dev/null +++ b/lib/gitlab/dependency_linker/cocoapods.rb @@ -0,0 +1,10 @@ +module Gitlab + module DependencyLinker + module Cocoapods + def package_url(name) + package = name.split("/", 2).first + "https://cocoapods.org/pods/#{package}" + end + end + end +end |