123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- From 3e7452ea854021c42951fac09a1856362f572ae8 Mon Sep 17 00:00:00 2001
- From: "Luke T. Shumaker" <lukeshu@lukeshu.com>
- Date: Wed, 21 Feb 2024 11:52:49 -0700
- Subject: [PATCH] FSDG: rubygems: Have default_sources be empty
- https://wiki.parabola.nu/TPPM_Liberation_Project
- This does not change the default server used for uploading or managing
- published gems, it just changes the default list of servers that are
- searched when installing a gem.
- ---
- lib/rubygems/defaults.rb | 2 +-
- test/rubygems/test_gem.rb | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
- diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb
- index 2b1baa333d..3472dd6ea4 100644
- --- a/lib/rubygems/defaults.rb
- +++ b/lib/rubygems/defaults.rb
- @@ -13,7 +13,7 @@ module Gem
- # An Array of the default sources that come with RubyGems
-
- def self.default_sources
- - %w[https://rubygems.org/]
- + %w[]
- end
-
- ##
- diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
- index 967bc4b8b5..2397a59a36 100644
- --- a/test/rubygems/test_gem.rb
- +++ b/test/rubygems/test_gem.rb
- @@ -614,7 +614,7 @@ def test_default_path_vendor_dir
- end
-
- def test_self_default_sources
- - assert_equal %w[https://rubygems.org/], Gem.default_sources
- + assert_equal %w[], Gem.default_sources
- end
-
- def test_self_dir
- --
- 2.46.0
|