From e79c3e9102d46059bd4b973360fa68d0c138240e Mon Sep 17 00:00:00 2001 From: nick evans Date: Fri, 3 Oct 2025 15:53:35 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20loading=20of=20Net::IMAP::?= =?UTF-8?q?Config=20for=20JRuby?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/net/imap/config/attr_type_coercion.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/net/imap/config/attr_type_coercion.rb b/lib/net/imap/config/attr_type_coercion.rb index bd796976..282ec7f0 100644 --- a/lib/net/imap/config/attr_type_coercion.rb +++ b/lib/net/imap/config/attr_type_coercion.rb @@ -60,8 +60,7 @@ def self.attr_accessor(attr, type: nil) NilOrInteger = safe{->val { Integer val unless val.nil? }} Enum = ->(*enum) { - sh_enum = Ractor.make_shareable(enum) - safe_enum = safe{sh_enum} + safe_enum = safe{enum} expected = -"one of #{safe_enum.map(&:inspect).join(", ")}" safe{->val { return val if safe_enum.include?(val)