From 61c35f7e5cc4765551c7f2e50d1d94dd02fc9b97 Mon Sep 17 00:00:00 2001 From: nick evans Date: Fri, 3 Jan 2025 23:17:24 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20Update=20Config#responses=5Fwith?= =?UTF-8?q?out=5Fblock=20rdoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The planned `:future` config value is `:frozen_dup`, not `:raise`. --- lib/net/imap/config.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/net/imap/config.rb b/lib/net/imap/config.rb index 7532737c..edeea30e 100644 --- a/lib/net/imap/config.rb +++ b/lib/net/imap/config.rb @@ -75,7 +75,7 @@ class IMAP # # client = Net::IMAP.new(hostname, config: :future) # client.config.sasl_ir # => true - # client.config.responses_without_block # => :raise + # client.config.responses_without_block # => :frozen_dup # # The versioned default configs inherit certain specific config options from # Config.global, for example #debug: @@ -109,9 +109,11 @@ class IMAP # [+:future+] # The _planned_ eventual config for some future +x.y+ version. # - # For example, to raise exceptions for all current deprecations: + # For example, to disable all currently deprecated behavior: # client = Net::IMAP.new(hostname, config: :future) - # client.responses # raises an ArgumentError + # client.config.response_without_args # => :frozen_dup + # client.responses.frozen? # => true + # client.responses.values.all?(&:frozen?) # => true # # == Thread Safety #