mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove unnecessary escape sequences
Bundler formatters already take care of this.
c24415fdd5
This commit is contained in:
parent
fe47ac213b
commit
81c0643762
Notes:
git
2021-08-31 19:07:27 +09:00
2 changed files with 8 additions and 8 deletions
|
|
@ -9,10 +9,10 @@ if Bundler::SharedHelpers.in_bundle?
|
|||
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
|
||||
|
|
|
|||
|
|
@ -836,9 +836,9 @@ RSpec.describe "bundle exec" do
|
|||
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
|
||||
|
|
@ -863,9 +863,9 @@ The source contains the following versions of 'rack': 0.9.1, 1.0.0\e[0m
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue