Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove set_blame_info and just give the object more information than …

…required
  • Loading branch information...
commit 551936c11e1bd269a8fe3e8d47aff8ce24acd8e2 1 parent 31a7141
@dominikh dominikh authored
Showing with 2 additions and 9 deletions.
  1. +2 −9 lib/yard-blame.rb
View
11 lib/yard-blame.rb
@@ -7,7 +7,7 @@ def process
info, bline, eline = {}, statement.line_range.begin, statement.line_range.end
if GitBlameHandler.blame_files[parser.file]
- set_blame_info(bline, eline)
+ @object[:blame_info] = GitBlameHandler.blame_files[parser.file]
return
end
@@ -31,14 +31,7 @@ def process
end
GitBlameHandler.blame_files[parser.file] = info
- set_blame_info(bline, eline)
- end
-
- private
- def set_blame_info(bline, eline)
- all_revs = GitBlameHandler.blame_files[parser.file]
- revs = all_revs.reject {|key, value| !(bline..eline).include?(key)} #reject to work with ruby 1.8
- @object[:blame_info] = revs
+ @object[:blame_info] = GitBlameHandler.blame_files[parser.file]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.