summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gem_prelude.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index d2efb8c3a..13add85c3 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -115,7 +115,7 @@ if defined?(Gem) then
if defined? RUBY_FRAMEWORK_VERSION then
File.join File.dirname(ConfigMap[:sitedir]), 'Gems'
elsif RUBY_VERSION > '1.9' then
- File.join(ConfigMap[:libdir], ConfigMap[:ruby_install_name], 'gems')
+ ConfigMap[:sitelibdir].sub(%r'/site_ruby/(?=[^/]+)', '/gems/')
else
File.join(ConfigMap[:libdir], ruby_engine, 'gems')
end