diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-08-07 17:46:00 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-08-07 17:46:48 +0900 |
commit | 7f33b8afa2549069c8f131aeee0b5861250b5214 (patch) | |
tree | 6b9e881ed9dc0693982817bb35a857141f5d993e /Gemfile | |
parent | df94b863c2ff8f1bcf12e36ed8fc1419292668e7 (diff) | |
download | rails-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-- | Gemfile | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |