From 74c4e562e2ed3f641e68219db507b5a41ea3b6eb Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 6 Sep 2024 13:26:50 +0900 Subject: [PATCH] Warn missing irb cases --- prelude.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prelude.rb b/prelude.rb index 48d94641bd..02d93efdd9 100644 --- a/prelude.rb +++ b/prelude.rb @@ -1,7 +1,11 @@ class Binding # :nodoc: def irb - force_activate "irb" if defined?(Bundler) && !Gem.loaded_specs["irb"] + if defined?(Bundler) && !Gem.loaded_specs["irb"] + unless force_activate "irb" + warn "irb is not found. Install irb from RubyGems or add irb to Gemfile." + end + end require 'irb' irb end