lib/graphical_git_logger.rb
def map_git_history(git_log)
    return if git_log.nil?

    commits = define_commits_by_log(git_log)
    mapped_commits = []
    commits.each do |commit|
      splitted = define_lines_by_commit(commit)
      commit_detail = remove_blanks(splitted)
      mapped_commits << commit_detail
    end
    mapped_commits
  end
# This is the main method, which extract the information from the
# git log and returns the hash with the basic structure to use with D3
This is the main method, which extract the information from the
git log and returns the hash with the basic structure to use with D3
This is the main method which extract the information from the git log and returns the hash with the basic structure to use with D3
def map_git_history(git_log)
    return if git_log.nil?
    commits = define_commits_by_log(git_log)
    mapped_commits = []
    commits.each do |commit|
      splitted = define_lines_by_commit(commit)
      commit_detail = remove_blanks(splitted)
      mapped_commits << commit_detail
    end
    mapped_commits
  end
def map_git_history ( git_log ) return if git_log . nil? commits = define_commits_by_log ( git_log ) mapped_commits = [ ] commits . each do | commit | splitted = define_lines_by_commit ( commit ) commit_detail = remove_blanks ( splitted ) mapped_commits << commit_detail end mapped_commits end
This is the main method, which extract the information from the
git log and returns the hash with the basic structure to use with D3
This is the main method which extract the information from the git log and returns the hash with the basic structure to use with D3
git_log