Skip to content
Browse files

Still prefer therubyracer over mustang

  • Loading branch information...
1 parent 62731c9 commit a47882c9ba8d69cbf3769547ae20d4c00c9cdfc5 @josh josh committed Apr 12, 2011
Showing with 7 additions and 7 deletions.
  1. +2 −2 README.md
  2. +1 −1 lib/execjs.rb
  3. +3 −3 lib/execjs/runtimes.rb
  4. +1 −1 test/test_runtimes.rb
View
4 README.md
@@ -7,12 +7,12 @@ returns the result to you as a Ruby object.
ExecJS supports these runtimes:
-* [Mustang](https://github.com/nu7hatch/mustang) - Mustang V8
- embedded within Ruby
* [therubyracer](https://github.com/cowboyd/therubyracer) - Google V8
embedded within MRI Ruby
* [therubyrhino](https://github.com/cowboyd/therubyrhino) - Mozilla
Rhino embedded within JRuby
+* [Mustang](https://github.com/nu7hatch/mustang) - Mustang V8
+ embedded within Ruby
* [Node.js](http://nodejs.org/)
* Apple JavaScriptCore - Included with Mac OS X
* [Mozilla Spidermonkey](http://www.mozilla.org/js/spidermonkey/)
View
2 lib/execjs.rb
@@ -6,8 +6,8 @@ class RuntimeError < Error; end
class ProgramError < Error; end
autoload :ExternalRuntime, "execjs/external_runtime"
- autoload :RubyRacerRuntime, "execjs/ruby_racer_runtime"
autoload :MustangRuntime, "execjs/mustang_runtime"
+ autoload :RubyRacerRuntime, "execjs/ruby_racer_runtime"
autoload :RubyRhinoRuntime, "execjs/ruby_rhino_runtime"
autoload :Runtimes, "execjs/runtimes"
View
6 lib/execjs/runtimes.rb
@@ -2,10 +2,10 @@ module ExecJS
module Runtimes
RubyRacer = RubyRacerRuntime.new
- Mustang = MustangRuntime.new
-
RubyRhino = RubyRhinoRuntime.new
+ Mustang = MustangRuntime.new
+
Node = ExternalRuntime.new(
:name => "Node.js (V8)",
:command => ["nodejs", "node"],
@@ -39,8 +39,8 @@ def self.best_available
def self.runtimes
@runtimes ||= [
RubyRacer,
- Mustang,
RubyRhino,
+ Mustang,
Node,
JavaScriptCore,
Spidermonkey,
View
2 test/test_runtimes.rb
@@ -57,9 +57,9 @@ def test_thrown_exception
end
runtimes = [
- "Mustang",
"RubyRacer",
"RubyRhino",
+ "Mustang",
"Node",
"JavaScriptCore",
"Spidermonkey",

0 comments on commit a47882c

Please sign in to comment.
Something went wrong with that request. Please try again.