diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-09-06 13:26:50 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-09-06 14:45:17 +0900 |
| commit | 74c4e562e2ed3f641e68219db507b5a41ea3b6eb (patch) | |
| tree | b7ebd255768886943d4d949c0db2755656666022 | |
| parent | 1b4f394c527652210941d1da768b83203a33715d (diff) | |
Warn missing irb cases
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11560
| -rw-r--r-- | prelude.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
