repo.or.cz
/
rubygit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
added a timer to gitweb, so I can see if i'm speeding it up
[rubygit.git]
/
lib
/
git
/
author.rb
blob
545abb9bb96af8f8824c63b29c8b62db5247d966
1
module Git
2
class Author
3
attr_accessor :name, :email, :date
4
5
def initialize(author_string)
6
if m = /(.*?) <(.*?)> (\d+) (.*)/.match(author_string)
7
@name = m[1]
8
@email = m[2]
9
@date = Time.at(m[3].to_i)
10
end
11
end
12
13
end
14
end