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 Jun 04 02:19:20 -0700 2009 Rework tests file organization aligning it with... [Andrea Fazzi]
file .gitignore Fri May 29 09:38:25 -0700 2009 RubyLandProxy can be indexed by string. Multile... [Andrea Fazzi]
file CHANGELOG.rdoc Sat Apr 04 09:21:08 -0700 2009 Releasing 1.1. [jbarnette]
file FFI-README Wed May 27 08:54:25 -0700 2009 Tweak FFI-README [Andrea Fazzi]
file Manifest.txt Tue May 26 13:34:01 -0700 2009 Add JSRootable file. Add some tests for convers... [Andrea Fazzi]
file README.rdoc Sat Apr 04 09:23:01 -0700 2009 Tweak the README. [jbarnette]
file Rakefile Tue Jun 09 03:26:41 -0700 2009 Add NativeRuntime (segfaults on jruby). [Andrea Fazzi]
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 examples/ Sun May 31 06:48:44 -0700 2009 JSLandProxyTest#test_find_constants OK. [Andrea Fazzi]
directory ext/ Thu Apr 02 15:55:11 -0700 2009 Remove a leaking root in native_call. [jbarnette]
file johnson.gemspec Thu Apr 02 15:55:11 -0700 2009 Remove a leaking root in native_call. [jbarnette]
directory js/ Tue Jun 02 15:20:18 -0700 2009 Add johnson/swing interaction through jruby exa... [Andrea Fazzi]
directory lib/ Tue Jun 09 09:17:29 -0700 2009 Stole library_path help from Nokogiri :) Add in... [Andrea Fazzi]
directory test/ Tue Jun 09 03:26:41 -0700 2009 Add NativeRuntime (segfaults on jruby). [Andrea Fazzi]
directory vendor/ Thu Mar 26 17:39:11 -0700 2009 Update vendored SpiderMonkey. Updated to JavaS... [jbarnette]
README.rdoc

Johnson

Johnson wraps JavaScript in a loving Ruby embrace.

Examples

    # FIXME: write some decent examples
    require "johnson"

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

Installation

  [sudo] gem install johnson

Restrictions

Johnson is currently developed and tested on Mac OS X with Ruby 1.8.6. We’d like to widen our support: contributions are very welcome!

It’s also kinda segfaulty at the moment. GC is hard.

Development Versions

We periodically update Johnson’s gemspec on Github. Rather than installing the official releases (hosted on RubyForge), you can track the development version. Development versions will have a timestamped version number, like 1.0.0.200806232349.

    $ [sudo] gem sources -a http://gems.github.com # once
    $ [sudo] gem install jbarnette-johnson

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.