diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2025-07-23 21:29:46 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-07-25 11:10:38 +0900 |
| commit | 2321091cfae11b81027021bb5de1ba807da7a42e (patch) | |
| tree | 821231026c2fc01e56113d14b440aab941671098 | |
| parent | e67f595e8f3f76f20d7a6b9fd0498ff7b641391c (diff) | |
[rubygems/rubygems] Don't create an empty `tmp/2.1` directory when running spec:deps task
https://github.com/rubygems/rubygems/commit/3189d3e49b
| -rw-r--r-- | spec/bundler/support/builders.rb | 2 | ||||
| -rw-r--r-- | spec/bundler/support/helpers.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb index 5cfbed3864..50fedd38f1 100644 --- a/spec/bundler/support/builders.rb +++ b/spec/bundler/support/builders.rb @@ -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" diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index a0d2d2bb23..438037e08c 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -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) |
