Skip to content

Commit

Permalink
renamed repo to query and shifted printing equals to multiplier rathe…
Browse files Browse the repository at this point in the history
…r than loop
  • Loading branch information
adarsh committed Apr 26, 2012
1 parent d80e96d commit c881948
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gitsucker.rb
Expand Up @@ -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
Expand Down

0 comments on commit c881948

Please sign in to comment.