rogerdpack-which_ruby 0.0.3 → 0.0.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.
Files changed (2) hide show
  1. data/bin/which_ruby +6 -2
  2. metadata +1 -1
@@ -13,9 +13,13 @@ else
13
13
  path.split(File::PATH_SEPARATOR).each do |dir|
14
14
  candidates = Dir.glob (dir.gsub("\\", "/") + '/' + bin.strip)
15
15
  for candidate in candidates
16
- if File::executable? candidate
17
- puts candidate
16
+ if File::executable?(candidate)
17
+ print candidate
18
+ if(File.directory?(candidate))
19
+ print ' (is a directory)'
20
+ end
18
21
  success = true
22
+ puts
19
23
  elsif File::exist? candidate
20
24
  puts candidate + ' (is not executable)'
21
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rogerdpack-which_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack