Compare Github users. It queries Github using the activity stream for a given username (https://github.com/{username}.json). This is the same problem presented to Aaron Patterson and Yehuda Katz for the Play by Play by PeepCode.
The Ruby version of this code is deployed at http://githubfantasy.com.
A Ruby version of this same application is available at github-fantasy-league.
UPDATE (1/26/2015): GitHub updated their API. The Walkthrough and this code 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 Ruby version of the code has been updated with the following commits:
- https://github.com/jwright/github-fantasy-league/commit/314a70fd563ba9e4c1456af9bd43e6c16726b5d0
- https://github.com/jwright/github-fantasy-league/commit/af0fcc9bf2926aae09bc02afa0f5c285be580cb2
This repo will not be updated unless you want to submit pull requests
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