From ae1db57a00b6ace4466ceff2493867a21665fc10 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 14 Apr 2026 16:32:37 +0900 Subject: [PATCH] Revert "Remove early return for Ruby 4.1+ until ruby/ruby#16358 is merged" This reverts commit 4338633365984700ad09eecea78b11e0fd060c53. --- lib/pathname.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pathname.rb b/lib/pathname.rb index 18c2e04..84feeb7 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -10,6 +10,8 @@ # For documentation, see class Pathname. # +return if RUBY_VERSION >= '4.1' + unless RUBY_VERSION >= '4' require 'pathname.so' if RUBY_ENGINE == 'ruby'