lib/last_commit.rb in last_commit-0.0.2 vs lib/last_commit.rb in last_commit-0.1.0
- old
+ new
@@ -4,9 +4,13 @@
def initialize(git_repository_path, branch)
self.git_repository_path = git_repository_path
self.branch = branch
end
+ def author
+ last_commit.author.name
+ end
+
def message
last_commit.message
end
def sha