From 7f33b8afa2549069c8f131aeee0b5861250b5214 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Mon, 7 Aug 2017 17:46:00 +0900 Subject: Simplify `git_source` in Gemfile Follow up of https://github.com/rails/rails/commit/0b8441bd415c444b8d4afbfc93af79ec7677aa2c --- Gemfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 4b86ad6931..5e7d9b5b2e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,6 @@ source "https://rubygems.org" -git_source(:github) do |repo_name| - repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") - "https://github.com/#{repo_name}.git" -end +git_source(:github) { |repo| "https://github.com/#{repo}.git" } gemspec -- cgit v1.2.3