lib/git-style-binary/parser.rb in jashmenn-git-style-binaries-0.1.6 vs lib/git-style-binary/parser.rb in jashmenn-git-style-binaries-0.1.7

- old
+ new

@@ -95,11 +95,10 @@ stream.puts "#{leftcol_spaces}#@version\n" end stream.puts -# banner = wrap(colorize_known_words(eval(%Q["#{@banner}"])) + "\n", :prefix => leftcol_start) if @banner # lazy banner banner = colorize_known_words_array(wrap(eval(%Q["#{@banner}"]) + "\n", :prefix => leftcol_start)) if @banner # lazy banner stream.puts banner stream.puts stream.puts "OPTIONS".colorize(:red) @@ -149,13 +148,14 @@ end end leftcol_width = left.values.map { |s| s.length }.max || 0 rightcol_start = leftcol_width + 6 # spaces + leftcol_start = 0 unless @order.size > 0 && @order.first.first == :text stream.puts "#@version\n" if @version - stream.puts eval(%Q["#{@banner}"]) + "\n" if @banner # lazy banner + stream.puts colorize_known_words_array(wrap(eval(%Q["#{@banner}"]) + "\n", :prefix => leftcol_start)) if @banner # jit banner stream.puts "Options:" else stream.puts "#@banner\n" if @banner end