execjs 1.2.12 → 1.2.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -130,7 +130,8 @@ module ExecJS
130
130
  cmd
131
131
  else
132
132
  path = ENV['PATH'].split(File::PATH_SEPARATOR).find { |p|
133
- File.executable? File.join(p, cmd)
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
@@ -1,3 +1,3 @@
1
1
  module ExecJS
2
- VERSION = "1.2.12"
2
+ VERSION = "1.2.13"
3
3
  end
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 12
10
- version: 1.2.12
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-08 00:00:00 -06:00
19
+ date: 2011-12-19 00:00:00 -06:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency