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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 331520f414daa8506e3fe5a9de1e089242a02fed
4
- data.tar.gz: b5beebdf77b2af52d58e546bc98fa294f0f8b15e
3
+ metadata.gz: bdc22f2653f38a4fa2fa447d8f1584b1ec1d5a59
4
+ data.tar.gz: e4d25fd1eadd8ce714ea28c21b2e02e78d1d7058
5
5
  SHA512:
6
- metadata.gz: a0e39bb54c9b81e4ffa3855ff17de99f096e60bc65f012dc7c47f3ef1dea47e42e23441fbdb97ebdb40692d3436738bcf8083481369e293265f960f228b076dd
7
- data.tar.gz: b5cac338ad9f6ce813706a1ae0f796f75a184c9e5b7d154d0d72de074e683e655db52645cafd4fa7c6120c7b0795253482d36de38e6e18cb49a18947dbaa17c4
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
- if ($stdout.tty?)
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
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Reporters
3
- VERSION = '1.0.13'
3
+ VERSION = '1.0.14'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-reporters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kern