Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cdc36753f2
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (22 sloc) 0.523 kb
#!/usr/bin/env ruby
require './lib/author'
require './lib/repo'
require 'open-uri'
require 'json'
ORIGINAL_REPO_VALUE = 3
RUBY_REPO_VALUE = 2
JS_REPO_VALUE = 2
FORKED_REPO_VALUE = 1
ARGV.each do |input|
begin
puts 'Fetching data...'
puts '%-20s %-10s %-10s %-10s %-10s %-10s %-10s' % Author.stat_types
print '='*80
puts
Repo.new(input).get_forking_authors.each do |author|
puts '%-20s %-10s %-10s %-10s %-10s %-10s %-10s' % author.stats
end
rescue
puts 'Repo not found.'
end
end
Jump to Line
Something went wrong with that request. Please try again.