Skip to content

Commit

Permalink
Library stubs didn't work for autorequires that are under subdirector…
Browse files Browse the repository at this point in the history
…ies. Fixed. Hard to test unfortunately.

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@251 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information
chadfowler committed May 1, 2004
1 parent ef4643b commit fb0db1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rubygems/lib/rubygems/installer.rb
Expand Up @@ -153,7 +153,7 @@ def generate_library_stubs(spec)
FileUtils.mkdir_p File.dirname(target_file)
end
File.open(target_file, "w", 0644) do |file|
file.write(library_stub_text(spec.name, File.basename(target_file)))
file.write(library_stub_text(spec.name, target_file.sub(/#{Config::CONFIG['sitelibdir']}\//, "")))
end
end
else
Expand Down

0 comments on commit fb0db1c

Please sign in to comment.