Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Files

Latest commit

 

History

History
45 lines (35 loc) · 2.19 KB

README.md

File metadata and controls

45 lines (35 loc) · 2.19 KB

github fantasy league (Ruby)


DESCRIPTION

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].

Scoring system

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

WALKTHROUGH