pantry/projects/ruby-lang.org/defaults.rb.patch
Max Howell a1b84aa7da
Ruby gems path (#85)
* set gem path correctly
2023-01-15 14:34:19 -05:00

14 lines
534 B
Diff

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
##