[rubygems/rubygems] Don't create an empty tmp/2.1 directory when running spec:deps task

3189d3e49b
This commit is contained in:
David Rodríguez 2025-07-23 21:29:46 +02:00 committed by Hiroshi SHIBATA
parent e67f595e8f
commit 2321091cfa
2 changed files with 2 additions and 2 deletions

View file

@ -434,7 +434,7 @@ module Spec
def _build(options = {}) def _build(options = {})
full_name = "bundler-#{@version}" 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" bundler_path = build_path + "#{full_name}.gem"
require "fileutils" require "fileutils"

View file

@ -326,7 +326,7 @@ module Spec
def self.install_dev_bundler def self.install_dev_bundler
extend self 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 end
def install_gem(path, install_dir, default = false) def install_gem(path, install_dir, default = false)