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:
parent
d3cc953c14
commit
4611dee3ff
4 changed files with 11 additions and 5 deletions
10
History.txt
10
History.txt
|
@ -1,5 +1,11 @@
|
|||
=== 1.72.3 2009 11-11
|
||||
* 1 major enhancement
|
||||
=== 1.72.4 2009-11-12
|
||||
* 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
|
||||
* remove Context#open_std()
|
||||
* remove Context#standard
|
||||
|
|
|
@ -26,7 +26,7 @@ Embed the Mozilla Rhino Javascript interpreter into Ruby
|
|||
# evaluate a ruby function from javascript
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|||
|
||||
|
||||
module Rhino
|
||||
VERSION = '1.72.3'
|
||||
VERSION = '1.72.4'
|
||||
require 'rhino/java'
|
||||
require 'rhino/context'
|
||||
require 'rhino/wormhole'
|
||||
|
|
|
@ -66,7 +66,7 @@ describe Rhino::Context do
|
|||
|
||||
it "can call ruby functions from javascript" do
|
||||
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"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue