Compare Github users. It queries Github using the activity stream for a given username (https://api.github.com/users/{username}/events
). This is the same problem presented to Aaron Patterson and Yehuda
Katz for the Play by Play by PeepCode.
This code is deployed at http://githubfantasy.com.
A .NET version of this same application is available at github-fantasy-league-dotnet.
UPDATE (1/26/2015): GitHub updated their API. The Walkthrough refers to the API being at https://githib.com{username}.json
. This is the old API per this blog post: (http://git.io/17AROg)[http://git.io/17AROg].
The score is calculated based on the following activity stream's events.
- CommitCommentEvent - 2pts
- IssueCommentEvent - 2pts
- IssuesEvent - 3pts
- WatchEvent - 1pt
- PullRequestEvent - 5pts
- PushEvent - 7pts
- FollowEvent - 1pt
- CreateEvent - 3pts
- Part 1 - Create Project in .NET
- Part 1 - Create Project in Rails
- Part 2 - Create Feature in .NET
- Part 2 - Create Feature in Rails
- Part 3 - Implement First 3 Steps in .NET
- Part 3 - Implement First 3 Steps in Rails
- Part 4 - Spec User in .NET
- Part 4 - Spec User in Rails
- Part 5 - Spec GitHubScorer in .NET
- Part 5 - Spec GitHubScorer in Rails
- Part 6 - Spec GitHub Event in .NET
- Part 6 - Spec GitHub Event in Rails
- Part 7 - Implement Users Controller in .NET
- Part 7 - Add VCR in Rails
- Part 8 - Implement Users Controller in Rails