execjs 1.2.12 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/execjs/external_runtime.rb +2 -1
- data/lib/execjs/version.rb +1 -1
- metadata +4 -4
@@ -130,7 +130,8 @@ module ExecJS
|
|
130
130
|
cmd
|
131
131
|
else
|
132
132
|
path = ENV['PATH'].split(File::PATH_SEPARATOR).find { |p|
|
133
|
-
|
133
|
+
full_path = File.join(p, cmd)
|
134
|
+
File.executable?(full_path) && File.file?(full_path)
|
134
135
|
}
|
135
136
|
path && File.expand_path(cmd, path)
|
136
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: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 13
|
10
|
+
version: 1.2.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Stephenson
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-12-
|
19
|
+
date: 2011-12-19 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|