Skip to content

Commit 7d538c8

Browse files
authored
Don't require io/wait on Ruby 3.2 and higher (#61)
io/wait functionality has been in core Ruby since 3.2 and prior to that was a default gem. With the "1.0.0" release of io-wait it is now deprecated and warns when loaded. This patch removes the last reference to the io/wait library to avoid deprecation warnings. See ruby/io-wait#79 and ruby/io-wait#80
1 parent a3d1558 commit 7d538c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/drb/drb.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# Translation of presentation on Ruby by Masatoshi Seki.
4242

4343
require 'socket'
44-
require 'io/wait'
44+
require 'io/wait' if RUBY_VERSION < '3.2'
4545
require 'monitor'
4646
require_relative 'eq'
4747
require_relative 'version'

0 commit comments

Comments
 (0)