Permalink
Browse files

Fix for author name mishap

  • Loading branch information...
JaSpr committed Apr 1, 2012
1 parent aac559d commit d97a637c2b2c0038b0545085eded31414f9cd87e
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/request/gmail.rb
View
@@ -102,13 +102,10 @@ def process_response
end
def parse_author_tag author
- author_dup = author.split("\n")
- author_dup.first[0] = ""
- author_dup.last[author_dup.last.length - 1] = ""
{
- :name => author_dup.first,
- :email => author_dup.last,
+ :name => author.split("\n").first,
+ :email => author.split("\n").last,
}
end

0 comments on commit d97a637

Please sign in to comment.