diff options
-rw-r--r-- | lib/bundler/templates/Gemfile | 2 | ||||
-rw-r--r-- | lib/bundler/templates/gems.rb | 2 | ||||
-rw-r--r-- | lib/bundler/templates/newgem/Gemfile.tt | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/bundler/templates/Gemfile b/lib/bundler/templates/Gemfile index 7db8998d32..21c6283123 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 a6ef23ba3e..9495f50c0e 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 4cd2e40f4f..c114bd6665 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 |