Sha256: 6eb13d8b5184bf9c1066e962a0d29a08a5f80b973033056b0975399633037c42
Contents?: true
Size: 666 Bytes
Versions: 69
Compression:
Stored size: 666 Bytes
Contents
module Minitest module Reporters module ANSI module Code def self.color? return false if ENV['MINITEST_REPORTERS_MONO'] color_terminal = ENV['TERM'].to_s.downcase.include?("color") $stdout.tty? || color_terminal end if color? require 'ansi/code' include ::ANSI::Code extend ::ANSI::Code else def black(s = nil) block_given? ? yield : s end %w[red green yellow blue magenta cyan white].each do |color| alias_method color, :black end extend self end end end end end
Version data entries
69 entries across 34 versions & 4 rubygems