* lib/rubygems/installer.rb (build_extensions): Create extension

install destination before building extension.  Patch by Kenta Murata.
  [ruby-trunk - Bug #7897]
* test/rubygems/test_gem_installer.rb:  Test for the above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2013-02-21 22:05:09 +00:00
parent 6b88b523f4
commit ac4da20aa3
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
Fri Feb 22 07:04:41 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems/installer.rb (build_extensions): Create extension
install destination before building extension. Patch by Kenta Murata.
[ruby-trunk - Bug #7897]
* test/rubygems/test_gem_installer.rb: Test for the above.
Fri Feb 22 06:30:57 2013 Eric Hodel <drbrain@segment7.net>
* doc/globals.rdoc: Document what setting $DEBUG does.

View File

@ -8,6 +8,7 @@ require 'rubygems/exceptions'
require 'rubygems/package'
require 'rubygems/ext'
require 'rubygems/user_interaction'
require 'fileutils'
##
# The installer installs the files contained in the .gem into the Gem.home.
@ -671,6 +672,8 @@ TEXT
end
begin
FileUtils.mkdir_p dest_path
Dir.chdir extension_dir do
results = builder.build(extension, gem_dir, dest_path,
results, @build_args)

View File

@ -137,6 +137,7 @@ load Gem.bin_path('a', 'executable', version)
path = File.join @spec.gem_dir, "extconf_args"
assert_equal args.inspect, File.read(path).strip
assert File.directory? File.join(@spec.gem_dir, 'lib')
end
def test_check_executable_overwrite