mirror of
https://github.com/rubyjs/mini_racer
synced 2023-03-27 23:21:28 -04:00
bump version add changelog
This commit is contained in:
parent
bb45453c9d
commit
9acac94539
3 changed files with 20 additions and 6 deletions
13
CHANGELOG
13
CHANGELOG
|
|
@ -1,19 +1,26 @@
|
|||
19-05-2016
|
||||
|
||||
- 0.1.3
|
||||
|
||||
- Support more conversions from Ruby back to JS (Hash, Symbol, Array)
|
||||
- Support attaching nested objects
|
||||
|
||||
|
||||
17-05-2016
|
||||
|
||||
- 0.0.2
|
||||
- 0.1.2
|
||||
|
||||
- Gemspec specifies minimal version of Ruby (2.0)
|
||||
- Implement #load on Context to load files
|
||||
|
||||
17-05-2016
|
||||
|
||||
- 0.0.1
|
||||
- 0.1.1
|
||||
|
||||
- Added unblock function so SIGINT does not lead to a crash
|
||||
|
||||
14-05-2016
|
||||
|
||||
- 0.0.1.beta.1
|
||||
- 0.1.1.beta.1
|
||||
|
||||
- First release
|
||||
|
|
|
|||
11
README.md
11
README.md
|
|
@ -29,11 +29,18 @@ You can attach one or many ruby proc that can be accessed via JavaScript
|
|||
|
||||
```ruby
|
||||
context = MiniRacer::Context.new
|
||||
context.attach("adder", proc{|a,b| a+b})
|
||||
puts context.eval 'adder(20,22)'
|
||||
context.attach("math.adder", proc{|a,b| a+b})
|
||||
puts context.eval 'math.adder(20,22)'
|
||||
# => 42
|
||||
```
|
||||
|
||||
```ruby
|
||||
context = MiniRacer::Context.new
|
||||
context.attach("array_and_hash", proc{{a: 1, b: [1, {a: 1}]}})
|
||||
puts context.eval 'array_and_hash()'
|
||||
# => {"a" => 1, "b" => [1, {"a" => 1}]}
|
||||
```
|
||||
|
||||
### GIL free JavaScript execution
|
||||
|
||||
The Ruby Global interpreter lock is released when scripts are executing
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
module MiniRacer
|
||||
VERSION = "0.1.0"
|
||||
VERSION = "0.1.3"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue