lib/gemika/matrix.rb
##
# A row in the test matrix
#
A row in the test matrix
A row in the test matrix
def print_summary
      print_title 'Summary'
      gemfile_size = @results.keys.map { |row| row.gemfile.size }.max
      ruby_size = @results.keys.map { |row| row.ruby.size }.max
      @results.each do |entry, result|
        puts "- #{entry.gemfile.ljust(gemfile_size)}  Ruby #{entry.ruby.ljust(ruby_size)}  #{result}"
      end
      puts
      if @compatible_count == 0
        message = "No gemfiles were compatible with Ruby #{@aliased_rubys[RUBY_VERSION]}"
        puts tint(message, COLOR_FAILURE)
        raise UnsupportedRuby, message
      elsif @all_passed
        puts tint("All gemfiles succeeded for Ruby #{@aliased_rubys[RUBY_VERSION]}", COLOR_SUCCESS)
      else
        message = 'Some gemfiles failed'
        puts tint(message, COLOR_FAILURE)
        puts
        raise MatrixFailed, message
      end
      print_aliases
      puts
    end
def print_summary print_title 'Summary' gemfile_size = @results . keys . map { | row | row . gemfile . size } . max ruby_size = @results . keys . map { | row | row . ruby . size } . max @results . each do | entry , result | puts "- #{entry.gemfile.ljust(gemfile_size)}  Ruby #{entry.ruby.ljust(ruby_size)}  #{result}" end puts if @compatible_count == 0 message = "No gemfiles were compatible with Ruby #{@aliased_rubys[RUBY_VERSION]}" puts tint ( message , COLOR_FAILURE ) raise UnsupportedRuby , message elsif @all_passed puts tint ( "All gemfiles succeeded for Ruby #{@aliased_rubys[RUBY_VERSION]}" , COLOR_SUCCESS ) else message = 'Some gemfiles failed' puts tint ( message , COLOR_FAILURE ) puts raise MatrixFailed , message end print_aliases puts end
A row in the test matrix
A row in the test matrix