execjs 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/execjs/external_runtime.rb +4 -1
- data/lib/execjs/version.rb +1 -1
- metadata +5 -5
@@ -183,7 +183,10 @@ module ExecJS
|
|
183
183
|
if ExecJS.windows?
|
184
184
|
def shell_escape(*args)
|
185
185
|
# see http://technet.microsoft.com/en-us/library/cc723564.aspx#XSLTsection123121120120
|
186
|
-
args.map { |arg|
|
186
|
+
args.map { |arg|
|
187
|
+
arg = %Q("#{arg.gsub('"','""')}") if arg.match(/[&|()<>^ "]/)
|
188
|
+
arg
|
189
|
+
}.join(" ")
|
187
190
|
end
|
188
191
|
else
|
189
192
|
def shell_escape(*args)
|
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: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 9
|
10
|
+
version: 1.2.9
|
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-09-
|
19
|
+
date: 2011-09-24 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
requirements: []
|
163
163
|
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 1.
|
165
|
+
rubygems_version: 1.6.2
|
166
166
|
signing_key:
|
167
167
|
specification_version: 3
|
168
168
|
summary: Run JavaScript code from Ruby
|