<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/oauth_consumers_controller.rb</filename>
    </added>
    <added>
      <filename>app/models/consumer_token.rb</filename>
    </added>
    <added>
      <filename>app/views/oauth_consumers/index.html.haml</filename>
    </added>
    <added>
      <filename>app/views/oauth_consumers/show.html.haml</filename>
    </added>
    <added>
      <filename>config/initializers/oauth_consumers.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20091001010106_create_oauth_consumer_tokens.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -20,6 +20,8 @@ Rails::Initializer.run do |config|
   config.gem &quot;haml&quot;
   config.gem &quot;binarylogic-authlogic&quot;, :lib =&gt; 'authlogic', :source =&gt; 'http://gems.github.com'
   config.gem &quot;bluecloth&quot;
+  config.gem &quot;oauth&quot;, :source =&gt; 'http://gems.github.com' #:version =&gt; &quot;0.3.6&quot;
+  config.gem &quot;oauth-plugin&quot;, :source =&gt; 'http://gems.github.com' #:version =&gt; &quot;0.3.12&quot;
   
   # Test related gems
   config.gem &quot;thoughtbot-shoulda&quot;, :lib =&gt; &quot;shoulda&quot;, :source =&gt; &quot;http://gems.github.com&quot;</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,6 @@
 ActionController::Routing::Routes.draw do |map|
+  map.resources :oauth_consumers,:member=&gt;{:callback=&gt;:get}
+
   map.resources :pages
 
   map.resources :users</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,18 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20090909233823) do
+ActiveRecord::Schema.define(:version =&gt; 20091001010106) do
+
+  create_table &quot;consumer_tokens&quot;, :force =&gt; true do |t|
+    t.integer  &quot;user_id&quot;
+    t.string   &quot;type&quot;,       :limit =&gt; 30
+    t.string   &quot;token&quot;,      :limit =&gt; 512
+    t.string   &quot;secret&quot;
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
+
+  add_index &quot;consumer_tokens&quot;, [&quot;token&quot;], :name =&gt; &quot;index_consumer_tokens_on_token&quot;, :unique =&gt; true
 
   create_table &quot;pages&quot;, :force =&gt; true do |t|
     t.string   &quot;title&quot;
@@ -32,16 +43,18 @@ ActiveRecord::Schema.define(:version =&gt; 20090909233823) do
     t.datetime &quot;updated_at&quot;
   end
 
+  add_index &quot;sites&quot;, [&quot;url&quot;], :name =&gt; &quot;index_sites_on_url&quot;
+
   create_table &quot;users&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
-    t.string   &quot;email&quot;,                              :null =&gt; false
-    t.string   &quot;crypted_password&quot;,                   :null =&gt; false
-    t.string   &quot;password_salt&quot;,                      :null =&gt; false
-    t.string   &quot;persistence_token&quot;,                  :null =&gt; false
-    t.string   &quot;single_access_token&quot;,                :null =&gt; false
-    t.string   &quot;perishable_token&quot;,                   :null =&gt; false
-    t.integer  &quot;login_count&quot;,         :default =&gt; 0, :null =&gt; false
-    t.integer  &quot;failed_login_count&quot;,  :default =&gt; 0, :null =&gt; false
+    t.string   &quot;email&quot;,                                  :null =&gt; false
+    t.string   &quot;crypted_password&quot;,                       :null =&gt; false
+    t.string   &quot;password_salt&quot;,                          :null =&gt; false
+    t.string   &quot;persistence_token&quot;,                      :null =&gt; false
+    t.string   &quot;single_access_token&quot;,                    :null =&gt; false
+    t.string   &quot;perishable_token&quot;,                       :null =&gt; false
+    t.integer  &quot;login_count&quot;,         :default =&gt; 0,     :null =&gt; false
+    t.integer  &quot;failed_login_count&quot;,  :default =&gt; 0,     :null =&gt; false
     t.datetime &quot;last_request_at&quot;
     t.datetime &quot;current_login_at&quot;
     t.datetime &quot;last_login_at&quot;
@@ -49,7 +62,12 @@ ActiveRecord::Schema.define(:version =&gt; 20090909233823) do
     t.string   &quot;last_login_ip&quot;
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
-    t.boolean  &quot;admin&quot;
+    t.boolean  &quot;admin&quot;,               :default =&gt; false
   end
 
+  add_index &quot;users&quot;, [&quot;email&quot;], :name =&gt; &quot;index_users_on_email&quot;
+  add_index &quot;users&quot;, [&quot;perishable_token&quot;], :name =&gt; &quot;index_users_on_perishable_token&quot;
+  add_index &quot;users&quot;, [&quot;persistence_token&quot;], :name =&gt; &quot;index_users_on_persistence_token&quot;
+  add_index &quot;users&quot;, [&quot;single_access_token&quot;], :name =&gt; &quot;index_users_on_single_access_token&quot;
+
 end</diff>
      <filename>db/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3ef47033b32e36d69fbc90190447b44c15994fd7</id>
    </parent>
  </parents>
  <author>
    <name>Chris Beck</name>
    <email>chris.beck@me.com</email>
  </author>
  <url>http://github.com/jdpace/hubbub/commit/3259108aaecdba856127a4661a5605f2389a4e82</url>
  <id>3259108aaecdba856127a4661a5605f2389a4e82</id>
  <committed-date>2009-09-30T18:03:32-07:00</committed-date>
  <authored-date>2009-09-30T18:03:32-07:00</authored-date>
  <message>Added oAuth gems and plugin, plus ran generator for oAuth</message>
  <tree>57d760ccf0cdc8eff31b3794e74b11da61522178</tree>
  <committer>
    <name>Chris Beck</name>
    <email>chris.beck@me.com</email>
  </committer>
</commit>
