<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>db/migrate/20090826125345_remove_description_from_convos.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -23,3 +23,4 @@ attachments
 *.log
 coverage.data
 coverage/*
+*.swp</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,10 @@
 class ConversationsController &lt; ApplicationController
-  
-  before_filter :login_or_oauth_required, :except =&gt; [:index, :show, :auto_complete_for_conversation_name, :complete_name]                                            
-  before_filter :find_conversation, :except =&gt; [:bookmarked, :complete_name, :create, :spawn, :new, :index, :new_messages]
+
+  before_filter :login_or_oauth_required,
+    :except =&gt; [:index, :show, :auto_complete_for_conversation_name, :complete_name]
+  before_filter :find_conversation, 
+    :except =&gt; [:bookmarked, :complete_name, :create, :spawn, :new, :index, :new_messages]
   before_filter :check_read_access, :only =&gt; [:show]
-  
   after_filter :store_location, :only =&gt; [:show, :new]
   
   auto_complete_for :conversation, :name # multiple scopes can be chained like 'published.readonly'
@@ -51,17 +52,12 @@ class ConversationsController &lt; ApplicationController
     @conversation = Conversation.new
     if params[:message_id]
       @message = Message.find(params[:message_id])
-
       if current_user.conversations.find_by_parent_message_id( @message.id )
         flash[:error] = t(&quot;conversations.already_spawned_warning&quot;)
         redirect_to conversation_path(@message.conversation_id)
         return
       end
-
       @conversation.parent_message_id = @message.id
-      @conversation.description = %Q(
-#{ t( &quot;conversations.user_spawned_convo_description&quot;, :login =&gt; current_user.login, :original_message_link =&gt; conversation_message_url(@message.conversation_id, @message) ) }
-      )
     end
     respond_to do |format|
       format.html # new.html.erb
@@ -89,8 +85,6 @@ class ConversationsController &lt; ApplicationController
           # now add the attachment markup to the copied message if the original message has an attachment
           copied_message.message_html = @conversation.parent_message.attachment_markup + copied_message.message_html if @conversation.parent_message.has_attachment?            
           copied_message.save
-        else # create a first message that is the same as the convo description
-          message = current_user.messages.create!( :conversation =&gt; @conversation, :message =&gt; @conversation.description)
         end
         
         # now let's create a system message and send it to the the creator's followers
@@ -323,4 +317,4 @@ private
     end
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>app/controllers/conversations_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,6 @@
 #  parent_message_id   :integer(4)
 #  user_id             :integer(4)
 #  delta               :boolean(1)
-#  description         :text(16777215)
 #  messages_count      :integer(4)      default(0)
 #  name                :string(255)
 #  private             :boolean(1)
@@ -42,38 +41,23 @@ class Conversation &lt; ActiveRecord::Base
     :limit =&gt; 10
 
   validates_presence_of     :name
-  validates_uniqueness_of   :name,                       :unless =&gt; :spawned?
-  validates_length_of       :name,    :within =&gt; 3..100
-  validates_presence_of     :description
-  validates_length_of       :description, :maximum =&gt; 10000
+  validates_uniqueness_of   :name,      :unless =&gt; :spawned?
+  validates_length_of       :name,      :within =&gt; 3..100
   validates_format_of       :something, :with =&gt; /^$/ # anti spam, honeypot field must be blank
   validates_presence_of     :uuid
-  
+
   named_scope :non_private, :conditions =&gt; { :private =&gt; false }
   named_scope :no_owned_by, lambda { |user_id| { :conditions =&gt; ['conversations.user_id &lt;&gt; ?', user_id] }}
-  
+
   # sphinx index
   define_index do
     indexes :name
-    indexes description
     has created_at
     set_property :delta =&gt; :delayed
   end
-  
-  ##
-  # class methods
-  #
-  # def self.add_personal(user)
-  #   name = user.name || user.login
-  #   desc = &quot;This is a personal conversation for #{name}. If you wish to collaborate with #{name}, do it here.&quot;
-  #   convo = user.conversations.create(:name =&gt; user.login, :personal_conversation =&gt; true, :description =&gt; desc)
-  #   convo.tag_list.add(&quot;personal_convo&quot;)
-  #   convo.save
-  #   convo
-  # end
 
   def self.most_popular
-    #conversations = ConversationVisit.find(:all, :conditions =&gt; [&quot;updated_at &gt;= ?&quot;, Date.today - 30.days ], :group =&gt; :conversation_id, :order =&gt; &quot;visits_count DESC&quot;, :limit =&gt; 10).map { |convo_visit| convo_visit.conversation }          
+    #conversations = ConversationVisit.find(:all, :conditions =&gt; [&quot;updated_at &gt;= ?&quot;, Date.today - 30.days ], :group =&gt; :conversation_id, :order =&gt; &quot;visits_count DESC&quot;, :limit =&gt; 10).map { |convo_visit| convo_visit.conversation }
     #conversations
     Conversation.find(:all, :order =&gt; &quot;posted_at DESC&quot;, :limit =&gt; 10)
   end
@@ -85,47 +69,43 @@ class Conversation &lt; ActiveRecord::Base
     ConversationVisit.find(:first, :group =&gt; :conversation_id, :conditions =&gt; [&quot;conversation_id = ?&quot;, self.id]).visits_count
   end
 
-  def owner 
+  def owner
     self.user
   end
-  
+
   def escaped_name
     escaped(self.name)
   end
 
-  def escaped_description
-    escaped(self.description)
-  end
-  
   def followed_by?(user)
     self.subscriptions.find_by_user_id( user.id ).nil? ? false : true
   end
-  
+
   def readable_by?(user)
     return false if user.blank?
     self.owner == user ||
     !self.private? ||
     self.followed_by?(user)
   end
-  
+
   def writable_by?(user)
     self.owner == user || 
     ( !self.read_only &amp;&amp; !self.private? ) ||
     ( self.private? &amp;&amp; self.followed_by?(user) &amp;&amp; !self.read_only )
   end
-    
+
   def private?
     self.private
   end
-  
+
   def public?
     !self.private
   end
-  
+
   def spawned?
     !self.parent_message_id.nil?
   end
-      
+
   def add_visit(user)
     if cv = ConversationVisit.find_by_user_id_and_conversation_id(user.id, self.id)
       cv.increment!( :visits_count ) 
@@ -159,7 +139,7 @@ class Conversation &lt; ActiveRecord::Base
   def messages_before(first_message_id)
     self.messages.published.find(:all, :include =&gt; [:user], :conditions =&gt; [&quot;id &lt; ?&quot;, first_message_id], :limit =&gt; 100, :order =&gt; 'id DESC')
   end
-  
+
   def has_messages_before?(first_message)
     return false if(first_message == nil)
     messages = self.messages.published.find(:first, :conditions =&gt; [&quot;id &lt; ?&quot;, first_message.id], :order =&gt; 'id DESC') 
@@ -169,39 +149,39 @@ class Conversation &lt; ActiveRecord::Base
   def messages_after(last_message_id)
    self.messages.published.find(:all, :include =&gt; [:user], :conditions =&gt; [&quot;id &gt; ?&quot;, last_message_id], :limit =&gt; 100, :order =&gt; 'id ASC').reverse
   end
-  
+
   def has_messages_after?(last_message)
     return false if(last_message == nil)
-    messages = self.messages.published.find(:first, :conditions =&gt; [&quot;id &gt; ?&quot;, last_message.id], :order =&gt; 'id ASC') 
+    messages = self.messages.published.find(:first, :conditions =&gt; [&quot;id &gt; ?&quot;, last_message.id], :order =&gt; 'id ASC')
     messages ? true : false
   end
 
-  def after_create 
+  def after_create
     owner.follow(self)
-    self.user.tag(self, :with =&gt; self.tag_list.to_s  + &quot;, &quot; + self.user.login, :on =&gt; :tags)    
+    self.user.tag(self, :with =&gt; self.tag_list.to_s  + &quot;, &quot; + self.user.login, :on =&gt; :tags)
   end
-  
+
   def date_time12
     self.created_at.strftime '%m/%d/%Y %I:%M%p'
   end
-  
+
   def to_param
     &quot;#{id}-#{name.parameterize}&quot;
   end
-  
+
   def reset_uuid!
     generate_uuid
     self.save
   end
-  
+
   def generate_uuid
     self.uuid = UUID.create_v4.to_s
   end
-  
+
 private
 
   def escaped(value)
     value.gsub(/&quot;/, '&amp;quot;').gsub(/'/, '.').gsub(/(\r\n|\n|\r)/,' &lt;br /&gt;')
   end
-  
+
 end</diff>
      <filename>app/models/conversation.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,6 @@
 &lt;li class=&quot;conversation&quot;&gt;
-	&lt;h3&gt;&lt;%= render :partial =&gt; 'conversations/star', :locals =&gt; { :conversation =&gt; conversation } %&gt; &lt;% if conversation.private? %&gt;&lt;%= image_tag(&quot;/images/icons/icono_candado.gif&quot;) %&gt; &lt;% end %&gt;&lt;%= link_to h(conversation.name), conversation_path(conversation) %&gt;&lt;/h3&gt;
+  &lt;h3&gt;&lt;%= render :partial =&gt; 'conversations/star', :locals =&gt; { :conversation =&gt; conversation } %&gt; &lt;% if conversation.private? %&gt;&lt;%= image_tag(&quot;/images/icons/icono_candado.gif&quot;) %&gt; &lt;% end %&gt;&lt;%= link_to h(conversation.name), conversation_path(conversation) %&gt;&lt;/h3&gt;
 
-	&lt;div class=&quot;description&quot;&gt;&lt;%= conversation.escaped_description %&gt;&lt;/div&gt;
-	
 	&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
 	
 	&lt;span class=&quot;quiet small&quot;&gt;</diff>
      <filename>app/views/conversations/_conversation.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -15,10 +15,6 @@
     &lt;/p&gt;
     &lt;p&gt;&lt;%= f.check_box :private %&gt; &lt;%= f.label t(&quot;ui.private_convo&quot;) %&gt;&lt;/p&gt;
     &lt;p&gt;
-      &lt;%= f.label t(&quot;ui.description&quot;) %&gt;&lt;br /&gt;
-      &lt;%= f.text_area :description, :rows =&gt; 8, :cols =&gt; 60 %&gt;
-    &lt;/p&gt;
-    &lt;p&gt;
       &lt;%= f.submit t(&quot;ui.create&quot;) %&gt;
     &lt;/p&gt;
   &lt;% end %&gt;</diff>
      <filename>app/views/conversations/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -16,10 +16,6 @@
       &lt;%= f.text_field :name %&gt;
     &lt;/p&gt;
     &lt;p&gt;
-      &lt;%= f.label t(&quot;ui.description&quot;) %&gt;&lt;br /&gt;
-      &lt;%= f.text_area :description, :rows =&gt; 8, :cols =&gt; 60 %&gt;
-    &lt;/p&gt;
-    &lt;p&gt;
       &lt;%= f.submit t(&quot;ui.create&quot;) %&gt;
     &lt;/p&gt;
   &lt;% end %&gt;
@@ -30,4 +26,4 @@
 &lt;br/&gt;
 &lt;hr/&gt;
 &lt;h4&gt;&lt;%= t(&quot;messages.original_message&quot;) %&gt;&lt;/h4&gt;
-&lt;%= render :partial =&gt; 'messages/message', :locals =&gt; {:message =&gt; @message} %&gt;
\ No newline at end of file
+&lt;%= render :partial =&gt; 'messages/message', :locals =&gt; {:message =&gt; @message} %&gt;</diff>
      <filename>app/views/conversations/spawn.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -17,8 +17,6 @@
           &lt;li&gt;
             &lt;%= link_to highlight(h(conversation.name), params[:q].split), conversation_path(conversation) %&gt;
             &lt;br/&gt;
-            &lt;%= highlight(conversation.escaped_description, params[:q].split) %&gt;
-            &lt;br/&gt;
             &lt;span class=&quot;quiet small&quot;&gt;&lt;%= conversation.date_time12 %&gt;&lt;/span&gt;
           &lt;/li&gt;
         &lt;% end %&gt;
@@ -48,4 +46,4 @@
     &lt;/div&gt;
     
   &lt;/div&gt;
-&lt;/div&gt;
\ No newline at end of file
+&lt;/div&gt;</diff>
      <filename>app/views/convosearches/create.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@
   &lt;div id=&quot;convos_links&quot; class=&quot;padding5&quot;&gt;
 	  &lt;h4&gt;
 	    &lt;% if @conversation.private? %&gt;&lt;%= image_tag(&quot;/images/icons/icono_candado.gif&quot;) %&gt; &lt;% end %&gt;
-	  	&lt;% if @conversation.read_only %&gt;&lt;span class=&quot;highlight&quot;&gt;&lt;%= t(&quot;ui.read_only&quot;) %&gt;&lt;/span&gt; &lt;% end %&gt;&lt;%= link_to h(@conversation.name), conversation_path(@conversation), :class =&gt; 'tip', :title =&gt; @conversation.escaped_description %&gt;
+	  	&lt;% if @conversation.read_only %&gt;&lt;span class=&quot;highlight&quot;&gt;&lt;%= t(&quot;ui.read_only&quot;) %&gt;&lt;/span&gt; &lt;% end %&gt;&lt;%= link_to h(@conversation.name), conversation_path(@conversation) %&gt;
 	  &lt;/h4&gt;
 	  
 	  &lt;%= render :partial =&gt; 'conversations/star', :locals =&gt; { :conversation =&gt; @conversation } %&gt;</diff>
      <filename>app/views/messages/_convo_controls.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 &lt;li class=&quot;conversation_for_user&quot; id=&quot;&lt;%= dom_id conversation%&gt;&quot;&gt;	
-	&lt;%= link_to h(conversation.name), conversation_path(conversation), :class =&gt; 'tip', :title =&gt; conversation.escaped_description %&gt;
-&lt;/li&gt;
\ No newline at end of file
+	&lt;%= link_to h(conversation.name), conversation_path(conversation) %&gt;
+&lt;/li&gt;</diff>
      <filename>app/views/users/_conversation.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@
 	&lt;b&gt;&lt;%= t(&quot;ui.my_conversations&quot;) %&gt;:&lt;/b&gt;&lt;br/&gt;
 	&lt;ul&gt;
 		&lt;% current_user.subscribed_conversations.each do |conversation| %&gt;
-		&lt;li&gt;&lt;%= link_to h(conversation.escaped_name), conversation_path(conversation), :class =&gt; 'tip', :title =&gt; conversation.escaped_description %&gt;&lt;/li&gt;
+		&lt;li&gt;&lt;%= link_to h(conversation.escaped_name), conversation_path(conversation) %&gt;&lt;/li&gt;
 		&lt;% end %&gt;
 	&lt;/ul&gt;
 	&lt;%end%&gt;</diff>
      <filename>app/views/users/_my_conversations.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;%if(subscription.conversation != @conversation) %&gt;
 	&lt;div class=&quot;subscription_for_user&quot; id=&quot;CONVERSATION_NOTIFY_CHANNEL_&lt;%=subscription.conversation.id%&gt;&quot;&gt;	
-		&lt;span class=&quot;msgcount&quot;&gt;&lt;%= subscription.new_messages_count %&gt;&lt;/span&gt; &lt;%= link_to subscription.conversation.escaped_name, conversation_path(subscription.conversation), :class =&gt; 'tip', :title =&gt; subscription.conversation.escaped_description %&gt;
+		&lt;span class=&quot;msgcount&quot;&gt;&lt;%= subscription.new_messages_count %&gt;&lt;/span&gt; &lt;%= link_to subscription.conversation.escaped_name, conversation_path(subscription.conversation) %&gt;
 	&lt;/div&gt;
 &lt;%end%&gt;</diff>
      <filename>app/views/users/_subscription.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -55,7 +55,6 @@ end
 
 Factory.define :conversation do |conversation|
   conversation.name { Factory.next :name }
-  conversation.description &quot;this is a test conversation that serves no other purpose but test&quot;
   conversation.association :user
   conversation.uuid { Factory.next :uuid }
 end</diff>
      <filename>test/factories.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,6 @@
 #  parent_message_id   :integer(4)
 #  user_id             :integer(4)
 #  delta               :boolean(1)
-#  description         :text(16777215)
 #  messages_count      :integer(4)      default(0)
 #  name                :string(255)
 #  private             :boolean(1)
@@ -25,7 +24,6 @@
 #
 crossblaim_convo:
   name: &quot;crossblaim convo&quot;
-  description: &quot;this is a convo for crossblaim&quot;
   read_only: false
   private: false
   user: crossblaim
@@ -36,7 +34,6 @@ crossblaim_convo:
   
 dmitry_convo:
   name: &quot;dmitry convo&quot;
-  description: &quot;this is a convo for dmitry&quot;
   read_only: false
   private: false
   user: dmitry
@@ -47,7 +44,6 @@ dmitry_convo:
   
 akira_convo:
   name: &quot;akira convo&quot;
-  description: &quot;this is a convo for akira&quot;
   read_only: false
   private: false
   user: akira
@@ -58,7 +54,6 @@ akira_convo:
   
 crossblaim_test_public_convo:
   name: &quot;crossblaim test public convo&quot;
-  description: &quot;this is a test public convo for crossblaim&quot;
   read_only: false
   private: false
   user: crossblaim
@@ -69,11 +64,10 @@ crossblaim_test_public_convo:
   
 crossblaim_test_private_convo:
   name: &quot;crossblaim test private convo&quot;
-  description: &quot;this is a test private convo for crossblaim&quot;
   read_only: false
   private: true
   user: crossblaim
   # abuse_report
   # parent_message
   something: &quot;&quot;
-  uuid: &quot;d01b270f-e9d1-4d57-8f81-ef7901ba4373&quot;
\ No newline at end of file
+  uuid: &quot;d01b270f-e9d1-4d57-8f81-ef7901ba4373&quot;</diff>
      <filename>test/fixtures/conversations.yml</filename>
    </modified>
    <modified>
      <diff>@@ -209,7 +209,7 @@ class MessagesControllerTest &lt; ActionController::TestCase
     setup do
       @u2 = Factory.create( :user )
       @c2 = Factory.create( :conversation, :user =&gt; @u2 )
-      Conversation.expects( :find ).with( @c2.id.to_s ).returns( @c2 )
+      Conversation.expects( :find ).returns( @c2 )
       Message.any_instance.stubs( :save ).returns( true )
     end
 </diff>
      <filename>test/functional/messages_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ class FollowersNotificationTest &lt; ActionController::IntegrationTest
       post_via_redirect &quot;/user_session&quot;, :user_session =&gt; { :login =&gt; &quot;crossblaim&quot;, :password =&gt; &quot;secret&quot; }
       assert_response :success
       # create a new convo
-      post_via_redirect &quot;/conversations&quot;, :conversation =&gt; { :name =&gt; 'new crossblaim convo', :description =&gt; 'test convo'}
+      post_via_redirect &quot;/conversations&quot;, :conversation =&gt; { :name =&gt; 'new crossblaim convo' }
       assert_response :success
       assert_equal &quot;Conversation was successfully created.&quot;, flash[:notice]
       # the actual messages for this convo are requested in js after the page loads
@@ -28,4 +28,4 @@ class FollowersNotificationTest &lt; ActionController::IntegrationTest
     end  
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>test/integration/followers_notification_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,12 +7,12 @@ class SingleAccessTokenTest &lt; ActionController::IntegrationTest
   end
   context &quot;creating a convo&quot; do
     should &quot;don't create a convo&quot; do
-      post_via_redirect &quot;/conversations&quot;, :conversation =&gt; { :name =&gt; 'new crossblaim convo', :description =&gt; 'test convo'}
+      post_via_redirect &quot;/conversations&quot;, :conversation =&gt; { :name =&gt; 'new crossblaim convo' }
       assert_template &quot;user_sessions/new.html.erb&quot;
     end
     
     should &quot;create a convo&quot; do
-      post_via_redirect &quot;/conversations&quot;, :conversation =&gt; { :name =&gt; 'new crossblaim convo', :description =&gt; 'test convo'}, :user_credentials =&gt; users(:crossblaim).single_access_token
+      post_via_redirect &quot;/conversations&quot;, :conversation =&gt; { :name =&gt; 'new crossblaim convo' }, :user_credentials =&gt; users(:crossblaim).single_access_token
       assert_template &quot;conversations/show.html.erb&quot;
       assert_response :success
       assert_equal &quot;Conversation was successfully created.&quot;, flash[:notice]
@@ -39,4 +39,4 @@ class SingleAccessTokenTest &lt; ActionController::IntegrationTest
     
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>test/integration/single_access_token_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,6 @@
 #  parent_message_id   :integer(4)
 #  user_id             :integer(4)
 #  delta               :boolean(1)
-#  description         :text(16777215)
 #  messages_count      :integer(4)      default(0)
 #  name                :string(255)
 #  private             :boolean(1)
@@ -46,7 +45,6 @@ class ConversationTest &lt; ActiveSupport::TestCase
     subject { @conversation }
     
     should_validate_presence_of :uuid
-    should_validate_presence_of :name, :description
     should_validate_uniqueness_of :name
 
     should_have_db_index :name
@@ -224,7 +222,7 @@ class ConversationTest &lt; ActiveSupport::TestCase
   context &quot;A regular conversation instance&quot; do
     setup do
       @user = Factory.create( :user )
-      @conversation = Factory.create( :conversation, :user =&gt; @user, :name =&gt; 'Convo name', :description =&gt; 'convo description' )
+      @conversation = Factory.create( :conversation, :user =&gt; @user, :name =&gt; 'Convo name' )
     end
 
     should &quot;respond to #owner&quot; do</diff>
      <filename>test/unit/conversation_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fbf8bc6258cfe596f78408bd16e98ea085f64fb2</id>
    </parent>
  </parents>
  <author>
    <name>Claudio Perez Gamayo</name>
    <email>crossblaim@gmail.com</email>
  </author>
  <url>http://github.com/dmitryame/echowaves/commit/8f0ba1f244ffb18078a409fb160076161c904b9c</url>
  <id>8f0ba1f244ffb18078a409fb160076161c904b9c</id>
  <committed-date>2009-08-26T06:48:46-07:00</committed-date>
  <authored-date>2009-08-26T06:48:46-07:00</authored-date>
  <message>Remove convo description and fix two failing tests</message>
  <tree>ee6714ef65d389e30ec1ba9932b0dc6753a1d425</tree>
  <committer>
    <name>Claudio Perez Gamayo</name>
    <email>crossblaim@gmail.com</email>
  </committer>
</commit>
