Submit
Path:
~
/
/
lib
/
ruby
/
3.0.0
/
rubygems
/
ext
/
File Content:
rake_builder.rb
# frozen_string_literal: true #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ class Gem::Ext::RakeBuilder < Gem::Ext::Builder def self.build(extension, dest_path, results, args=[], lib_dir=nil, extension_dir=Dir.pwd) if File.basename(extension) =~ /mkrf_conf/i run([Gem.ruby, File.basename(extension), *args], results, class_name, extension_dir) end rake = ENV['rake'] if rake require "shellwords" rake = rake.shellsplit else begin rake = [Gem.ruby, "-I#{File.expand_path("../..", __dir__)}", "-rrubygems", Gem.bin_path('rake', 'rake')] rescue Gem::Exception rake = [Gem.default_exec_format % 'rake'] end end rake_args = ["RUBYARCHDIR=#{dest_path}", "RUBYLIBDIR=#{dest_path}", *args] run(rake + rake_args, results, class_name, extension_dir) results end end
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
build_error.rb
178 bytes
0644
builder.rb
5863 bytes
0644
cmake_builder.rb
472 bytes
0644
configure_builder.rb
566 bytes
0644
ext_conf_builder.rb
3389 bytes
0644
rake_builder.rb
943 bytes
0644
N4ST4R_ID | Naxtarrr