lib/luggage/factory.rb in luggage-1.1.0 vs lib/luggage/factory.rb in luggage-1.1.1
- old
+ new
@@ -25,10 +25,10 @@
if args.has_key?(:connection)
@connection = args[:connection]
elsif args.has_key?(:server) && args.has_key?(:xoauth)
@connection = Net::IMAP.new(*Array(args[:server]))
- @connection.authenticate('XOAUTH', *Array(args[:xoauth]))
+ @connection.send(:send_command, "AUTHENTICATE XOAUTH #{Array(args[:xoauth]).join(' ')}")
elsif args.has_key?(:server) && args.has_key?(:login)
@connection = Net::IMAP.new(*Array(args[:server]))
@connection.login(*Array(args[:login]))