<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/acts_as_follower_test.rb</filename>
    </added>
    <added>
      <filename>test/fixtures/band.rb</filename>
    </added>
    <added>
      <filename>test/fixtures/bands.yml</filename>
    </added>
    <added>
      <filename>test/follow_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,2 @@
-test/debug.log
\ No newline at end of file
+test/debug.log
+coverage
\ No newline at end of file</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -20,3 +20,17 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
   rdoc.rdoc_files.include('README')
   rdoc.rdoc_files.include('lib/**/*.rb')
 end
+
+namespace :rcov do
+
+  desc &quot;Generate a coverage report in coverage/&quot;
+  task :gen do
+    sh &quot;rcov --output coverage test/*_test.rb&quot;
+  end
+
+  desc &quot;Remove generated coverage files.&quot;
+  task :clobber do
+    sh &quot;rm -rdf coverage&quot;
+  end
+
+end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
-require 'acts_as_follower'
-require 'acts_as_followable'
-require 'follow.rb'
+require 'lib/acts_as_follower'
+require 'lib/acts_as_followable'
+require 'lib/follow'
 
 ActiveRecord::Base.send(:include, ActiveRecord::Acts::Follower)
 ActiveRecord::Base.send(:include, ActiveRecord::Acts::Followable)</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,18 +10,13 @@ module ActiveRecord
         def acts_as_follower
           has_many :follows, :as =&gt; :follower, :dependent =&gt; :nullify  # If a following entity is deleted, keep the follows. 
           include ActiveRecord::Acts::Follower::InstanceMethods
-          extend  ActiveRecord::Acts::Follower::SingletonMethods
         end
       end
       
-      # This module contains class methods
-      module SingletonMethods
-        
-      end
-      
       # This module contains instance methods
       module InstanceMethods
         
+        # Returns true if this instance is following the object passed as an argument.
         def following?(followable)
           0 &lt; Follow.count(:all, :conditions =&gt; [
                 &quot;follower_id = ? AND follower_type = ? AND followable_id = ? AND followable_type = ?&quot;,
@@ -29,10 +24,13 @@ module ActiveRecord
                ])
         end
         
+        # Returns the number of objects this instance is following.
         def follow_count
           Follow.count(:all, :conditions =&gt; [&quot;follower_id = ? AND follower_type = ?&quot;, self.id, self.class.name])
         end
         
+        # Creates a new follow record for this instance to follow the passed object.
+        # Does not allow duplicate records to be created.
         def follow(followable)
           follow = get_follow(followable)
           unless follow
@@ -40,6 +38,7 @@ module ActiveRecord
           end
         end
         
+        # Deletes the follow record if it exists.
         def stop_following(followable)
           follow = get_follow(followable)
           if follow
@@ -47,16 +46,19 @@ module ActiveRecord
           end
         end
         
+        # Returns the follow records related to this instance by type.
         def follows_by_type(followable_type)
           Follow.find(:all, :conditions =&gt; [&quot;follower_id = ? AND follower_type = ? AND followable_type = ?&quot;, self.id, self.class.name, followable_type])
         end
         
+        # Returns the follow records related to this instance by type.
         def all_follows
           Follow.find(:all, :conditions =&gt; [&quot;follower_id = ? AND follower_type = ?&quot;, self.id, self.class.name])
         end
         
         private
         
+        # Returns a follow record for the current instance and followable object.
         def get_follow(followable)
           Follow.find(:first, :conditions =&gt; [&quot;follower_id = ? AND follower_type = ? AND followable_id = ? AND followable_type = ?&quot;, self.id, self.class.name, followable.id, followable.class.name])
         end</diff>
      <filename>lib/acts_as_follower.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,13 @@
-one:
+user:
   id: 1
   followable_id: 1
   followable_type: User
   follower_id: 2
+  follower_type: User
+  
+band:
+  id: 2
+  followable_id: 1
+  followable_type: Band
+  follower_id: 2
   follower_type: User
\ No newline at end of file</diff>
      <filename>test/fixtures/follows.yml</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,8 @@ ActiveRecord::Schema.define :version =&gt; 0 do
     t.string   &quot;followable_type&quot;, :null =&gt; false
     t.integer  &quot;follower_id&quot;,     :null =&gt; false
     t.string   &quot;follower_type&quot;,   :null =&gt; false
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
   end
   
   create_table :users, :force =&gt; true do |t|</diff>
      <filename>test/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b96b63ef2704064fdc395fe4d17c4ae92a5ed4e5</id>
    </parent>
  </parents>
  <author>
    <name>Douglas F Shearer</name>
    <email>dougal.s@gmail.com</email>
  </author>
  <url>http://github.com/tcocca/acts_as_follower/commit/03a58f530ab993f24f33a733d08f16598d8b7fbc</url>
  <id>03a58f530ab993f24f33a733d08f16598d8b7fbc</id>
  <committed-date>2008-10-31T10:08:26-07:00</committed-date>
  <authored-date>2008-10-31T10:08:26-07:00</authored-date>
  <message>Added remaining test files.
Added rcov rake tasks.</message>
  <tree>be35360b8a2da6ab49901bdb47d5bcb6ce6cb06b</tree>
  <committer>
    <name>Douglas F Shearer</name>
    <email>dougal.s@gmail.com</email>
  </committer>
</commit>
