execjs 1.2.10 → 1.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/execjs/external_runtime.rb +3 -3
- data/lib/execjs/version.rb +1 -1
- metadata +3 -3
@@ -126,12 +126,12 @@ module ExecJS
|
|
126
126
|
result.strip.split("\n").first
|
127
127
|
end
|
128
128
|
|
129
|
-
def which_unix(
|
129
|
+
def which_unix(cmd)
|
130
130
|
if File.executable? cmd
|
131
131
|
cmd
|
132
132
|
else
|
133
|
-
path = ENV['PATH'].split(File::PATH_SEPARATOR).find { |
|
134
|
-
File.executable? File.join(
|
133
|
+
path = ENV['PATH'].split(File::PATH_SEPARATOR).find { |p|
|
134
|
+
File.executable? File.join(p, cmd)
|
135
135
|
}
|
136
136
|
path && File.expand_path(cmd, path)
|
137
137
|
end
|
data/lib/execjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: execjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 11
|
10
|
+
version: 1.2.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Stephenson
|