0001-FSDG-rubygems-Have-default_sources-be-empty.patch 1.3 KB

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