Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make debug messages more informative #22

Merged
merged 4 commits into from
Aug 12, 2014

Conversation

ildarsafin
Copy link
Contributor

#18

def compare_gpa
@compare_gpa ||= CompareGpa.new(api_requester)
end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to extract compare_gpa.diff(branch_name) to the diff method and do not create report_* methods instead.

if compare_gpa.worse?(branch_name)
  Report.worse_code(diff)
else
  Report.good_code(diff)
end

private

def diff
  compare_gpa.diff(branch_name)
end

@timurvafin
Copy link
Member

🆗

ildarsafin pushed a commit that referenced this pull request Aug 12, 2014
@ildarsafin ildarsafin merged commit e8e9f0e into master Aug 12, 2014
@ildarsafin ildarsafin deleted the make-debug-messages-more-informative branch August 12, 2014 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants