Skip to content

Commit 73e5c8b

Browse files
committed
📚 Fix deprecated constants rdoc
Also, revert to default section after flags are read
1 parent f83a644 commit 73e5c8b

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

lib/net/imap/flags.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,6 @@ class IMAP < Protocol
257257
# special use is likely not to be supported.
258258
TRASH = :Trash
259259

260+
# :section:
260261
end
261262
end

lib/net/imap/sasl/cram_md5_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def hmac_md5(text, key)
6060
end
6161
end
6262

63-
CramMD5Authenticator = SASL::CramMD5Authenticator
63+
CramMD5Authenticator = SASL::CramMD5Authenticator # :nodoc:
6464
deprecate_constant :CramMD5Authenticator
6565

6666
end

lib/net/imap/sasl/digest_md5_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def qdval(k, v)
340340
end
341341
end
342342

343-
DigestMD5Authenticator = SASL::DigestMD5Authenticator
343+
DigestMD5Authenticator = SASL::DigestMD5Authenticator # :nodoc:
344344
deprecate_constant :DigestMD5Authenticator
345345

346346
end

lib/net/imap/sasl/login_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def initialize(user, password, warn_deprecation: true, **_ignored)
5656
end
5757
end
5858

59-
LoginAuthenticator = SASL::LoginAuthenticator
59+
LoginAuthenticator = SASL::LoginAuthenticator # :nodoc:
6060
deprecate_constant :LoginAuthenticator
6161

6262
end

lib/net/imap/sasl/plain_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def propset(name, value)
118118
end
119119
end
120120

121-
PlainAuthenticator = SASL::PlainAuthenticator
121+
PlainAuthenticator = SASL::PlainAuthenticator # :nodoc:
122122
deprecate_constant :PlainAuthenticator
123123

124124
end

lib/net/imap/sasl/xoauth2_authenticator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def process(data)
105105
end
106106
end
107107

108-
XOauth2Authenticator = SASL::XOAuth2Authenticator
108+
XOauth2Authenticator = SASL::XOAuth2Authenticator # :nodoc:
109109
deprecate_constant :XOauth2Authenticator
110110

111111
end

0 commit comments

Comments
 (0)