提交 71528b18 编写于 作者: R rick

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]
上级 6a975d6c
......@@ -31,7 +31,9 @@ def add_load_paths
args << @requirement.to_s if @requirement
gem *args
else
$LOAD_PATH << File.join(unpacked_paths.first, 'lib')
$LOAD_PATH.unshift File.join(unpacked_paths.first, 'lib')
ext = File.join(unpacked_paths.first, 'ext')
$LOAD_PATH.unshift(ext) if File.exist?(ext)
@frozen = true
end
@load_paths_added = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册