From cb192d507080687ce18c4675e4750c309917125b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 27 Jun 2012 04:01:45 +0200 Subject: [PATCH] Update to new github api. --- _plugins/contributors.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_plugins/contributors.rb b/_plugins/contributors.rb index 9b3e51c3..35bf11e1 100644 --- a/_plugins/contributors.rb +++ b/_plugins/contributors.rb @@ -7,7 +7,7 @@ module Jekyll class CategoryGenerator < Generator def fetch_contributors - contributors = JSON.parse(open("http://github.com/api/v2/json/repos/show/bitcoin/bitcoin/contributors/anon").read)["contributors"] + contributors = JSON.parse(open("https://api.github.com/repos/bitcoin/bitcoin/contributors").read) contributors.map do |x| x['name'] = x['login'] unless x.has_key?('name') @@ -37,7 +37,7 @@ module Jekyll def generate(site) @contributors = merge_contributors(fetch_contributors(), site.config['aliases']).sort_by{|c| - c['contributions']} - @primary_devs = JSON.parse(open("http://github.com/api/v2/json/repos/show/bitcoin/bitcoin/collaborators").read)["collaborators"] + @primary_devs = JSON.parse(open("https://api.github.com/repos/bitcoin/bitcoin/collaborators").read) Aquarium::Aspects::Aspect.new :around, :invoking => :site_payload, :on_type => Site do |execution_point, site, *args| result = execution_point.proceed