Skip to content

Commit 2217fbf

Browse files
authored
🔀 Merge pull request #295 from ruby/config-clean-up
♻️ Minor Config class tidy up
2 parents b80fd4c + a9d06ea commit 2217fbf

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

lib/net/imap.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,6 @@ class IMAP < Protocol
725725
"UTF8=ONLY" => "UTF8=ACCEPT",
726726
}.freeze
727727

728-
autoload :Config, File.expand_path("imap/config", __dir__)
729-
730728
autoload :SASL, File.expand_path("imap/sasl", __dir__)
731729
autoload :SASLAdapter, File.expand_path("imap/sasl_adapter", __dir__)
732730
autoload :StringPrep, File.expand_path("imap/stringprep", __dir__)
@@ -2981,6 +2979,7 @@ def self.saslprep(string, **opts)
29812979
end
29822980

29832981
require_relative "imap/errors"
2982+
require_relative "imap/config"
29842983
require_relative "imap/command_data"
29852984
require_relative "imap/data_encoding"
29862985
require_relative "imap/flags"

lib/net/imap/config.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ def self.[](config) # :nodoc: unfinished API
5757

5858
# The debug mode (boolean)
5959
#
60-
# | Starting with version | The default value is |
61-
# |-----------------------|----------------------|
62-
# | _original_ | +false+ |
60+
# The default value is +false+.
6361
attr_accessor :debug, type: :boolean
6462

6563
# method: debug?
@@ -72,17 +70,13 @@ def self.[](config) # :nodoc: unfinished API
7270
# If the IMAP object cannot open a connection within this time,
7371
# it raises a Net::OpenTimeout exception. See Net::IMAP.new.
7472
#
75-
# | Starting with version | The default value is |
76-
# |-----------------------|----------------------|
77-
# | _original_ | +30+ seconds |
73+
# The default value is +30+ seconds.
7874
attr_accessor :open_timeout, type: Integer
7975

8076
# Seconds to wait until an IDLE response is received, after
8177
# the client asks to leave the IDLE state. See Net::IMAP#idle_done.
8278
#
83-
# | Starting with version | The default value is |
84-
# |-----------------------|----------------------|
85-
# | _original_ | +5+ seconds |
79+
# The default value is +5+ seconds.
8680
attr_accessor :idle_response_timeout, type: Integer
8781

8882
# Creates a new config object and initialize its attribute with +attrs+.

0 commit comments

Comments
 (0)