execjs 1.2.10 → 1.2.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -126,12 +126,12 @@ module ExecJS
126
126
  result.strip.split("\n").first
127
127
  end
128
128
 
129
- def which_unix(name)
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 { |path|
134
- File.executable? File.join(path, cmd)
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
@@ -1,3 +1,3 @@
1
1
  module ExecJS
2
- VERSION = "1.2.10"
2
+ VERSION = "1.2.11"
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 10
10
- version: 1.2.10
9
+ - 11
10
+ version: 1.2.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Stephenson