Sha256: b891ca5baf89aecd9e833704452646f7ef302016bc758a5734d00c76733e8262

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

require 'octokit'

module Dropcaster
  def self.contributors
    cbtors = Octokit.contributors('nerab/dropcaster', true)

    cbtors.sort!{|x,y| y.contributions <=> x.contributions }
    cbtors.map!{|c| "* [#{Octokit.user(c.login).name}](#{c.html_url}) (#{c.contributions} contributions)"}

    cbtors.join("\n")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dropcaster-0.0.8 lib/dropcaster/contributors.rb
dropcaster-0.0.7 lib/dropcaster/contributors.rb