diff --git a/lib/bundler/templates/Gemfile b/lib/bundler/templates/Gemfile index 7db8998d32e..21c62831235 100644 --- a/lib/bundler/templates/Gemfile +++ b/lib/bundler/templates/Gemfile @@ -1,4 +1,6 @@ # frozen_string_literal: true source "https://rubygems.org" +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + # gem "rails" diff --git a/lib/bundler/templates/gems.rb b/lib/bundler/templates/gems.rb index a6ef23ba3e9..9495f50c0e2 100644 --- a/lib/bundler/templates/gems.rb +++ b/lib/bundler/templates/gems.rb @@ -2,4 +2,6 @@ # A sample gems.rb source "https://rubygems.org" +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + # gems "rails" diff --git a/lib/bundler/templates/newgem/Gemfile.tt b/lib/bundler/templates/newgem/Gemfile.tt index 4cd2e40f4f8..c114bd66659 100644 --- a/lib/bundler/templates/newgem/Gemfile.tt +++ b/lib/bundler/templates/newgem/Gemfile.tt @@ -1,4 +1,6 @@ source "https://rubygems.org" +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + # Specify your gem's dependencies in <%= config[:name] %>.gemspec gemspec