cerberus 0.4.5 → 0.4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES CHANGED
@@ -1,5 +1,11 @@
1
1
  = Cerberus Changelog
2
2
 
3
+ == Version 0.4.5.1
4
+ Bugfix for ticket #6
5
+
6
+ * Ruby 1.8.7 SMTP lib changes from Ruby 1.8.6
7
+ * http://cpjolicoeur.lighthouseapp.com/projects/22299-cerberus/tickets/6-error-when-sending-the-email
8
+
3
9
  == Version 0.4.5
4
10
  Update to Maven2 builder
5
11
 
@@ -4,5 +4,5 @@ module Cerberus
4
4
 
5
5
  LOCK_WAIT = 30 * 60 #30 minutes
6
6
 
7
- VERSION = '0.4.5'
7
+ VERSION = '0.4.5.1'
8
8
  end
@@ -5,7 +5,13 @@ 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, authtype if user or secret
8
+
9
+ # Ruby 1.8.7 changes the param list for check_auth_args
10
+ if method( :check_auth_args ).arity == 2
11
+ check_auth_args user, secret if user or secret
12
+ else
13
+ check_auth_args user, secret, authtype if user or secret
14
+ end
9
15
 
10
16
  sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) }
11
17
  @socket = Net::InternetMessageIO.new(sock)
@@ -64,4 +70,4 @@ Net::SMTP.class_eval do
64
70
  rescue EOFError
65
71
  end
66
72
  end
67
- end
73
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cerberus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatol Pomozov
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-10 00:00:00 -04:00
12
+ date: 2009-04-25 00:00:00 -04:00
13
13
  default_executable: cerberus
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency