pantry/projects/ruby-lang.org/defaults.rb.patch

14 lines
534 B
Diff
Raw Normal View History

diff --git a/lib/ruby/3.2.0/rubygems/defaults.rb b/lib/ruby/3.2.0/rubygems/defaults.rb
index 8daff0b..59ecd32 100644
--- a/lib/ruby/3.2.0/rubygems/defaults.rb
+++ b/lib/ruby/3.2.0/rubygems/defaults.rb
@@ -34,7 +34,7 @@ module Gem
# specified in the environment
def self.default_dir
- @default_dir ||= File.join(RbConfig::CONFIG["rubylibprefix"], "gems", RbConfig::CONFIG["ruby_version"])
+ @default_dir ||= File.expand_path(File.join(__FILE__, "../../../../../../gems", RbConfig::CONFIG["ruby_version"]))
end
##