Commit 7e56c114 authored by Marius Rackwitz's avatar Marius Rackwitz

[Gemfile] Add flag to skip unreleased versions

This can be set to true on release branches, so that only versions of the gems which were released and pushed to RubyGems are considered.
parent 83fa2bb0
SKIP_UNRELEASED_VERSIONS = false
# 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', path: false) def cp_gem(name, repo_name, branch = 'master', path: false)
return gem name if SKIP_UNRELEASED_VERSIONS
opts = if path opts = if path
{ :path => "../#{repo_name}" } { :path => "../#{repo_name}" }
else else
......
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