Commit ac030a3a authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #4868 from CocoaPods/seg-gemfile-path

[Gemfile] Add option to cp_gem to make using gem from path easier
parents 7795dbd7 58832024
# Declares a dependency to the git repo of CocoaPods gem. This declaration is # Declares a dependency to the git repo of CocoaPods gem. This declaration is
# compatible with the local git repos feature of Bundler. # compatible with the local git repos feature of Bundler.
# #
def cp_gem(name, repo_name, branch = 'master') def cp_gem(name, repo_name, branch = 'master', path: false)
url = "https://github.com/CocoaPods/#{repo_name}.git" opts = if path
gem name, :git => url, :branch => branch { :path => "../#{repo_name}" }
else
url = "https://github.com/CocoaPods/#{repo_name}.git"
{ :git => url, :branch => branch }
end
gem name, opts
end end
source 'https://rubygems.org' source 'https://rubygems.org'
......
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