From d386a58f6f1865aaa35eda5af55cff3ff3cca4ca Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 15 Oct 2020 13:20:25 +0900 Subject: Merge bundler-2.2.0.rc.2 --- lib/bundler/ui/shell.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/bundler/ui') diff --git a/lib/bundler/ui/shell.rb b/lib/bundler/ui/shell.rb index 92476be7d2..17777af4ac 100644 --- a/lib/bundler/ui/shell.rb +++ b/lib/bundler/ui/shell.rb @@ -28,17 +28,17 @@ module Bundler tell_me(msg, :green, newline) if level("confirm") end - def warn(msg, newline = nil) + def warn(msg, newline = nil, color = :yellow) return unless level("warn") return if @warning_history.include? msg @warning_history << msg - tell_err(msg, :yellow, newline) + tell_err(msg, color, newline) end - def error(msg, newline = nil) + def error(msg, newline = nil, color = :red) return unless level("error") - tell_err(msg, :red, newline) + tell_err(msg, color, newline) end def debug(msg, newline = nil) @@ -92,7 +92,7 @@ module Bundler [] end - private + private # valimism def tell_me(msg, color = nil, newline = nil) -- cgit v1.2.3