mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge bundler master from upstream.
Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0
This commit is contained in:
parent
6650899248
commit
8f37629519
155 changed files with 1366 additions and 1648 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "bundler/current_ruby"
|
||||
require_relative "../current_ruby"
|
||||
|
||||
module Bundler
|
||||
class CLI::Exec
|
||||
|
|
@ -27,12 +27,7 @@ module Bundler
|
|||
if !Bundler.settings[:disable_exec_load] && ruby_shebang?(bin_path)
|
||||
return kernel_load(bin_path, *args)
|
||||
end
|
||||
# First, try to exec directly to something in PATH
|
||||
if Bundler.current_ruby.jruby_18?
|
||||
kernel_exec(bin_path, *args)
|
||||
else
|
||||
kernel_exec([bin_path, cmd], *args)
|
||||
end
|
||||
kernel_exec(bin_path, *args)
|
||||
else
|
||||
# exec using the given command
|
||||
kernel_exec(cmd, *args)
|
||||
|
|
@ -69,7 +64,7 @@ module Bundler
|
|||
Process.setproctitle(process_title(file, args)) if Process.respond_to?(:setproctitle)
|
||||
ui = Bundler.ui
|
||||
Bundler.ui = nil
|
||||
require "bundler/setup"
|
||||
require_relative "../setup"
|
||||
TRAPPED_SIGNALS.each {|s| trap(s, "DEFAULT") }
|
||||
Kernel.load(file)
|
||||
rescue SystemExit, SignalException
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue