ambethia-smtp-tls 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/smtp-tls.rb +6 -1
  3. metadata +1 -1
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 1
3
+ :patch: 2
4
4
  :major: 1
@@ -5,7 +5,12 @@ Net::SMTP.class_eval do
5
5
  private
6
6
  def do_start(helodomain, user, secret, authtype)
7
7
  raise IOError, 'SMTP session already started' if @started
8
- check_auth_args user, secret if user or secret
8
+
9
+ if RUBY_VERSION > "1.8.6"
10
+ check_auth_args user, secret if user or secret
11
+ else
12
+ check_auth_args user, secret, authtype if user or secret
13
+ end
9
14
 
10
15
  sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) }
11
16
  @socket = Net::InternetMessageIO.new(sock)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ambethia-smtp-tls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unknown