minitest-reporters 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minitest/reporters/ansi.rb +7 -1
- data/lib/minitest/reporters/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdc22f2653f38a4fa2fa447d8f1584b1ec1d5a59
|
4
|
+
data.tar.gz: e4d25fd1eadd8ce714ea28c21b2e02e78d1d7058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c394c92197b580fda8c7b1fd94463dcd427d7e134c6e2f6798405d3b094cbeda332aa459cf8b62cc3ef2714d2ac6af475229073c537f13eb3f6e3a1f20ab028
|
7
|
+
data.tar.gz: da7bd02513155b616d9ee88efe3d36f24091720422db54cebfc42d3e3c98eb898a9123f8060bfc0556babd525644c5497f09238cf8592a7cb9edcaef27e4a1c3
|
@@ -2,7 +2,13 @@ module Minitest
|
|
2
2
|
module Reporters
|
3
3
|
module ANSI
|
4
4
|
module Code
|
5
|
-
|
5
|
+
|
6
|
+
def self.color?
|
7
|
+
color_terminal = ENV['TERM'].to_s.downcase.include?("color")
|
8
|
+
$stdout.tty? || color_terminal
|
9
|
+
end
|
10
|
+
|
11
|
+
if color?
|
6
12
|
require 'ansi/code'
|
7
13
|
|
8
14
|
include ::ANSI::Code
|