Huh. It doesn't work for me in 2.0.0 but I don't get the same error as you.
My Gmail does have the connect method.

2.0.0p0 :001 > require 'gmail'
 => true
2.0.0p0 :002 > Gmail.respond_to?("connect")
 => true
2.0.0p0 :003 >

Instead I get the following error when I try to connect
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read
server key exchange B: bad ecpoint
from
/Users/cliff.rosson/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:1454:in
`connect'
from
/Users/cliff.rosson/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:1454:in
`start_tls_session'
from
/Users/cliff.rosson/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:1047:in
`initialize'
from
/Users/cliff.rosson/.rvm/gems/ruby-2.0.0-p0/gems/gmail-0.4.0/lib/gmail/client/base.rb:26:in
`new'
from
/Users/cliff.rosson/.rvm/gems/ruby-2.0.0-p0/gems/gmail-0.4.0/lib/gmail/client/base.rb:26:in
`connect'
from
/Users/cliff.rosson/.rvm/gems/ruby-2.0.0-p0/gems/gmail-0.4.0/lib/gmail.rb:49:in
`new'
from (irb):4
from /Users/cliff.rosson/.rvm/rubies/ruby-2.0.0-p0/bin/irb:16:in `<main>'





On Wed, May 29, 2013 at 10:41 AM, David Munyaka <lists / ruby-forum.com>wrote:

> thanks but it seems like you have a different version of Ruby because I
> am getting an error :in '<main>': Undefined method 'connect' for
> Gmail:Class <NoMethodError>
>
> I am using the code that you provided. Any ideas?
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


-- 
vizualize.me/cliffrosson