lib/galileo.rb in galileo-0.2.0 vs lib/galileo.rb in galileo-0.2.1

- old
+ new

@@ -1,5 +1,7 @@ +# encoding: utf-8 + require "galileo/version" require "octokit" require "terminal-table/lib/terminal-table.rb" require "time/time-ago-in-words" require "colorize" @@ -112,10 +114,9 @@ end # Add separators repos = repos.product([:separator]).flatten(1)[0...-1] - # Construct the table table = Terminal::Table.new table.headings = ['Name', 'Description', 'Language', 'Author', 'Stars', 'Last Updated', ENV['_system_name'] == 'OSX' ? 'Link (⌘ + Click)' : 'Link'] table.rows = repos[0..20] table.style = { width: `/usr/bin/env tput cols`.to_i }