| Message: 27134 |
 |
BY: Tim Hunter (rmagick) DATE: 2007-08-23 22:14 SUBJECT: RE: RMagick-win32 - NoMethodErrors (gems faul I wonder if RubyGems is searching the directory that contains the .so files before it searches the directory that contains .rb files. In "plain" Ruby the .rb files are installed in a different directory than the .so files. The .rb directory precedes the .so directory in Ruby's search path.
Typically scripts require just plain "RMagick". The RMagick.rb file explicitly requires "RMagick.so". The expectation is that Ruby will search for "RMagick", find "RMagick.rb", and then RMagick.rb will require RMagick.so. This works if Ruby searches the directories that contain .rb files before searching the directories that contain .so files.
If RubyGems finds RMagick.so first, then it would never find RMagick.rb.
Ruby, at least since 1.6.7, always finds the .rb file first. It does so currently. If RubyGems changes the search order, then it seems like any extension that has both an .rb and a .so file with the same name must fail. | |