lib/rubygems/ext/rake_builder.rb in rubygems-update-2.1.11 vs lib/rubygems/ext/rake_builder.rb in rubygems-update-2.2.0.rc.1

- old
+ new

@@ -2,16 +2,13 @@ # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ -require 'rubygems/ext/builder' -require 'rubygems/command' - class Gem::Ext::RakeBuilder < Gem::Ext::Builder - def self.build(extension, directory, dest_path, results, args=[]) + def self.build(extension, directory, dest_path, results, args=[], lib_dir=nil) if File.basename(extension) =~ /mkrf_conf/i then cmd = "#{Gem.ruby} #{File.basename extension}" cmd << " #{args.join " "}" unless args.empty? run cmd, results end @@ -20,10 +17,10 @@ dest_path = '"' + dest_path.to_s + '"' if dest_path.to_s.include?(' ') rake = ENV['rake'] rake ||= begin - "\"#{Gem.ruby}\" -rubygems #{Gem.bin_path('rake', 'rake')}" + "#{Gem.ruby} -rubygems #{Gem.bin_path('rake', 'rake')}" rescue Gem::Exception end rake ||= Gem.default_exec_format % 'rake'