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
jbarnette (author)
Wed Jul 29 14:14:32 -0700 2009
commit  06977cd6f37cbf1df8b00af600ab159e9574a30c
tree    155da0ca5ba557deb859a5a35c82c289f18c08ef
parent  a32f6b0aca266aaa5ad04225e225d4a244361717
name age message
file .autotest Thu Oct 30 16:17:14 -0700 2008 Halfassed .autotest file. [jbarnette]
file .gitignore Loading commit data...
file CHANGELOG.rdoc Wed Jul 29 14:14:32 -0700 2009 Prepping for 1.1.2. [jbarnette]
file Manifest.txt
file README.rdoc
file Rakefile
directory bin/
directory ext/
directory js/
directory lib/
directory test/
directory vendor/ Thu Mar 26 17:39:11 -0700 2009 Update vendored SpiderMonkey. Updated to JavaS... [jbarnette]
README.rdoc

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.