Sha256: ff1fa567b81e789774226ada1bd9e1e270176ed70de74b974fda6ac7d1932e83

Contents?: true

Size: 969 Bytes

Versions: 24

Compression:

Stored size: 969 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
    )
    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
    )
    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

24 entries across 24 versions & 4 rubygems

Version Path
net-imap-0.4.18 lib/net/imap/authenticators.rb
net-imap-0.4.17 lib/net/imap/authenticators.rb
net-imap-0.4.16 lib/net/imap/authenticators.rb
net-imap-0.4.15 lib/net/imap/authenticators.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/net-imap-0.4.14/lib/net/imap/authenticators.rb
net-imap-0.4.14 lib/net/imap/authenticators.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/net-imap-0.4.11/lib/net/imap/authenticators.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/net-imap-0.4.11/lib/net/imap/authenticators.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/net-imap-0.4.11/lib/net/imap/authenticators.rb
net-imap-0.4.13 lib/net/imap/authenticators.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/net-imap-0.4.12/lib/net/imap/authenticators.rb
net-imap-0.4.12 lib/net/imap/authenticators.rb
net-imap-0.4.10 lib/net/imap/authenticators.rb
net-imap-0.4.9.1 lib/net/imap/authenticators.rb
net-imap-0.4.9 lib/net/imap/authenticators.rb
net-imap-0.4.8 lib/net/imap/authenticators.rb
net-imap-0.4.7 lib/net/imap/authenticators.rb
net-imap-0.4.6 lib/net/imap/authenticators.rb
net-imap-0.4.5 lib/net/imap/authenticators.rb
net-imap-0.4.4 lib/net/imap/authenticators.rb