summaryrefslogtreecommitdiff
path: root/spec/support/artifice/compact_index.rb
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-12-15 13:25:17 +0000
committerBundlerbot <bot@bundler.io>2019-12-15 13:25:17 +0000
commit683fe9799e37bff81e53f1a7e97d3a19896b8fc9 (patch)
tree94b2370a0b229af606696ba900254e28cf95f0ed /spec/support/artifice/compact_index.rb
parent9e06edc33f7f1e8eeec370ff33a279b4d9bd1b9b (diff)
parentc40d5e15898ae5679f89969ec22a2efb9b4f68c4 (diff)
downloadbundler-683fe9799e37bff81e53f1a7e97d3a19896b8fc9.tar.gz
Merge #7479v2.1.0
7479: Get ready for 2.1.0 release r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was we want to release bundler 2.1.0 before ruby 2.7.0 ships, so that bundler 2.1.0 can be included with ruby 2.7.0. ### What is your fix for the problem, implemented in this PR? My fix is to get ready for the release. Co-authored-by: Bundlerbot <bot@bundler.io> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
Diffstat (limited to 'spec/support/artifice/compact_index.rb')
-rw-r--r--spec/support/artifice/compact_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/artifice/compact_index.rb b/spec/support/artifice/compact_index.rb
index 89362c4dbc..72abf26224 100644
--- a/spec/support/artifice/compact_index.rb
+++ b/spec/support/artifice/compact_index.rb
@@ -10,7 +10,7 @@ class CompactIndexAPI < Endpoint
def load_spec(name, version, platform, gem_repo)
full_name = "#{name}-#{version}"
full_name += "-#{platform}" if platform != "ruby"
- Marshal.load(Bundler.rubygems.inflate(File.open(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz")).read))
+ Marshal.load(Bundler.rubygems.inflate(File.binread(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz"))))
end
def etag_response