<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -232,21 +232,22 @@ module HoptoadNotifier
     end
 
     def send_to_hoptoad data #:nodoc:
+      headers = {
+        'Content-type' =&gt; 'application/x-yaml',
+        'Accept' =&gt; 'text/xml, application/xml'
+      }
+
       url = HoptoadNotifier.url
       
-      Net::HTTP::Proxy(
-        HoptoadNotifier.proxy_host, 
-        HoptoadNotifier.proxy_port, 
-        HoptoadNotifier.proxy_user, 
-        HoptoadNotifier.proxy_pass).start(url.host, url.port) do |http|
-        
-        headers = {
-          'Content-type' =&gt; 'application/x-yaml',
-          'Accept' =&gt; 'text/xml, application/xml'
-        }
-        
+      http = Net::HTTP::Proxy(HoptoadNotifier.proxy_host, 
+                              HoptoadNotifier.proxy_port, 
+                              HoptoadNotifier.proxy_user, 
+                              HoptoadNotifier.proxy_pass).new(url.host, url.port)
+
+      http.use_ssl = true
         http.read_timeout = HoptoadNotifier.http_read_timeout
         http.open_timeout = HoptoadNotifier.http_open_timeout
+      http.use_ssl = !!HoptoadNotifier.secure 
 
         response = begin
           http.post(url.path, stringify_keys(data).to_yaml, headers)
@@ -255,12 +256,11 @@ module HoptoadNotifier
           nil
         end
        
-        case response
-        when Net::HTTPSuccess then
-          logger.info &quot;Hoptoad Success: #{response.class}&quot;
-        else
-          logger.error &quot;Hoptoad Failure: #{response.class}\n#{response.body if response.respond_to? :body}&quot;
-        end
+      case response
+      when Net::HTTPSuccess then
+        logger.info &quot;Hoptoad Success: #{response.class}&quot;
+      else
+        logger.error &quot;Hoptoad Failure: #{response.class}\n#{response.body if response.respond_to? :body}&quot;
       end
     end
     </diff>
      <filename>lib/hoptoad_notifier.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,7 @@
 #!/usr/bin/env ruby
 
-# This file must _not_ end in test.rb, or it will get run every time.
 require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;lib&quot;, &quot;hoptoad_notifier&quot;)
 
-#fail ARGV.inspect
 fail &quot;Please supply an API Key as the first argument&quot; if ARGV.empty?
 
 RAILS_ENV = &quot;production&quot;
@@ -12,17 +10,19 @@ RAILS_ROOT = &quot;./&quot;
 host = ARGV[1]
 host ||= &quot;hoptoadapp.com&quot;
 
-HoptoadNotifier.configure do |config|
-  config.host = host
-  config.api_key = ARGV.first
-end
+secure = (ARGV[2] == &quot;secure&quot;)
 
 exception = begin
-              raise 'Testing hoptoad notifier. If you can see this, it works.'
+              raise &quot;Testing hoptoad notifier with secure = #{secure}. If you can see this, it works.&quot;
             rescue =&gt; foo
               foo
             end
 
-puts &quot;Sending notification to project with key #{ARGV.first}&quot;
+HoptoadNotifier.configure do |config|
+  config.secure  = secure
+  config.host    = host
+  config.api_key = ARGV.first
+end
+puts &quot;Sending #{secure or &quot;in&quot;}secure notification to project with key #{ARGV.first}&quot;
 HoptoadNotifier.notify(exception)
 </diff>
      <filename>script/integration_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1f85f70369d194ac11e43c73b23e19fc20e68d41</id>
    </parent>
  </parents>
  <author>
    <name>Tammer Saleh</name>
    <email>tsaleh@thoughtbot.com</email>
  </author>
  <url>http://github.com/pzingg/hoptoad_notifier/commit/58d5dd794f2d9aa4b3e4d376bb7299436d727331</url>
  <id>58d5dd794f2d9aa4b3e4d376bb7299436d727331</id>
  <committed-date>2008-12-18T15:22:45-08:00</committed-date>
  <authored-date>2008-12-18T15:16:36-08:00</authored-date>
  <message>Fixed bug in https support</message>
  <tree>0bd2a161a6274cd4e20c365f3b0f63e8fdacf443</tree>
  <committer>
    <name>Tammer Saleh</name>
    <email>tsaleh@thoughtbot.com</email>
  </committer>
</commit>
