diff --git a/gitsucker.rb b/gitsucker.rb index 8a82b8c..ada8fe6 100755 --- a/gitsucker.rb +++ b/gitsucker.rb @@ -107,16 +107,17 @@ def sort_authors_by_score(array_of_objects) ARGV.each do |input| begin puts "Fetching data..." - repo = Query.new(input) + query = Query.new(input) + headers = ["all", "originals", "forked", "ruby", "js", "score"] printf "%-20s", "name" headers.each { |title| printf "%-10s", title } puts - 80.times { print '=' } + print '='*80 puts - repo.forking_authors.each do |author| + query.forking_authors.each do |author| printf "%-20s", author.name printf "%-10s", author.all_projects printf "%-10s", author.originals