aboutsummaryrefslogtreecommitdiffstats
path: root/Gemfile
diff options
context:
space:
mode:
authorKoichi ITO <koic.ito@gmail.com>2017-08-07 17:46:00 +0900
committerKoichi ITO <koic.ito@gmail.com>2017-08-07 17:46:48 +0900
commit7f33b8afa2549069c8f131aeee0b5861250b5214 (patch)
tree6b9e881ed9dc0693982817bb35a857141f5d993e /Gemfile
parentdf94b863c2ff8f1bcf12e36ed8fc1419292668e7 (diff)
downloadrails-7f33b8afa2549069c8f131aeee0b5861250b5214.tar.gz
rails-7f33b8afa2549069c8f131aeee0b5861250b5214.tar.bz2
rails-7f33b8afa2549069c8f131aeee0b5861250b5214.zip
Simplify `git_source` in Gemfile
Follow up of https://github.com/rails/rails/commit/0b8441bd415c444b8d4afbfc93af79ec7677aa2c
Diffstat (limited to '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