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 +4 -4
- data/lib/colsole.rb +2 -2
- data/lib/colsole/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d44483773786ce9ec10d0363f0009ecc489de77ab9613179625280d33cb0617
|
|
4
|
+
data.tar.gz: c0bf8da4ef5e3b3dfd68baf7581fee1cfe5d2e3ac4230c3492eca05543d18468
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
-
|
|
67
|
+
ENV['TTY'] == 'on' ? true : ENV['TTY'] == 'off' ? false : $stderr.tty?
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
# Determines if a shell command exists.
|
data/lib/colsole/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
41
|
+
rubygems_version: 3.0.4
|
|
42
42
|
signing_key:
|
|
43
43
|
specification_version: 4
|
|
44
44
|
summary: Colorful Console Applications
|