Sha256: d4748445816fc40d2b12fcb8d64890eafe7d8fb60afded6c89bbbb489ff75470

Contents?: true

Size: 268 Bytes

Versions: 4

Compression:

Stored size: 268 Bytes

Contents

module Git
  class Author
    attr_accessor :name, :email, :date

    def initialize(author_string)
      if m = /(.*?) <(.*?)> (\d+) (.*)/.match(author_string)
        @name = m[1]
        @email = m[2]
        @date = Time.at(m[3].to_i)
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
minad-git-1.1.1 lib/git/author.rb
minad-git-1.1.2 lib/git/author.rb
minad-git-1.1.3 lib/git/author.rb
minad-git-1.1.5 lib/git/author.rb