[前][次][番号順一覧][スレッド一覧]

ruby-changes:27314

From: drbrain <ko1@a...>
Date: Fri, 22 Feb 2013 07:18:46 +0900 (JST)
Subject: [ruby-changes:27314] drbrain:r39366 (trunk): * lib/rubygems/installer.rb (build_extensions): Create extension

drbrain	2013-02-22 07:05:09 +0900 (Fri, 22 Feb 2013)

  New Revision: 39366

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39366

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rubygems/installer.rb
    trunk/test/rubygems/test_gem_installer.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39365)
+++ ChangeLog	(revision 39366)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Feb 22 07:04:41 2013  Eric Hodel  <drbrain@s...>
+
+	* 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@s...>
 
 	* doc/globals.rdoc:  Document what setting $DEBUG does.
Index: lib/rubygems/installer.rb
===================================================================
--- lib/rubygems/installer.rb	(revision 39365)
+++ lib/rubygems/installer.rb	(revision 39366)
@@ -8,6 +8,7 @@ require 'rubygems/exceptions' https://github.com/ruby/ruby/blob/trunk/lib/rubygems/installer.rb#L8
 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 https://github.com/ruby/ruby/blob/trunk/lib/rubygems/installer.rb#L672
                 end
 
       begin
+        FileUtils.mkdir_p dest_path
+
         Dir.chdir extension_dir do
           results = builder.build(extension, gem_dir, dest_path,
                                   results, @build_args)
Index: test/rubygems/test_gem_installer.rb
===================================================================
--- test/rubygems/test_gem_installer.rb	(revision 39365)
+++ test/rubygems/test_gem_installer.rb	(revision 39366)
@@ -137,6 +137,7 @@ load Gem.bin_path('a', 'executable', ver https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_installer.rb#L137
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]