<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@
 require 'rubygems'
 require &quot;logger&quot;
 require &quot;yaml&quot;
-gem &quot;twitter&quot;, '&gt;=0.2.6'
+gem &quot;twitter&quot;, '&gt;=0.6.6'
 require 'twitter'
 require 'hpricot'
 require 'yaml'
@@ -17,17 +17,18 @@ require 'open-uri'
 # 
 # Another option if you only want to follow your followers is
 # running it off command line like auto_follow.rb admin@example.com password
-# 
+#
 class AutoFollower
   
-  FOLLOW_INTERVAL = 10
+  FOLLOW_INTERVAL = 5
   TWITTER_PAGE_SIZE = 100
   BLACK_LIST = &quot;#{File.dirname(__FILE__)}/black_list.yml&quot;
   
   attr_accessor :black_list
   
-  def initialize(email, password, output = STDOUT, level = Logger::INFO)
-    @twitter = Twitter::Base.new(email, password)
+  def initialize(username, password, output = STDOUT, level = Logger::INFO)
+    httpauth = Twitter::HTTPAuth.new(username, password)
+    @twitter = Twitter::Base.new(httpauth)
     
     output = eval(output) if output.is_a?(String)
     level = eval(level) if level.is_a?(String)
@@ -88,7 +89,7 @@ class AutoFollower
   
     def follow(name, delay = FOLLOW_INTERVAL)
       begin
-        @twitter.create_friendship(name)
+        @twitter.friendship_create(name)
         @log.info &quot;Following: #{name}&quot;
       rescue =&gt; e
         if e.message.include? &quot;403&quot;</diff>
      <filename>auto_follow.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4bb08deddd6f7284c2b123e970727b0a85b8ca2b</id>
    </parent>
  </parents>
  <author>
    <name>Justin Mazzi</name>
    <email>hh@mailheist.com</email>
  </author>
  <url>http://github.com/shenie/auto_follow/commit/32c8f4b7d23861c3df3976dc2cd1568699d1e703</url>
  <id>32c8f4b7d23861c3df3976dc2cd1568699d1e703</id>
  <committed-date>2009-05-01T18:45:12-07:00</committed-date>
  <authored-date>2009-05-01T18:45:12-07:00</authored-date>
  <message>Added twitter &gt;=0.6.6 support</message>
  <tree>8105981aa70e13e4fea460e457aadb2f4dd400c6</tree>
  <committer>
    <name>Justin Mazzi</name>
    <email>hh@mailheist.com</email>
  </committer>
</commit>
