public
Description: Johnson wraps JavaScript in a loving Ruby embrace.
Homepage: http://github.com/jbarnette/johnson/wikis
Clone URL: git://github.com/jbarnette/johnson.git
name age message
file .autotest Thu Oct 30 16:17:14 -0700 2008 Halfassed .autotest file. [jbarnette]
file .gitignore Thu Mar 26 16:13:43 -0700 2009 Build system cleanups. I've changed the way we... [jbarnette]
file CHANGELOG.rdoc Sat Jun 27 12:57:23 -0700 2009 Prepping for 1.1.1. [jbarnette]
file Manifest.txt Tue Jun 23 00:12:58 -0700 2009 Switch to hoe-debugging. [jbarnette]
file README.rdoc Tue Jun 23 00:23:34 -0700 2009 Grab more config stuff from the README. [jbarnette]
file Rakefile Tue Jun 23 01:23:31 -0700 2009 Activate the hoe-git plugin. [jbarnette]
directory bin/ Tue Sep 09 01:03:44 -0700 2008 It's now possible to execute multiple JS files ... [jbarnette]
directory docs/ Thu Apr 02 14:45:48 -0700 2009 Moving MINGW32 makefile into docs, since it's c... [jbarnette]
directory ext/ Fri Jun 05 11:23:39 -0700 2009 uncaught ruby exceptions now have a somewhat-mo... [mdalessio]
directory js/ Thu Mar 26 12:45:58 -0700 2009 Removing bits not directly related to the runti... [jbarnette]
directory lib/ Sat Jun 27 12:57:23 -0700 2009 Prepping for 1.1.1. [jbarnette]
directory test/ Sat Jun 06 10:17:02 -0700 2009 added coverage for js_property?() [mdalessio]
directory vendor/ Thu Mar 26 17:39:11 -0700 2009 Update vendored SpiderMonkey. Updated to JavaS... [jbarnette]

Johnson

Description

Johnson wraps JavaScript in a loving Ruby embrace. It embeds the Mozilla SpiderMonkey JavaScript runtime as a C extension.

Examples

    # FIXME: write some decent examples
    require "johnson"

    Johnson.evaluate("4 + 4") # => 8
    Johnson.evaluate("4 + foo", :foo => 4) # => 8

Installation

    $ gem install johnson

TODO

  • Support more than just Mac OS X / Ruby 1.8.6.
  • Stop freaking segfaulting.

License

Copyright 2008-2009 John Barnette, Aaron Patterson, Yehuda Katz, Matthew Draper

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.