colsole 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/colsole.rb +3 -1
- data/lib/colsole/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23f1eef2924cd8716d0cc137812d663ab39afcf67cc16569ef6f6b0a81fc3b7
|
4
|
+
data.tar.gz: b029707bcac441fb223948c67e2c72da744dadec6b1e9fd7419f27ddedbcb3e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2efc62ca81b8985fa859d9c339f7726691da8546eb93ff525d8a21363a9db95b2e42001eb87c17f723e5621bf1d7fff4b15638b994628b91515480aa69b09246
|
7
|
+
data.tar.gz: c00dede9213c174dd0653685635daaaad101956f629313e252f8374feee399f8a1240395720f385ff9ec8e9ef6770cfed8d8459fc14ace2642a47b39359dae72
|
data/lib/colsole.rb
CHANGED
@@ -69,7 +69,9 @@ module Colsole
|
|
69
69
|
|
70
70
|
# Determines if a shell command exists.
|
71
71
|
def command_exist?(command)
|
72
|
-
ENV['PATH'].split(File::PATH_SEPARATOR).any?
|
72
|
+
ENV['PATH'].split(File::PATH_SEPARATOR).any? do |dir|
|
73
|
+
File.exist?(File.join dir, command) or File.exist?(File.join dir, "#{command}.exe")
|
74
|
+
end
|
73
75
|
end
|
74
76
|
|
75
77
|
# Returns [width, height] of terminal when detected, or a default
|
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.5.
|
4
|
+
version: 0.5.4
|
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:
|
11
|
+
date: 2019-04-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
|
@@ -31,15 +31,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 2.
|
34
|
+
version: 2.3.0
|
35
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
40
|
requirements: []
|
41
|
-
|
42
|
-
rubygems_version: 2.7.6
|
41
|
+
rubygems_version: 3.0.3
|
43
42
|
signing_key:
|
44
43
|
specification_version: 4
|
45
44
|
summary: Colorful Console Applications
|