summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-12-13 19:03:52 +0000
committerBundlerbot <bot@bundler.io>2019-12-13 19:03:52 +0000
commitf143253656981d64fac8b3c781172c716e3a3f4e (patch)
tree60ec8780bb714246949b235e621139c586752dd3
parent3bd06e7a8bb427945b9a0c7c108c02bd96d7c1c9 (diff)
parent831093c178dc14d15123bc1c8a5e15cc1e0ff70b (diff)
downloadbundler-f143253656981d64fac8b3c781172c716e3a3f4e.tar.gz
Merge #7478
7478: Revert "Write & read dummy gems binarily" r=deivid-rodriguez a=deivid-rodriguez This reverts commit f11c4757a17bea029e1a83ad67c425ccf16133ff. ### What was the end-user problem that led to this PR? The problem was that since #7451, azure logs are flooded with messages like ``` The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in foo.gemspec. ``` This makes it hard to scan for other potential errors. ### What was your diagnosis of the problem? My diagnosis was that some commit in that PR introduced this warnings. ### What is your fix for the problem, implemented in this PR? My fix is to revert the offending commit. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
-rw-r--r--spec/install/redownload_spec.rb2
-rw-r--r--spec/support/builders.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/install/redownload_spec.rb b/spec/install/redownload_spec.rb
index c880b8bb15..818c33bd61 100644
--- a/spec/install/redownload_spec.rb
+++ b/spec/install/redownload_spec.rb
@@ -17,7 +17,7 @@ RSpec.describe "bundle install" do
bundle! :install, flag => true
expect(out).to include "Installing rack 1.0.0"
- expect(rack_lib.binread).to eq("RACK = '1.0.0'\n")
+ expect(rack_lib.open(&:read)).to eq("RACK = '1.0.0'\n")
expect(the_bundle).to include_gems "rack 1.0.0"
end
diff --git a/spec/support/builders.rb b/spec/support/builders.rb
index 4a8d699740..76c9fff463 100644
--- a/spec/support/builders.rb
+++ b/spec/support/builders.rb
@@ -632,7 +632,7 @@ module Spec
@files.each do |file, source|
file = Pathname.new(path).join(file)
FileUtils.mkdir_p(file.dirname)
- File.open(file, "wb") {|f| f.puts source }
+ File.open(file, "w") {|f| f.puts source }
end
@spec.files = @files.keys
path