From 73da14a58b136b3758e98644766a531fa668a579 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Tue, 15 Sep 2026 08:37:33 +0200 Subject: [PATCH] Don't require io/wait on 3.2 or higher io/wait functionality has been in core Ruby since 3.2. It was a default gem in 3.0 and 3.1 and before that it was a non-gem standard library. With the "1.0.0" release of io-wait it is now deprecated and warns when loaded. This patch modifies the require to only run under Ruby versions earlier than 3.2. See ruby/io-wait#79 and ruby/io-wait#80 --- lib/drb/drb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 2a883fe..4035a43 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -41,7 +41,7 @@ # Translation of presentation on Ruby by Masatoshi Seki. require 'socket' -require 'io/wait' +require 'io/wait' if RUBY_VERSION < '3.2' require 'monitor' require_relative 'eq' require_relative 'version'