lib/tw/app/render.rb in tw-1.0.2 vs lib/tw/app/render.rb in tw-1.0.3

- old
+ new

@@ -20,10 +20,10 @@ def self.puts(s) STDOUT.puts s unless silent end def self.color_code(str) - colors = Sickill::Rainbow::TERM_COLORS.keys - [:default, :black, :white] + colors = Rainbow::Color::Named::NAMES.keys - [:default, :black, :white] n = str.each_byte.map{|c| c.to_i}.inject{|a,b|a+b} return colors[n%colors.size] end def self.display(arr, format)