From 1b610190c5a2df33dd7b19665aaa2cab85fde215 Mon Sep 17 00:00:00 2001 From: nick evans Date: Tue, 18 Feb 2025 18:37:15 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=F0=9F=94=A7=20Bump=20version=20and?= =?UTF-8?q?=20default=20config=20to=200.6.0-dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/net/imap.rb | 2 +- lib/net/imap/config.rb | 9 ++++++--- test/net/imap/test_imap_uidplus.rb | 5 ----- test/net/imap/test_response_parser.rb | 5 ----- 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 24ddd863a..4ac9d7a89 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -788,7 +788,7 @@ module Net # * {IMAP URLAUTH Authorization Mechanism Registry}[https://www.iana.org/assignments/urlauth-authorization-mechanism-registry/urlauth-authorization-mechanism-registry.xhtml] # class IMAP < Protocol - VERSION = "0.5.12" + VERSION = "0.6.0-dev" # Aliases for supported capabilities, to be used with the #enable command. ENABLE_ALIASES = { diff --git a/lib/net/imap/config.rb b/lib/net/imap/config.rb index 013cccccb..370ff7197 100644 --- a/lib/net/imap/config.rb +++ b/lib/net/imap/config.rb @@ -481,9 +481,9 @@ def defaults_hash sasl_ir: true, enforce_logindisabled: true, max_response_size: 512 << 20, # 512 MiB - responses_without_block: :warn, - parser_use_deprecated_uidplus_data: :up_to_max_size, - parser_max_deprecated_uidplus_data_size: 100, + responses_without_block: :frozen_dup, + parser_use_deprecated_uidplus_data: false, + parser_max_deprecated_uidplus_data_size: 0, ).freeze @global = default.new @@ -525,6 +525,9 @@ def defaults_hash version_defaults[0.7r] = Config[0.6r].dup.update( ).freeze + version_defaults[0.8r] = Config[0.7r].dup.update( + ).freeze + # Safe conversions one way only: # 0.6r.to_f == 0.6 # => true # 0.6 .to_r == 0.6r # => false diff --git a/test/net/imap/test_imap_uidplus.rb b/test/net/imap/test_imap_uidplus.rb index 426f988c7..070e7169f 100644 --- a/test/net/imap/test_imap_uidplus.rb +++ b/test/net/imap/test_imap_uidplus.rb @@ -8,11 +8,6 @@ class IMAPUIDPlusTest < Net::IMAP::TestCase include Net::IMAP::FakeServer::TestHelper - def setup - super - Net::IMAP.config.parser_use_deprecated_uidplus_data = false - end - def test_uidplus_appenduid with_fake_server(select: "INBOX", extensions: %i[UIDPLUS]) do |server, imap| diff --git a/test/net/imap/test_response_parser.rb b/test/net/imap/test_response_parser.rb index ee54a24d1..f6a4b756e 100644 --- a/test/net/imap/test_response_parser.rb +++ b/test/net/imap/test_response_parser.rb @@ -10,11 +10,6 @@ class ResponseParserTest < Net::IMAP::TestCase include NetIMAPTestHelpers extend NetIMAPTestHelpers::TestFixtureGenerators - def setup - super - Net::IMAP.config.parser_use_deprecated_uidplus_data = false - end - ############################################################################ # Tests that do no more than parse an example response and assert the result # data has the correct values have been moved to yml test fixtures.