Sha256: 17ec83736dd4b073e6387c480e02c54f8cd4b2fc9d5853659f0b3826451af69f

Contents?: true

Size: 328 Bytes

Versions: 23

Compression:

Stored size: 328 Bytes

Contents

module Imap::Backup
  module Configuration; end

  module Configuration::ConnectionTester
    def self.test(account)
      Account::Connection.new(account).imap
      "Connection successful"
    rescue Net::IMAP::NoResponseError
      "No response"
    rescue StandardError => e
      "Unexpected error: #{e}"
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
imap-backup-4.0.2 lib/imap/backup/configuration/connection_tester.rb
imap-backup-4.0.1 lib/imap/backup/configuration/connection_tester.rb
imap-backup-4.0.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-4.0.0.rc6 lib/imap/backup/configuration/connection_tester.rb
imap-backup-4.0.0.rc5 lib/imap/backup/configuration/connection_tester.rb
imap-backup-4.0.0.rc4 lib/imap/backup/configuration/connection_tester.rb
imap-backup-4.0.0.rc3 lib/imap/backup/configuration/connection_tester.rb
imap-backup-4.0.0.rc2 lib/imap/backup/configuration/connection_tester.rb
imap-backup-4.0.0.rc1 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.4.1 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.4.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.3.1 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.3.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.2.1 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.2.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.1.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.0.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-3.0.0.rc1 lib/imap/backup/configuration/connection_tester.rb
imap-backup-2.2.2 lib/imap/backup/configuration/connection_tester.rb
imap-backup-2.2.1 lib/imap/backup/configuration/connection_tester.rb