<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/commentable_methods.rb</filename>
    </added>
    <added>
      <filename>rails/init.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -13,11 +13,21 @@ Install
  
     script/plugin install http://github.com/jackdempsey/acts_as_commentable.git
 
+   * To install as a gem
+   sudo gem install 
+
   Merb/Rails
   
    * To install as a gem:
- 
-   rake install
+    Run the following if you haven't already:
+    gem sources -a http://gems.github.com
+
+    Install the gem(s):
+    sudo gem install jackdempsey-acts_as_commentable
+
+    add the folloowing line to your environment.rb
+    config.gem 'jackdempsey-acts_as_commentable', :lib =&gt; 'acts_as_commentable', :source =&gt; &quot;http://gems.github.com&quot;
+   
  
  Generate your comment model:
  </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
 
 PLUGIN = &quot;acts_as_commentable&quot;
 GEM = &quot;acts_as_commentable&quot;
-GEM_VERSION = &quot;2.0.0&quot;
+GEM_VERSION = &quot;2.0.3&quot;
 EMAIL = &quot;unknown@juixe.com&quot;
 HOMEPAGE = &quot;http://www.juixe.com/techknow/index.php/2006/06/18/acts-as-commentable-plugin/&quot;
 SUMMARY = &quot;Plugin/gem that provides comment functionality&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,16 +2,16 @@
 
 Gem::Specification.new do |s|
   s.name = %q{acts_as_commentable}
-  s.version = &quot;2.0.0&quot;
+  s.version = &quot;2.0.3&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Cosmin Radoi, Jack Dempsey, Xelipe, Chris Eppstein&quot;]
   s.autorequire = %q{acts_as_commentable}
-  s.date = %q{2009-05-22}
+  s.date = %q{2009-06-04}
   s.description = %q{Plugin/gem that provides comment functionality}
   s.email = %q{unknown@juixe.com}
   s.extra_rdoc_files = [&quot;README&quot;, &quot;MIT-LICENSE&quot;]
-  s.files = [&quot;MIT-LICENSE&quot;, &quot;README&quot;, &quot;generators/comment&quot;, &quot;generators/comment/comment_generator.rb&quot;, &quot;generators/comment/templates&quot;, &quot;generators/comment/templates/comment.rb&quot;, &quot;generators/comment/templates/create_comments.rb&quot;, &quot;lib/acts_as_commentable.rb&quot;, &quot;lib/comment_methods.rb&quot;, &quot;tasks/acts_as_commentable_tasks.rake&quot;, &quot;init.rb&quot;, &quot;install.rb&quot;]
+  s.files = [&quot;MIT-LICENSE&quot;, &quot;README&quot;, &quot;generators/comment&quot;, &quot;generators/comment/comment_generator.rb&quot;, &quot;generators/comment/templates&quot;, &quot;generators/comment/templates/comment.rb&quot;, &quot;generators/comment/templates/create_comments.rb&quot;, &quot;lib/acts_as_commentable.rb&quot;, &quot;lib/commentable_methods.rb&quot;, &quot;lib/comment_methods.rb&quot;, &quot;tasks/acts_as_commentable_tasks.rake&quot;, &quot;init.rb&quot;, &quot;install.rb&quot;]
   s.homepage = %q{http://www.juixe.com/techknow/index.php/2006/06/18/acts-as-commentable-plugin/}
   s.require_paths = [&quot;lib&quot;]
   s.rubygems_version = %q{1.3.3}</diff>
      <filename>acts_as_commentable.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1 @@
-# Include hook code here
-require 'acts_as_commentable'
-require 'comment_methods'
-
+require File.join(File.dirname(__FILE__), 'rails', 'init')
\ No newline at end of file</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,66 +1,2 @@
-require 'activerecord'
-
-# ActsAsCommentable
-module Juixe
-  module Acts #:nodoc:
-    module Commentable #:nodoc:
-
-      def self.included(base)
-        base.extend ClassMethods  
-      end
-
-      module ClassMethods
-        def acts_as_commentable
-          has_many :comments, :as =&gt; :commentable, :dependent =&gt; :destroy, :order =&gt; 'created_at ASC'
-          include Juixe::Acts::Commentable::InstanceMethods
-          extend Juixe::Acts::Commentable::SingletonMethods
-        end
-      end
-      
-      # This module contains class methods
-      module SingletonMethods
-        # Helper method to lookup for comments for a given object.
-        # This method is equivalent to obj.comments.
-        def find_comments_for(obj)
-          commentable = ActiveRecord::Base.send(:class_name_of_active_record_descendant, self).to_s
-         
-          Comment.find(:all,
-            :conditions =&gt; [&quot;commentable_id = ? and commentable_type = ?&quot;, obj.id, commentable],
-            :order =&gt; &quot;created_at DESC&quot;
-          )
-        end
-        
-        # Helper class method to lookup comments for
-        # the mixin commentable type written by a given user.  
-        # This method is NOT equivalent to Comment.find_comments_for_user
-        def find_comments_by_user(user) 
-          commentable = ActiveRecord::Base.send(:class_name_of_active_record_descendant, self).to_s
-          
-          Comment.find(:all,
-            :conditions =&gt; [&quot;user_id = ? and commentable_type = ?&quot;, user.id, commentable],
-            :order =&gt; &quot;created_at DESC&quot;
-          )
-        end
-      end
-      
-      # This module contains instance methods
-      module InstanceMethods
-        # Helper method to sort comments by date
-        def comments_ordered_by_submitted
-          Comment.find(:all,
-            :conditions =&gt; [&quot;commentable_id = ? and commentable_type = ?&quot;, id, self.type.name],
-            :order =&gt; &quot;created_at DESC&quot;
-          )
-        end
-        
-        # Helper method that defaults the submitted time.
-        def add_comment(comment)
-          comments &lt;&lt; comment
-        end
-      end
-      
-    end
-  end
-end
-
-ActiveRecord::Base.send(:include, Juixe::Acts::Commentable)
\ No newline at end of file
+require 'commentable_methods'
+require 'comment_methods'</diff>
      <filename>lib/acts_as_commentable.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4f7ccfb7b8c4b5aabcd418e5f093b0773376692f</id>
    </parent>
  </parents>
  <author>
    <name>Matthew Van Horn</name>
    <email>mattvanhorn@Ringo.local</email>
  </author>
  <url>http://github.com/jackdempsey/acts_as_commentable/commit/f00239453e327f77072362df2fffe6bf35173f33</url>
  <id>f00239453e327f77072362df2fffe6bf35173f33</id>
  <committed-date>2009-07-01T09:53:00-07:00</committed-date>
  <authored-date>2009-06-04T09:14:10-07:00</authored-date>
  <message>added rails/init.rb to make using as a frozen gem easier

changed lib filenames to be more standard for use in rails apps

moved version number so github will build my version

fixed file list

fixed requires

Fixed gem version number and GemPlugin includes</message>
  <tree>b90195e44d03a123308a74c82214d5ff10a62ffa</tree>
  <committer>
    <name>Jack Dempsey</name>
    <email>jack.dempsey@gmail.com</email>
  </committer>
</commit>
