leereilly/octocoder — pull request #2 by iangreenleaf (2012-02-24 08:37:18+00:00)
Title: Contributions

Here's the project I mentioned I was working on. The goal is to query for a list of a user's contributions. Basically, we search all of the user's forks, and anything that has gotten a commit accepted back to the source project gets included in the list.

Getting the forks can involve a bunch of API requests (1 for each of the user's repos), so I pulled in EventMachine so I could do those all concurrently. Unfortunately, I haven't found a non-invasive way to do the contribution API requests concurrently, so those still happen in serial and can get pretty slow.

Also, funny story, after I submitted that PR to use FakeWeb in the specs, I discovered that FakeWeb doesn't actually work with EventMachine, so I had to convert to WebMock.