Mustang - V8 engine in Ruby's body

Mustang is ruby proxy library for awesome Google V8 JavaScript engine. It embeds the V8 engine as a C++ extension (using Rice).

Installation

Using rubygems:

$ gem install mustang

Manualy:

$ git clone git://github.com/nu7hatch/mustang.git
$ cd mustang
$ rake install

Usage

For now it's only proof of concept. It implements very simple evaluation of javascript code:

require 'mustang'

rt = Mustang::Runtime.new
rt.evaluate("'Hello' + ' World!';") # => 'Hello World!'
rt.evaluate("var a=1;")
rt.evaluate("a+5;") # => 6

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 Kriss 'nu7hatch' Kowalik. See LICENSE for details.