aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-08 18:36:09 -0400
committerGitHub <noreply@github.com>2017-08-08 18:36:09 -0400
commitc7be5dfa3c9ca1ab6f86063a031c9b200269cc2f (patch)
tree70c64c87f8c3071947541f023e939735f17a205b
parentd5d5f42888e8d6466f740821de288e0892d38ccd (diff)
parent7f33b8afa2549069c8f131aeee0b5861250b5214 (diff)
downloadrails-c7be5dfa3c9ca1ab6f86063a031c9b200269cc2f.tar.gz
rails-c7be5dfa3c9ca1ab6f86063a031c9b200269cc2f.tar.bz2
rails-c7be5dfa3c9ca1ab6f86063a031c9b200269cc2f.zip
Merge pull request #30109 from koic/simplify_git_source_in_gemfile
Simplify `git_source` in Gemfile
-rw-r--r--Gemfile5
1 files changed, 1 insertions, 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