<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -87,7 +87,21 @@ describe &quot;CapGun&quot; do
       capistrano = { :current_release =&gt; &quot;/data/foo&quot;, :previous_release =&gt; &quot;/data/foo&quot;, :cap_gun_email_envelope =&gt; {:recipients =&gt; [&quot;joe@example.com&quot;]} }
       CapGun::Mailer.any_instance.expects(:create_body).with(capistrano).returns(&quot;foo&quot;)
       CapGun::Mailer.create_deployment_notification capistrano
+    end
+    
+    it &quot;calls Net::SMTP to send the mail correctly (we test this because SMTP internals changed between 1.8.6 and newer versions of Ruby)&quot; do
+      ActionMailer::Base.smtp_settings = {
+        :address =&gt; &quot;smtp.gmail.com&quot;,
+        :port =&gt; 587,
+        :domain =&gt; &quot;foo.com&quot;,
+        :authentication =&gt; :plain,
+        :user_name =&gt; &quot;username&quot;,
+        :password =&gt; &quot;password&quot;
+      }
       
+      capistrano = { :current_release =&gt; &quot;/data/foo&quot;, :previous_release =&gt; &quot;/data/foo&quot;, :cap_gun_email_envelope =&gt; {:recipients =&gt; [&quot;joe@example.com&quot;]} }
+      Net::SMTP.expects(:start)
+      CapGun::Mailer.deliver_deployment_notification capistrano
     end
   end
   </diff>
      <filename>spec/cap_gun_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,13 @@ Net::SMTP.class_eval do
   private
   def do_start(helodomain, user, secret, authtype)
     raise IOError, 'SMTP session already started' if @started
-    check_auth_args user, secret, authtype if user or secret
+    if user or secret
+      if RUBY_VERSION == &quot;1.8.7&quot;
+        check_auth_args user, secret
+      else
+        check_auth_args user, secret, authtype
+      end
+    end
 
     sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) }
     @socket = Net::InternetMessageIO.new(sock)</diff>
      <filename>vendor/action_mailer_tls/lib/smtp_tls.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b10208aefcd5d13b7b81e4f721a9d59b00da7334</id>
    </parent>
  </parents>
  <author>
    <name>Rob Sanheim</name>
    <email>rsanheim@gmail.com</email>
  </author>
  <url>http://github.com/relevance/cap_gun/commit/5b6866021cd9a7dc9fbc72c466bb1fda600044ea</url>
  <id>5b6866021cd9a7dc9fbc72c466bb1fda600044ea</id>
  <committed-date>2008-10-05T14:17:08-07:00</committed-date>
  <authored-date>2008-10-05T14:17:08-07:00</authored-date>
  <message>small smtp change to support ruby 1.8.7 (and up, hopefully)</message>
  <tree>93253331168bdd5da72d0e3e996357dec90b31b7</tree>
  <committer>
    <name>Rob Sanheim</name>
    <email>rsanheim@gmail.com</email>
  </committer>
</commit>
