mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
a bit of README and prepare for 2.0.2
This commit is contained in:
parent
24eb2ab70c
commit
741a3c269b
3 changed files with 30 additions and 1 deletions
12
History.txt
12
History.txt
|
@ -1,3 +1,15 @@
|
|||
=== 2.0.2 2012-12-05
|
||||
|
||||
* handle Rhino's 64K code generation (method) limit on the fly (#23)
|
||||
* correct explicit Ruby equality == and eql? (JRuby 1.7.1 compat)
|
||||
* allow to set javascript version programatically - globally also allow
|
||||
reading it from system properties by default
|
||||
* allow to set optimization level globally also allow reading it from
|
||||
system properties by default
|
||||
* make sure Ruby function wrapper has (Ruby) #call semantics just like
|
||||
JavaScript functions exposed into the Ruby side
|
||||
* function's return value should be converted to Ruby (Ruby #call style)
|
||||
|
||||
=== 2.0.1 2012-08-24
|
||||
|
||||
* JSError improvement to preserve nested Ruby error message
|
||||
|
|
17
README.rdoc
17
README.rdoc
|
@ -189,6 +189,23 @@ be overriden by defining a +Rhino::JAR_PATH+ before +require 'rhino'+ e.g. :
|
|||
# ...
|
||||
require 'rhino'
|
||||
|
||||
==== Context customizations
|
||||
|
||||
Just like the JVM packaged Rhino scripting engine, therubyrhino gem supports
|
||||
specifying JavaScript context properies (optimization level and language version)
|
||||
using system properties e.g. to force interpreted mode :
|
||||
|
||||
jruby -J-Drhino.opt.level=-1 -rtherubyrhino -S ...
|
||||
|
||||
You might also set these programatically as a default for all created contexts :
|
||||
|
||||
Rhino::Context.default_optimization_level = 1
|
||||
Rhino::Context.default_javascript_version = 1.6
|
||||
|
||||
Or using plain old JAVA_OPTS e.g. when setting JavaScript version :
|
||||
|
||||
-Drhino.js.version=1.7
|
||||
|
||||
== Rhino
|
||||
|
||||
Rhino is currently maintained at https://github.com/mozilla/rhino
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module Rhino
|
||||
VERSION = "2.0.1"
|
||||
VERSION = "2.0.2"
|
||||
end
|
Loading…
Reference in a new issue