Следуя ответу @Douglas. То, что вы хотите сделать, это легко, используя API GitHub и гем HTTParty:
require 'httparty'
class Repository
include HTTParty
base_uri 'www.github.com'
end
response = Repository.get('/api/v2/json/repos/show/joncooper/beanstalkd')
require 'awesome_print'
>> ap response.parsed_response
{
"repository" => {
"name" => "beanstalkd",
"size" => 128,
"created_at" => "2011/04/29 09:43:43 -0700",
"has_wiki" => true,
"parent" => "kr/beanstalkd",
"private" => false,
"watchers" => 1,
"fork" => true,
"language" => "C",
"url" => "https://github.com/joncooper/beanstalkd",
"pushed_at" => "2011/07/05 22:10:53 -0700",
"open_issues" => 0,
"has_downloads" => true,
"has_issues" => false,
"homepage" => "http://kr.github.com/beanstalkd/",
"forks" => 0,
"description" => "Beanstalk is a simple, fast work queue.",
"source" => "kr/beanstalkd",
"owner" => "joncooper"
}
}
Подробнее см. http://httparty.rubyforge.org/.