From 42a084b287bd1184cdd9815409efc363b1286fbf Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 22 Feb 2021 15:51:07 +0100 Subject: irb: don't whine on missing wirble gem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .irbrc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.irbrc b/.irbrc index 2fb6a18..dc24a42 100644 --- a/.irbrc +++ b/.irbrc @@ -19,11 +19,17 @@ require 'irb/completion' require 'irb/ext/save-history' require 'rubygems' require 'pp' -require 'wirble' # Colorize! -Wirble.init -Wirble.colorize +# rubocop:disable Lint/SuppressedException +begin + require 'wirble' + + Wirble.init + Wirble.colorize +rescue LoadError +end +# rubocop:enable Lint/SuppressedException # Simple prompt IRB.conf[:PROMPT_MODE] = :SIMPLE -- cgit v1.2.3