mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Merge pull request #42 from TheBlueMatt/contribute
Update to new github api.
This commit is contained in:
commit
dd288f3eb8
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ module Jekyll
|
||||||
|
|
||||||
class CategoryGenerator < Generator
|
class CategoryGenerator < Generator
|
||||||
def fetch_contributors
|
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|
|
contributors.map do |x|
|
||||||
x['name'] = x['login'] unless x.has_key?('name')
|
x['name'] = x['login'] unless x.has_key?('name')
|
||||||
|
@ -37,7 +37,7 @@ module Jekyll
|
||||||
|
|
||||||
def generate(site)
|
def generate(site)
|
||||||
@contributors = merge_contributors(fetch_contributors(), site.config['aliases']).sort_by{|c| - c['contributions']}
|
@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|
|
Aquarium::Aspects::Aspect.new :around, :invoking => :site_payload, :on_type => Site do |execution_point, site, *args|
|
||||||
result = execution_point.proceed
|
result = execution_point.proceed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue