execjs 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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| arg.gsub(/([&|()<>^ "])/,'^\1') }.join(" ")
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)
@@ -1,3 +1,3 @@
1
1
  module ExecJS
2
- VERSION = "1.2.8"
2
+ VERSION = "1.2.9"
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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 8
10
- version: 1.2.8
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-20 00:00:00 -05:00
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.5.2
165
+ rubygems_version: 1.6.2
166
166
  signing_key:
167
167
  specification_version: 3
168
168
  summary: Run JavaScript code from Ruby