GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Previously we only added the "lib" subdirectory to the load path when
setting up gem dependencies for frozen gems. Now we add the "ext"
subdirectory as well for those gems which have compiled C extensions
as well. [Wincent Colaiuta]

[#268 state:resolved]
technoweenie (author)
Sat May 31 17:22:16 -0700 2008
commit  71528b1825ce5184b23d09f923cb72f4073ce8ed
tree    798ac7cc8ede435aaa35fa04afeaaeba3c45d7f7
parent  6a975d6ca28216cfa015374c802279349e9253ca
...
31
32
33
34
 
 
 
35
36
37
...
31
32
33
 
34
35
36
37
38
39
0
@@ -31,7 +31,9 @@ module Rails
0
         args << @requirement.to_s if @requirement
0
         gem *args
0
       else
0
- $LOAD_PATH << File.join(unpacked_paths.first, 'lib')
0
+ $LOAD_PATH.unshift File.join(unpacked_paths.first, 'lib')
0
+ ext = File.join(unpacked_paths.first, 'ext')
0
+ $LOAD_PATH.unshift(ext) if File.exist?(ext)
0
         @frozen = true
0
       end
0
       @load_paths_added = true

Comments

    No one has commented yet.