source 'https://rubygems.org' gemspec path: '..' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") "https://github.com/#{repo_name}.git" end github 'rails/rails' do gem 'rails' end