Subject: [sup-devel] [PATCH] If the name cannot be parsed out, return "" instead of nil.

From: Pi <[email-masked]>
Date: Sun, 23 Jan 2011 15:04:02 -0800

From: Anthony Martinez <[email-masked]>

This un-breaks some recent change between e0191b4b64e and ec13fa74d that
I haven't tracked down.
---
 lib/sup/person.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/person.rb b/lib/sup/person.rb
index ee23fc5..19459e0 100644
--- a/lib/sup/person.rb
+++ b/lib/sup/person.rb
@@ -103,7 +103,7 @@ class Person
       when /((\S+?)@\S+)/
         [$2, $1]
       else
-        [nil, s]
+        ["", s]
       end
 
     Person.new name, email
-- 
1.6.6

_______________________________________________
Sup-devel mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-devel