From 8d69d1f4b20f50e4ae4e07c870e1f0a93b25036c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 14 Dec 2022 17:53:59 +0800 Subject: [PATCH] Change the default gem repository address to loongson --- lib/rubygems/commands/sources_command.rb | 4 ++-- lib/rubygems/defaults.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rubygems/commands/sources_command.rb b/lib/rubygems/commands/sources_command.rb index 5a8f5af..ce36ee6 100644 --- a/lib/rubygems/commands/sources_command.rb +++ b/lib/rubygems/commands/sources_command.rb @@ -120,7 +120,7 @@ Do you want to add this insecure source? RubyGems fetches gems from the sources you have configured (stored in your ~/.gemrc). -The default source is https://rubygems.org, but you may have other sources +The default source is https://rubygems.loongnix.cn, but you may have other sources configured. This guide will help you update your sources or configure yourself to use your own gem server. @@ -129,7 +129,7 @@ Without any arguments the sources lists your currently configured sources: $ gem sources *** CURRENT SOURCES *** - https://rubygems.org + https://rubygems.loongnix.cn This may list multiple sources or non-rubygems sources. You probably configured them before or have an old `~/.gemrc`. If you have sources you diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb index d5caea7..cd3f18d 100644 --- a/lib/rubygems/defaults.rb +++ b/lib/rubygems/defaults.rb @@ -12,7 +12,7 @@ module Gem # An Array of the default sources that come with RubyGems def self.default_sources - %w[https://rubygems.org/] + %w[https://rubygems.loongnix.cn/] end ## -- 2.27.0