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.
Files changed (2) hide show
  1. data/bin/which_ruby +8 -4
  2. 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
- answer = which(ARGV[0])
33
- # windows compat.
34
- if !answer and RUBY_PLATFORM =~ /mswin|mingw/
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
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack