package com.softwaremill.codebrag.domain

object CommitAuthorClassification {
  def commitAuthoredByUser[T, S](commit: T, user: S)(implicit commitLike: CommitLike[T], userLike: UserLike[S]): Boolean = {
    commitLike.authorName(commit) == userLike.userFullName(user) || userLike.userEmails(user).contains(commitLike.authorEmail(commit))
  }
}

package com.softwaremill.codebrag.domain

object CommitAuthorClassification {
  def commitAuthoredByUser[T, S](commit: T, user: S)(implicit commitLike: CommitLike[T], userLike: UserLike[S]): Boolean = {
    val nameMatches = commitLike.authorName(commit).toLowerCase == userLike.userFullName(user).toLowerCase
    val emailMatches = userLike.userEmails(user).map(_.toLowerCase).contains(commitLike.authorEmail(commit).toLowerCase)
    nameMatches || emailMatches
  }
}

Fix - get rid of case sensitive matching of commit author. Now it is case insensitive
Fix - get rid of case sensitive matching of commit author. Now it is case insensitive
