From: Cliff Rosson Date: 2013-05-30T03:24:15+09:00 Subject: Re: sending a gmail using ruby --047d7b0724322c8d1004dddf7d7f Content-Type: text/plain; charset=ISO-8859-1 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 `
' On Wed, May 29, 2013 at 10:41 AM, David Munyaka wrote: > thanks but it seems like you have a different version of Ruby because I > am getting an error :in '
': Undefined method 'connect' for > Gmail:Class > > I am using the code that you provided. Any ideas? > > -- > Posted via http://www.ruby-forum.com/. > > -- vizualize.me/cliffrosson --047d7b0724322c8d1004dddf7d7f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Huh. It doesn't work for me in 2.0.0 but I don't g= et the same error as you. My Gmail does have the connect method.

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

Instead I get the following error when I try to connect
OpenSSL::SSL::SSLError: SSL_connect returned=3D1 errno=3D0 state=3DSSL= v3 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.r= osson/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/imap.rb:1454:in `start_t= ls_session'
from /Users/cliff.rosson/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/ima= p.rb:1047:in `initialize'
from /Users/cliff.r= osson/.rvm/gems/ruby-2.0.0-p0/gems/gmail-0.4.0/lib/gmail/client/base.rb:26:= in `new'
f= rom /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.r= osson/.rvm/gems/ruby-2.0.0-p0/gems/gmail-0.4.0/lib/gmail.rb:49:in `new'=
from (irb):4<= /div>
from /Users/cliff.r= osson/.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 'conne= ct' for
Gmail:Class <NoMethodError>

I am using the code that you provided. Any ideas?



--
=
--047d7b0724322c8d1004dddf7d7f--