Skip to content

Commit

Permalink
♻️ Switch Config autoload to require_relative
Browse files Browse the repository at this point in the history
I accidentally merged #291 without pushing this update first!  Oops.

Co-authored-by: Shugo Maeda <[email protected]>
  • Loading branch information
nevans and shugo committed Jun 14, 2024
1 parent b80fd4c commit 2ed435f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,6 @@ class IMAP < Protocol
"UTF8=ONLY" => "UTF8=ACCEPT",
}.freeze

autoload :Config, File.expand_path("imap/config", __dir__)

autoload :SASL, File.expand_path("imap/sasl", __dir__)
autoload :SASLAdapter, File.expand_path("imap/sasl_adapter", __dir__)
autoload :StringPrep, File.expand_path("imap/stringprep", __dir__)
Expand Down Expand Up @@ -2981,6 +2979,7 @@ def self.saslprep(string, **opts)
end

require_relative "imap/errors"
require_relative "imap/config"
require_relative "imap/command_data"
require_relative "imap/data_encoding"
require_relative "imap/flags"
Expand Down

0 comments on commit 2ed435f

Please sign in to comment.