Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37536493
en ru br
ALT Linux repos
S:3.1.2-alt2.1
5.0: 1.8.7-alt7
4.1: 1.8.7-alt0.M41.5
4.0: 1.8.6-alt2.M40.2
3.0: 1.8.2-alt7

Group :: Development/Ruby
RPM: ruby

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: support_multiple_gem_trees.patch
Download


commit 4c2356a37baa44e692e2c26120d92c60ef213d0d
Author: Pavel Skrylev <majioa@altlinux.org>
Date:   Mon Aug 15 21:36:43 2022 +0300
    fix: support of multiple gem tree
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb
index 228748fe57..a2a4bfa77e 100644
--- a/lib/rubygems/defaults.rb
+++ b/lib/rubygems/defaults.rb
@@ -183,6 +183,9 @@ def self.default_path
     path = []
     path << user_dir if user_home && File.exist?(user_home)
     path << default_dir
+    path |= %w(rubylibdir rubyarchdir).map do |key|
+      Dir.glob(File.join(RbConfig::CONFIG[key], 'gems', '{,[0-9]?[0-9]?[0-9]}'))
+    end.flatten.select {|x| File.directory?(x) }
     path << vendor_dir if vendor_dir and File.directory? vendor_dir
     path
   end
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin