lib/gitmine.rb in gitmine-0.1.9 vs lib/gitmine.rb in gitmine-0.1.10

- old
+ new

@@ -7,10 +7,11 @@ class Gitmine def self.list gm = Gitmine.new gm.commits.each do |commit| - status = commit.issue ? commit.issue.status : 'N/A' + status = commit.issue.status if commit.issue + status ||= 'N/A' puts "#{commit.id[0..6]} #{status.ljust(12)} #{(commit.committer.name || "").ljust(15)} #{commit.message[0..50].gsub("\n", '')}" end end def initialize