lib/fcom/parser.rb in fcom-0.8.0 vs lib/fcom/parser.rb in fcom-0.9.0

- old
+ new

@@ -37,10 +37,11 @@ else "#{old_filename} --> #{new_filename}" end elsif line.match?(regex) && (filename.blank? || path_match?(filename)) if previous_commit title, sha, author, date = previous_commit.split('|') - sha_with_url = "#{sha[0, 7]} ( https://github.com/#{repo}/commit/#{sha[0, 7]} )" + short_sha = sha[0, 8] + sha_with_url = "#{short_sha} ( https://github.com/#{repo}/commit/#{short_sha} )" puts("\n\n") if a_commit_has_matched # print commit separator, if needed puts([title, sha_with_url, author, date]) puts('==============================================')