diff --git a/CHANGELOG.md b/CHANGELOG.md index 9614647..6127e4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ +# v0.6.4 - Jan 2, 2016 + +- Add the `src/runtime.cr` file so you can now properly `require "./duktape/runtime"` once `shards` does its thing. +- Actually update the version in `shard.yml` (my mistake - sorry!). + # v0.6.3 - Jan 2, 2016 +**NOTE - This release has issues, use `0.6.4` instead.** + - Rework the internal require order and `duktape/base`. - Add a `Duktape::Runtime` class that lessens the need for low-level API calls for many use-cases. This must be required using `require "duktape/runtime"`. diff --git a/README.md b/README.md index c3897aa..de7e439 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ version: 1.0.0 # your project's version dependencies: duktape: github: jessedoyle/duktape.cr - version: ~> 0.6.3 + version: ~> 0.6.4 ``` then execute: diff --git a/shard.yml b/shard.yml index becc050..7cc5c75 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: duktape.cr -version: 0.6.2 +version: 0.6.4 authors: - Jesse Doyle diff --git a/src/duktape/runtime.cr b/src/duktape/runtime.cr index d80fc8e..4820df3 100644 --- a/src/duktape/runtime.cr +++ b/src/duktape/runtime.cr @@ -17,7 +17,7 @@ module Duktape # # ``` # rt = Duktape::Runtime.new - # rt.eval("Math.PI") #=> 3.14159 + # rt.eval("Math.PI") # => 3.14159 # ``` # # The Runtime class also allows for javascript initialization code: @@ -29,7 +29,7 @@ module Duktape # JS # end # - # rt.eval("add_one", 42) #=> 43 + # rt.eval("add_one", 42) # => 43 # ``` # # The Runtime class is not loaded by default and must be required before @@ -85,8 +85,8 @@ module Duktape # The property string can include parent objects: # # ``` - # rt = Duktape::Runtime.new - # rt.call("JSON.stringify", 123) #=> "123" + # rt = Duktape::Runtime.new + # rt.call("JSON.stringify", 123) # => "123" # ``` # def call(prop : String, *args) @@ -97,8 +97,8 @@ module Duktape # array of strings with the supplied arguments. # # ``` - # rt = Duktape::Runtime.new - # rt.call(["Math", "PI"]) #=> 3.14159 + # rt = Duktape::Runtime.new + # rt.call(["Math", "PI"]) # => 3.14159 # ``` # def call(props : Array(String), *args) @@ -141,7 +141,7 @@ module Duktape # # ``` # rt = Duktape::Runtime.new - # rt.exec("1 + 1") #=> nil + # rt.exec("1 + 1") # => nil # ``` # def exec(source : String) diff --git a/src/duktape/version.cr b/src/duktape/version.cr index 0f3d334..cebdefc 100644 --- a/src/duktape/version.cr +++ b/src/duktape/version.cr @@ -16,7 +16,7 @@ module Duktape module VERSION MAJOR = 0 MINOR = 6 - TINY = 3 + TINY = 4 PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].compact.join "." diff --git a/src/runtime.cr b/src/runtime.cr new file mode 100644 index 0000000..27d9134 --- /dev/null +++ b/src/runtime.cr @@ -0,0 +1,7 @@ +# runtime.cr: simplified Duktape call/eval interface +# +# Copyright (c) 2016 Jesse Doyle. All rights reserved. +# +# This is free software. Please see LICENSE for details. + +require "./duktape/runtime"