class ProjectMonitorStat::GitEmailParser

Constants

PAIR_USERNAME_REGEX
SOLO_USERNAME_REGEX

Attributes

git_email[R]

Public Class Methods

new() click to toggle source
# File lib/project_monitor_stat/git_email_parser.rb, line 8
def initialize
  @git_email = Util.x('git config --get user.email')
end

Public Instance Methods

username_tags() click to toggle source
# File lib/project_monitor_stat/git_email_parser.rb, line 12
def username_tags
  solo_usernames | pair_usernames
end

Private Instance Methods

pair_usernames() click to toggle source
# File lib/project_monitor_stat/git_email_parser.rb, line 22
def pair_usernames
  git_email.scan(PAIR_USERNAME_REGEX)
end
solo_usernames() click to toggle source
# File lib/project_monitor_stat/git_email_parser.rb, line 18
def solo_usernames
  git_email.scan(SOLO_USERNAME_REGEX)
end