Skip to content

Commit cdbbb67

Browse files
committed
fix: add require 'set' for Ruby < 3.2 compatibility
1 parent 2545e10 commit cdbbb67

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/irb/init.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
55
#
66

7+
require 'set'
8+
79
module IRB # :nodoc:
810
@CONF = {}
911
@INITIALIZED = false
@@ -197,6 +199,10 @@ def IRB.init_config(ap_path)
197199
}
198200

199201
@CONF[:COPY_COMMAND] = ENV.fetch("IRB_COPY_COMMAND", nil)
202+
203+
@CONF[:RELOADABLE_REQUIRE] = false
204+
@CONF[:__RELOADABLE_FILES__] = Set.new
205+
@CONF[:__AUTOLOAD_FILES__] = Set.new
200206
end
201207

202208
def IRB.set_measure_callback(type = nil, arg = nil, &block)

0 commit comments

Comments
 (0)