Sha256: 5f1d3c031f5b0a1e21a95f71a3470bd94f7e2fa4ae4747a0d40f3fba4480a99b
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
module Perkins class Commit attr_reader :sha, :author, :created_at, :message attr_accessor :branch def initialize(sha, repo) return if sha.nil? @commit = repo.git.gcommit(sha) @sha = sha end def author @commit.author.name unless @commit.blank? end def email @commit.author.email unless @commit.blank? end def created_at @commit.author.date unless @commit.blank? end def message @commit.message unless @commit.blank? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
perkins-0.0.1 | lib/perkins/commit.rb |