1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00

update version and readmes. bump version number

This commit is contained in:
Charles Lowell 2009-11-11 21:19:27 -05:00
parent d3cc953c14
commit 4611dee3ff
4 changed files with 11 additions and 5 deletions

View file

@ -1,5 +1,11 @@
=== 1.72.3 2009 11-11 === 1.72.4 2009-11-12
* 1 major enhancement * 3 major enhancements:
* automatically wrap/unwrap ruby and javascript arrays
* automatically convert ruby method objects and Proc objects into javascript functions
* Make functions defined in javascript callable from ruby
=== 1.72.3 2009-11-11
* 4 major enhancements:
* greatly simplified interface to context by unifying context and scope * greatly simplified interface to context by unifying context and scope
* remove Context#open_std() * remove Context#open_std()
* remove Context#standard * remove Context#standard

View file

@ -26,7 +26,7 @@ Embed the Mozilla Rhino Javascript interpreter into Ruby
# evaluate a ruby function from javascript # evaluate a ruby function from javascript
Rhino::Context.open do |context| Rhino::Context.open do |context|
context["say"] = function {|word, times| word * times} context["say"] = lambda {|word, times| word * times}
context.eval("say("Hello", 3)") #=> HelloHelloHello context.eval("say("Hello", 3)") #=> HelloHelloHello
end end

View file

@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
module Rhino module Rhino
VERSION = '1.72.3' VERSION = '1.72.4'
require 'rhino/java' require 'rhino/java'
require 'rhino/context' require 'rhino/context'
require 'rhino/wormhole' require 'rhino/wormhole'

View file

@ -66,7 +66,7 @@ describe Rhino::Context do
it "can call ruby functions from javascript" do it "can call ruby functions from javascript" do
Context.open do |cxt| Context.open do |cxt|
cxt["say"] = function {|word, times| word * times} cxt["say"] = lambda {|word, times| word * times}
cxt.eval("say('Hello',2)").should == "HelloHello" cxt.eval("say('Hello',2)").should == "HelloHello"
end end
end end