colsole 0.5.3 → 0.5.4

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: b58eedbdc35ce21578e093774b1110c2633cc1271a33e6bbce21bcb148003e20
4
- data.tar.gz: 2d6c1526571488460603ff69aabcfc86a93eb836e2901ffd4345ce81d1e0fe79
3
+ metadata.gz: e23f1eef2924cd8716d0cc137812d663ab39afcf67cc16569ef6f6b0a81fc3b7
4
+ data.tar.gz: b029707bcac441fb223948c67e2c72da744dadec6b1e9fd7419f27ddedbcb3e9
5
5
  SHA512:
6
- metadata.gz: 4f15d7093fcf1b9835e01b51f8a442ee5dee4194e0b8f03226602bb9a782b764dc74230fa3d9f0b1e86188532641a0ae998126ad0c3ef823a31c37edee15ab87
7
- data.tar.gz: 1c391bc4f87e5b8c22165ecfeec4e64efb21a817282ccb070b121ec4cae63f4f5ca07fc4f8b86dd2e10cbc81c5a25c3451c584d6b4513ec78e475564b534e415
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? {|d| File.exist? File.join(d, command) }
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
@@ -1,3 +1,3 @@
1
1
  module Colsole
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
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.3
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: 2018-12-07 00:00:00.000000000 Z
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.0.0
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
- rubyforge_project:
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