summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-15 17:44:08 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-15 17:44:08 -0500
commit74adefebe765ef3ec1731051301d361972c4c78b (patch)
tree302f72f48b01224b5527d6a933008306b026a3db
parenta00cb2b3b5ad3053d4b78827a4f27deac3f69d1b (diff)
downloadbundler-seg-bundle-gem-github-source.tar.gz
Create Gemfiles with an HTTPS github source definedseg-bundle-gem-github-source
-rw-r--r--lib/bundler/templates/Gemfile2
-rw-r--r--lib/bundler/templates/gems.rb2
-rw-r--r--lib/bundler/templates/newgem/Gemfile.tt2
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