rogerdpack-which_ruby 0.0.2 → 0.0.3
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.
- data/bin/which_ruby +8 -4
- metadata +1 -1
data/bin/which_ruby
CHANGED
@@ -17,7 +17,7 @@ else
|
|
17
17
|
puts candidate
|
18
18
|
success = true
|
19
19
|
elsif File::exist? candidate
|
20
|
-
puts candidate + ' is not executable'
|
20
|
+
puts candidate + ' (is not executable)'
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -29,11 +29,15 @@ else
|
|
29
29
|
|
30
30
|
return success
|
31
31
|
end
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
|
33
|
+
which(ARGV[0])
|
34
|
+
|
35
|
+
if RUBY_PLATFORM =~ /mswin|mingw/
|
36
|
+
# windows compat.
|
35
37
|
which(ARGV[0] + '.exe')
|
36
38
|
which(ARGV[0] + '.bat')
|
37
39
|
which(ARGV[0] + '.cmd')
|
40
|
+
which(ARGV[0] + '.dll')
|
38
41
|
end
|
42
|
+
|
39
43
|
end
|