Restore irb to warning target

Users should add `irb` to their Gemfile.
`Gem::BUNDLED_GEMS.force_activate 'irb'` is workaround for short term.
This commit is contained in:
Hiroshi SHIBATA 2026-01-15 16:52:01 +09:00
parent ca9c61800b
commit 6afac93c5c
Notes: git 2026-01-15 08:21:04 +00:00

View File

@ -2,7 +2,7 @@ class Binding
# :nodoc:
def irb(...)
suppress = Thread.current[:__bundled_gems_warning_suppression]
Thread.current[:__bundled_gems_warning_suppression] = ['irb', 'reline', 'rdoc']
Thread.current[:__bundled_gems_warning_suppression] = ['reline', 'rdoc']
begin
require 'irb'