Skip to content

Commit

Permalink
[rubygems/rubygems] Remove unnecessary escape sequences
Browse files Browse the repository at this point in the history
Bundler formatters already take care of this.

rubygems/rubygems@c24415fdd5
  • Loading branch information
deivid-rodriguez authored and hsbt committed Aug 31, 2021
1 parent fe47ac2 commit 81c0643
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/bundler/setup.rb
Expand Up @@ -9,10 +9,10 @@
begin
Bundler.ui.silence { Bundler.setup }
rescue Bundler::BundlerError => e
Bundler.ui.warn "\e[31m#{e.message}\e[0m"
Bundler.ui.error e.message
Bundler.ui.warn e.backtrace.join("\n") if ENV["DEBUG"]
if e.is_a?(Bundler::GemNotFound)
Bundler.ui.warn "\e[33mRun `bundle install` to install missing gems.\e[0m"
Bundler.ui.warn "Run `bundle install` to install missing gems."
end
exit e.status_code
end
Expand Down
12 changes: 6 additions & 6 deletions spec/bundler/commands/exec_spec.rb
Expand Up @@ -836,9 +836,9 @@ def bin_path(a,b,c)
let(:exit_code) { Bundler::GemNotFound.new.status_code }
let(:expected) { "" }
let(:expected_err) { <<-EOS.strip }
\e[31mCould not find gem 'rack (= 2)' in rubygems repository #{file_uri_for(gem_repo1)}/ or installed locally.
The source contains the following versions of 'rack': 0.9.1, 1.0.0\e[0m
\e[33mRun `bundle install` to install missing gems.\e[0m
Could not find gem 'rack (= 2)' in rubygems repository #{file_uri_for(gem_repo1)}/ or installed locally.
The source contains the following versions of 'rack': 0.9.1, 1.0.0
Run `bundle install` to install missing gems.
EOS

it "runs" do
Expand All @@ -863,9 +863,9 @@ def bin_path(a,b,c)
let(:exit_code) { Bundler::GemNotFound.new.status_code }
let(:expected) { "" }
let(:expected_err) { <<-EOS.strip }
\e[31mCould not find gem 'rack (= 2)' in rubygems repository #{file_uri_for(gem_repo1)}/ or installed locally.
The source contains the following versions of 'rack': 1.0.0\e[0m
\e[33mRun `bundle install` to install missing gems.\e[0m
Could not find gem 'rack (= 2)' in rubygems repository #{file_uri_for(gem_repo1)}/ or installed locally.
The source contains the following versions of 'rack': 1.0.0
Run `bundle install` to install missing gems.
EOS

it "runs" do
Expand Down

0 comments on commit 81c0643

Please sign in to comment.