<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/helpers/twitter_helper.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -30,6 +30,11 @@ class ApplicationController &lt; ActionController::Base
       current_user
     end
     
+    # Add login_required to be used by Oauth gem
+    def login_required
+      require_user
+    end
+    
     def require_user
       unless current_user
         store_location</diff>
      <filename>app/controllers/application_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ class OauthConsumersController &lt; ApplicationController
     @consumer_tokens=ConsumerToken.all :conditions=&gt;{:user_id=&gt;current_user.id}
     @services=OAUTH_CREDENTIALS.keys-@consumer_tokens.collect{|c| c.class.service_name}
   end
-  
+
   protected
   
   # Change this to decide where you want to redirect user to after callback is finished.</diff>
      <filename>app/controllers/oauth_consumers_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,14 @@
 %ul
   %li
     %strong Email:
-    = @user.email
\ No newline at end of file
+    = @user.email
+
+- if @user.twitter
+  %h2 Following on Twitter:
+  - @user.twitter.client.friends.each do |friend|
+    = link_to_twitter_image(friend)
+  %br
+  %small= unlink_twitter
+- else
+  %p 
+    =  link_twitter</diff>
      <filename>app/views/users/show.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ ActionController::Routing::Routes.draw do |map|
     post.resources :comments, :only =&gt; :create
   end
 
-  map.resources :oauth_consumers,:member=&gt;{:callback=&gt;:get}
+  map.resources :oauth_consumers, :member =&gt; {:callback=&gt;:get}
 
   map.resources :pages
 </diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -100,4 +100,6 @@
 .comment { padding-left: 0.5em; border-left: 3px solid #C6C6C6; }
 .comment.member { border-color: #B60600; }
 .comment .meta { margin: 0; border: none; font-size: 1em; }
-.comment .meta .author, .comment .meta .author a { color: #B60600; }
\ No newline at end of file
+.comment .meta .author, .comment .meta .author a { color: #B60600; }
+
+.twitter_image { width: 48px; height: 48px; }
\ No newline at end of file</diff>
      <filename>public/stylesheets/application.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>df35e33c254c9dbae7e7fafc05d3662a87811faf</id>
    </parent>
  </parents>
  <author>
    <name>Matt McMahand</name>
    <email>mmcmahand@gmail.com</email>
  </author>
  <url>http://github.com/jdpace/hubbub/commit/ec4e8881274f8b54a54ddecc1c2c069e49c26779</url>
  <id>ec4e8881274f8b54a54ddecc1c2c069e49c26779</id>
  <committed-date>2009-11-04T20:41:36-08:00</committed-date>
  <authored-date>2009-11-04T17:20:52-08:00</authored-date>
  <message>Add Twitter Oauth integration</message>
  <tree>029c3ff8ab06d2d3fdc3bd71f3e12ac7040d5da8</tree>
  <committer>
    <name>Jared Pace</name>
    <email>jared@codewordstudios.com</email>
  </committer>
</commit>
