Sha256: f4f69a4a12a2356d96d232ed0dd0afd6b6f2f47fa771f88b391d5dd172f938cd

Contents?: true

Size: 1015 Bytes

Versions: 9

Compression:

Stored size: 1015 Bytes

Contents

# frozen_string_literal: true

# Backward compatible delegators from Net::IMAP to Net::IMAP::SASL.
module Net::IMAP::Authenticators

  # Deprecated.  Use Net::IMAP::SASL.add_authenticator instead.
  def add_authenticator(...)
    warn(
      "%s.%s is deprecated.  Use %s.%s instead." % [
        Net::IMAP, __method__, Net::IMAP::SASL, __method__
      ],
      uplevel: 1, category: :deprecated
    )
    Net::IMAP::SASL.add_authenticator(...)
  end

  # Deprecated.  Use Net::IMAP::SASL.authenticator instead.
  def authenticator(...)
    warn(
      "%s.%s is deprecated.  Use %s.%s instead." % [
        Net::IMAP, __method__, Net::IMAP::SASL, __method__
      ],
      uplevel: 1, category: :deprecated
    )
    Net::IMAP::SASL.authenticator(...)
  end

  Net::IMAP.extend self
end

class Net::IMAP
  PlainAuthenticator = SASL::PlainAuthenticator # :nodoc:
  deprecate_constant :PlainAuthenticator

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

Version data entries

9 entries across 8 versions & 2 rubygems

Version Path
net-imap-0.5.6 lib/net/imap/authenticators.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/net-imap-0.5.1/lib/net/imap/authenticators.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/net-imap-0.5.1/lib/net/imap/authenticators.rb
net-imap-0.5.5 lib/net/imap/authenticators.rb
net-imap-0.5.4 lib/net/imap/authenticators.rb
net-imap-0.5.3 lib/net/imap/authenticators.rb
net-imap-0.5.2 lib/net/imap/authenticators.rb
net-imap-0.5.1 lib/net/imap/authenticators.rb
net-imap-0.5.0 lib/net/imap/authenticators.rb