colsole 0.5.4 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e23f1eef2924cd8716d0cc137812d663ab39afcf67cc16569ef6f6b0a81fc3b7
4
- data.tar.gz: b029707bcac441fb223948c67e2c72da744dadec6b1e9fd7419f27ddedbcb3e9
3
+ metadata.gz: 3d44483773786ce9ec10d0363f0009ecc489de77ab9613179625280d33cb0617
4
+ data.tar.gz: c0bf8da4ef5e3b3dfd68baf7581fee1cfe5d2e3ac4230c3492eca05543d18468
5
5
  SHA512:
6
- metadata.gz: 2efc62ca81b8985fa859d9c339f7726691da8546eb93ff525d8a21363a9db95b2e42001eb87c17f723e5621bf1d7fff4b15638b994628b91515480aa69b09246
7
- data.tar.gz: c00dede9213c174dd0653685635daaaad101956f629313e252f8374feee399f8a1240395720f385ff9ec8e9ef6770cfed8d8459fc14ace2642a47b39359dae72
6
+ metadata.gz: 71c9cfa69cffea67948f8f499c026f414968e49e8956f91b2848475b580601c5de1d15045cd512ce61f98e7e2db9145a7389bb0db0c3e64b8e6b7f7325fe2aab
7
+ data.tar.gz: e16cc3133c91494885b0f277f186c62a5aeca3c2086d0306045827895d09ebdb317afe72dd860c5e9073702be32e775181d062251bffaa796949cfb7b102f065
data/lib/colsole.rb CHANGED
@@ -59,12 +59,12 @@ module Colsole
59
59
 
60
60
  # Returns true if stdout is interactive terminal
61
61
  def out_terminal?
62
- STDOUT.tty?
62
+ ENV['TTY'] == 'on' ? true : ENV['TTY'] == 'off' ? false : $stdout.tty?
63
63
  end
64
64
 
65
65
  # Returns true if stderr is interactive terminal
66
66
  def err_terminal?
67
- STDERR.tty?
67
+ ENV['TTY'] == 'on' ? true : ENV['TTY'] == 'off' ? false : $stderr.tty?
68
68
  end
69
69
 
70
70
  # Determines if a shell command exists.
@@ -1,3 +1,3 @@
1
1
  module Colsole
2
- VERSION = "0.5.4"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colsole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-16 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Utility functions for making colorful console applications
14
14
  email: db@dannyben.com
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
- rubygems_version: 3.0.3
41
+ rubygems_version: 3.0.4
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Colorful Console Applications