gmail_smtp icon indicating copy to clipboard operation
gmail_smtp copied to clipboard

Not working on 1.8.7

Open carr opened this issue 15 years ago • 6 comments

Hello, this doesn't seem to be working on Ruby 1.8.7, it breaks in the smtp_tls.rb file.

I created a fix that looks like this, just replace line 9.

if RUBY_VERSION=="1.8.6"
    check_auth_args(user, secret, authtype) if (user or secret)
else
    check_auth_args(user, secret) if (user or secret)
end

carr avatar Dec 03 '09 13:12 carr

Wow I was going to report the same thing. Should have looked here first :( Ruby 1.8.7+ and Rails 2.3+ already support tls so an alternative is to include this plugin only if RUBY_VERSION=="1.8.6" (specified in environment.rb) and specify smtp settings there instead (with :enable_starttls_auto => true). But your fix is definitely the simplest! Thanks

harley avatar Jan 02 '10 01:01 harley

no problem. although I should've probably forked it

carr avatar Jan 02 '10 01:01 carr

Should of looked here first as well! I posted on the google group about modifying it to do pretty much what you said harleyttd...

If its worth anything its here. http://groups.google.com/group/heroku/browse_thread/thread/995ae2093d8f2027#

Cheers,

brent

brentlintner avatar Feb 15 '10 20:02 brentlintner

This is a slightly cleaner fix, which I found in the bluecloth and pg gems:

    if user or secret
        if self.method( :check_auth_args ).arity == 3
            check_auth_args( user, secret, authtype )
        else
            check_auth_args( user, secret )
        end
    end

Much luck!

-Lukas

lukaso avatar Oct 03 '10 21:10 lukaso

+1 for freerobby's fork.

Can we get that pulled and merged?

mokolabs avatar Dec 08 '10 17:12 mokolabs

I had the same problem .. carr's fix worked for me. If this isn't going to be fixed then maybe heroku's help docs should be updated, or maybe the docs shouldn't refer to this plugin?

jaredbeck avatar Dec 28 '10 03:12 jaredbeck