From 55eabee800493cff526a2846bd6ce054058bde01 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Thu, 21 Apr 2022 19:07:04 -0300 Subject: [PATCH] Use https source for github repos with Bundler 1.x GitHub no longer supports the git:// protocol, which was the default in Bundler 1.x. From the build: The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information. --- gemfiles/Gemfile-rails-4-1 | 5 +++++ gemfiles/Gemfile-rails-4-2 | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gemfiles/Gemfile-rails-4-1 b/gemfiles/Gemfile-rails-4-1 index 44a1c98a..7bbabf9d 100644 --- a/gemfiles/Gemfile-rails-4-1 +++ b/gemfiles/Gemfile-rails-4-1 @@ -2,6 +2,11 @@ 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 + gemspec path: ".." gem "rails", github: "rails/rails", branch: "4-1-stable" diff --git a/gemfiles/Gemfile-rails-4-2 b/gemfiles/Gemfile-rails-4-2 index bb35c5f2..6e106b5e 100644 --- a/gemfiles/Gemfile-rails-4-2 +++ b/gemfiles/Gemfile-rails-4-2 @@ -2,6 +2,11 @@ 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 + gemspec path: ".." gem "rails", github: "rails/rails", branch: "4-2-stable"