]> git.cworth.org Git - sup/commitdiff
make external message ids and temp filenames say "sup" instead of "redwood"
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 12 Jan 2007 23:37:36 +0000 (23:37 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 12 Jan 2007 23:37:36 +0000 (23:37 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@245 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/edit-message-mode.rb

index 7e8b99dda331bce257a18a558f67d43c518c5801..0eace095260690384c051b6797c6f16212893310 100644 (file)
@@ -23,7 +23,7 @@ class EditMessageMode < LineCursorMode
   end
 
   def edit
-    @file = Tempfile.new "redwood.#{self.class.name.camel_to_hyphy}"
+    @file = Tempfile.new "sup.#{self.class.name.gsub(/.*::/, '').camel_to_hyphy}"
     @file.puts header_lines(header - NON_EDITABLE_HEADERS)
     @file.puts
     @file.puts body
@@ -44,7 +44,7 @@ class EditMessageMode < LineCursorMode
 protected
 
   def gen_message_id
-    "<#{Time.now.to_i}-redwood-#{rand 10000}@#{Socket.gethostname}>"
+    "<#{Time.now.to_i}-sup-#{rand 10000}@#{Socket.gethostname}>"
   end
 
   def update