execjs 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,4 +39,7 @@ module ExecJS
39
39
  def self.windows?
40
40
  @windows ||= RbConfig::CONFIG["host_os"] =~ /mswin|mingw/
41
41
  end
42
+
43
+ # Eager detect runtime
44
+ self.runtime
42
45
  end
@@ -26,7 +26,7 @@ module ExecJS
26
26
 
27
27
  protected
28
28
  def compile_to_tempfile(source)
29
- tempfile = Tempfile.open("execjs")
29
+ tempfile = Tempfile.open(["execjs",".js"])
30
30
  tempfile.write compile(source)
31
31
  tempfile.close
32
32
  yield tempfile
@@ -1,5 +1,6 @@
1
1
  (function(program, execJS) { execJS(program) })(function() { #{source}
2
2
  }, function(program) {
3
+ #{json2_source}
3
4
  var output;
4
5
  try {
5
6
  result = program();
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
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-04-26 00:00:00 -05:00
19
+ date: 2011-05-03 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency