summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-09 21:32:50 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-09 21:32:50 +0100
commit00da5215e90c6483728e077df4e90ab6cd34c35d (patch)
tree5ed0563e3ab09211652eb0470e783206b43adf7f
parent603fd46a535af4fef7e46c5f4596dc5427fb26bf (diff)
downloadbundler-00da5215e90c6483728e077df4e90ab6cd34c35d.tar.gz
Try fix old rubygems version failures
-rw-r--r--spec/support/helpers.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 5af103a0e6..da2272f897 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -302,7 +302,12 @@ module Spec
bundler_path = tmp + "bundler-#{Bundler::VERSION}.gem"
with_root_gemspec do |gemspec|
- gem_command! "build #{gemspec} --output #{bundler_path}", :dir => root
+ if Gem::VERSION >= "3.0.0"
+ gem_command! "build #{gemspec} --output #{bundler_path}", :dir => root
+ else
+ gem_command! "build #{gemspec}", :dir => root
+ FileUtils.mv root + File.basename(bundler_path), bundler_path
+ end
end
begin