Use "Core developers" and "Bitcoin-Qt contributors"

Send User-agent header to github API
This commit is contained in:
Saivann 2013-04-25 00:25:03 -04:00
parent f6a5c3b401
commit a20dca2553
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ module Jekyll
class CategoryGenerator < Generator
def fetch_contributors
contributors = JSON.parse(open("https://api.github.com/repos/bitcoin/bitcoin/contributors").read)
contributors = JSON.parse(open("https://api.github.com/repos/bitcoin/bitcoin/contributors","User-Agent"=>"Ruby/#{RUBY_VERSION}").read)
contributors.map do |x|
x['name'] = x['login'] unless x.has_key?('name')