summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-06 21:53:30 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-07 00:00:30 +0100
commitce3359241334d3ee5663b0f0366d432740f680e3 (patch)
treec3f3b36525cd3a04d59cb9b384c20180bf7e0003
parent1b48aec82992a154055aa9b20151874cadbef300 (diff)
downloadbundler-ce3359241334d3ee5663b0f0366d432740f680e3.tar.gz
We don't need a manifest
This is precisely what the `--conservative` flag to `gem install` does.
-rw-r--r--spec/support/rubygems_ext.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index ee9c750a52..4bf09d4a09 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -59,16 +59,7 @@ module Spec
ENV["GEM_HOME"] = ENV["GEM_PATH"] = Path.base_system_gems.to_s
ENV["PATH"] = [Path.bindir, Path.system_gem_path.join("bin"), ENV["PATH"]].join(File::PATH_SEPARATOR)
- manifest = DEPS.to_a.sort_by(&:first).map {|k, v| "#{k} => #{v}\n" }
- manifest_path = Path.base_system_gems.join("manifest.txt")
- # it's OK if there are extra gems
- if !manifest_path.file? || !(manifest - manifest_path.readlines).empty?
- FileUtils.rm_rf(Path.base_system_gems)
- FileUtils.mkdir_p(Path.base_system_gems)
- puts "installing gems for the tests to use..."
- install_gems(DEPS)
- manifest_path.open("wb") {|f| f << manifest.join }
- end
+ install_gems(DEPS)
FileUtils.mkdir_p(Path.home)
FileUtils.mkdir_p(Path.tmpdir)