Slim down the source definition

This commit is contained in:
David Heinemeier Hansson 2017-05-24 17:18:45 +02:00
parent 3a628b9338
commit e0318bf0d0
1 changed files with 1 additions and 5 deletions

View File

@ -1,9 +1,5 @@
source 'https://rubygems.org' source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo.include?("/") ? repo : "#{repo}/#{repo}"}.git" }
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
<% gemfile_entries.each do |gem| -%> <% gemfile_entries.each do |gem| -%>
<% if gem.comment -%> <% if gem.comment -%>