mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[rubygems/rubygems] Don't create an empty tmp/2.1
directory when running spec:deps task
3189d3e49b
This commit is contained in:
parent
e67f595e8f
commit
2321091cfa
2 changed files with 2 additions and 2 deletions
|
@ -434,7 +434,7 @@ module Spec
|
|||
|
||||
def _build(options = {})
|
||||
full_name = "bundler-#{@version}"
|
||||
build_path = @context.tmp + full_name
|
||||
build_path = (options[:build_path] || @context.tmp) + full_name
|
||||
bundler_path = build_path + "#{full_name}.gem"
|
||||
|
||||
require "fileutils"
|
||||
|
|
|
@ -326,7 +326,7 @@ module Spec
|
|||
def self.install_dev_bundler
|
||||
extend self
|
||||
|
||||
with_built_bundler {|gem_path| install_gem(gem_path, pristine_system_gem_path) }
|
||||
with_built_bundler(nil, build_path: tmp_root) {|gem_path| install_gem(gem_path, pristine_system_gem_path) }
|
||||
end
|
||||
|
||||
def install_gem(path, install_dir, default = false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue