pengwynn/octokit — pull request #93 by icco (2012-05-20 21:39:25+00:00)
Title: Adds ratelimit functions to client.

I feel like this is a nice simple thing missing from the client interface.

Example of code:

1.9.3-p194 :001 > require 'octokit'
=> true
1.9.3-p194 :002 > Octokit.ratelimit_remaining
=> 4990
1.9.3-p194 :003 > Octokit.ratelimit
=> 5000

I'm not sure, but I think my implementation might return the wrong numbers when dealing with authentication.