From ba56e4d7218f152d28633899bfa49dcf578aa989 Mon Sep 17 00:00:00 2001 From: kares Date: Fri, 18 May 2012 22:00:32 +0200 Subject: [PATCH] allow for jar path overrides for experimenting --- lib/rhino.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rhino.rb b/lib/rhino.rb index dc4544e..c1de82b 100644 --- a/lib/rhino.rb +++ b/lib/rhino.rb @@ -1,9 +1,9 @@ require 'java' -require 'rhino/rhino-1.7R3.jar' - module Rhino + require defined?(Rhino::JAR_PATH) ? JAR_PATH : 'rhino/rhino-1.7R3.jar' + # This module contains all the native Rhino objects implemented in Java # e.g. Rhino::JS::NativeObject # => org.mozilla.javascript.NativeObject module JS