gli 2.13.3 → 2.13.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 +4 -4
- data/features/step_definitions/gli_executable_steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/lib/gli/app.rb +2 -2
- data/lib/gli/terminal.rb +1 -1
- data/lib/gli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72425f3996eedb08a03af7c55d8fa50dc358659d
|
4
|
+
data.tar.gz: 41634461e71b54e34f156f59e85c02fab64e6410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3c97518e3500e9853f2d5240c08db8655b0c771b1de9f1e453478ce3cefa16612a2aef458febde8246cdabcfda409db43f8a5770113e80841c22f82666ed24b
|
7
|
+
data.tar.gz: 55df85338820f8b1ebb2d33e98009346641c382b34be7494de9688a90450702a910258fcbbd8a111bb444619db67e9754a62a001d50428113bc66e0ad21f9421
|
data/features/support/env.rb
CHANGED
data/lib/gli/app.rb
CHANGED
@@ -30,7 +30,7 @@ module GLI
|
|
30
30
|
# # loads *.rb files from the user's home dir - great and an extension/plugin mechanism
|
31
31
|
# commands_from File.join(ENV["HOME"],".my_app","plugins")
|
32
32
|
def commands_from(path)
|
33
|
-
if Pathname.new(path).absolute? and File.
|
33
|
+
if Pathname.new(path).absolute? and File.exist?(path)
|
34
34
|
load_commands(path)
|
35
35
|
else
|
36
36
|
$LOAD_PATH.each do |load_path|
|
@@ -317,7 +317,7 @@ module GLI
|
|
317
317
|
private
|
318
318
|
|
319
319
|
def load_commands(path)
|
320
|
-
if File.
|
320
|
+
if File.exist? path
|
321
321
|
Dir.entries(path).sort.each do |entry|
|
322
322
|
file = File.join(path,entry)
|
323
323
|
if file =~ /\.rb$/
|
data/lib/gli/terminal.rb
CHANGED
@@ -43,7 +43,7 @@ module GLI
|
|
43
43
|
#
|
44
44
|
# +command+:: The command, as a String, to check for, without any path information.
|
45
45
|
def self.command_exists?(command)
|
46
|
-
ENV['PATH'].split(File::PATH_SEPARATOR).any? {|dir| File.
|
46
|
+
ENV['PATH'].split(File::PATH_SEPARATOR).any? {|dir| File.exist? File.join(dir, command) }
|
47
47
|
end
|
48
48
|
|
49
49
|
def command_exists?(command)
|
data/lib/gli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.13.
|
4
|
+
version: 2.13.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Copeland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|