From fc7b183be6011d7aa0214b95526c48677e1a0cad Mon Sep 17 00:00:00 2001 From: kares Date: Mon, 27 Aug 2012 10:55:15 +0200 Subject: [PATCH] document how to override rhino's jar --- README.rdoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.rdoc b/README.rdoc index 052717d..bd0307e 100644 --- a/README.rdoc +++ b/README.rdoc @@ -176,6 +176,19 @@ methods "defined in their classes" are exposed by default e.g. cxt.eval("b.a()") # => 'TypeError: undefined property 'a' is not a function' end +==== Using a custom Rhino version + +Officially supported versions of Rhino's _js.jar_ are packaged separately as +*therubyrhino_jar* gem. Make sure you're using the latest gem version if you +feel like missing something available with Rhino. For experimenters the jar can +be overriden by defining a +Rhino::JAR_PATH+ before +require 'rhino'+ e.g. : + + module Rhino + JAR_PATH = File.expand_path('lib/rhino/build/rhino1_7R5pre/js.jar') + end + # ... + require 'rhino' + == Rhino Rhino is currently maintained at https://github.com/mozilla/rhino