Skip to content

Commit

Permalink
📚 Fix deprecated constants rdoc
Browse files Browse the repository at this point in the history
Also, revert to default section after flags are read
  • Loading branch information
nevans committed Dec 1, 2022
1 parent 22a2111 commit dcf5704
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/net/imap/flags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,5 +257,6 @@ class IMAP < Protocol
# special use is likely not to be supported.
TRASH = :Trash

# :section:
end
end
2 changes: 1 addition & 1 deletion lib/net/imap/sasl/cram_md5_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def hmac_md5(text, key)
end
end

CramMD5Authenticator = SASL::CramMD5Authenticator
CramMD5Authenticator = SASL::CramMD5Authenticator # :nodoc:
deprecate_constant :CramMD5Authenticator

end
Expand Down
2 changes: 1 addition & 1 deletion lib/net/imap/sasl/digest_md5_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def qdval(k, v)
end
end

DigestMD5Authenticator = SASL::DigestMD5Authenticator
DigestMD5Authenticator = SASL::DigestMD5Authenticator # :nodoc:
deprecate_constant :DigestMD5Authenticator

end
Expand Down
2 changes: 1 addition & 1 deletion lib/net/imap/sasl/login_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def initialize(user, password, warn_deprecation: true, **_ignored)
end
end

LoginAuthenticator = SASL::LoginAuthenticator
LoginAuthenticator = SASL::LoginAuthenticator # :nodoc:
deprecate_constant :LoginAuthenticator

end
Expand Down
2 changes: 1 addition & 1 deletion lib/net/imap/sasl/plain_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def propset(name, value)
end
end

PlainAuthenticator = SASL::PlainAuthenticator
PlainAuthenticator = SASL::PlainAuthenticator # :nodoc:
deprecate_constant :PlainAuthenticator

end
Expand Down
2 changes: 1 addition & 1 deletion lib/net/imap/sasl/xoauth2_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def process(data)
end
end

XOauth2Authenticator = SASL::XOAuth2Authenticator
XOauth2Authenticator = SASL::XOAuth2Authenticator # :nodoc:
deprecate_constant :XOauth2Authenticator

end
Expand Down

0 comments on commit dcf5704

Please sign in to comment.