Skip to content

Commit 7c8934c

Browse files
committed
Finish 1.0.6
2 parents 6f7b622 + 77ea19a commit 7c8934c

36 files changed

+1764
-850
lines changed

.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Gem::Specification.new do |gem|
2727

2828
gem.required_ruby_version = '>= 1.9.2'
2929
gem.requirements = []
30-
gem.add_runtime_dependency 'rdf', '>= 1.0.7'
30+
gem.add_runtime_dependency 'rdf', '>= 1.0.8'
3131
gem.add_runtime_dependency 'json', '>= 1.7.5'
3232
gem.add_development_dependency 'equivalent-xml' , '>= 0.2.8'
3333
gem.add_development_dependency 'open-uri-cached', '>= 0.0.5'

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ rvm:
77
- 1.9.3
88
- 2.0.0
99
- jruby-19mode
10-
- rbx-19mode
10+
# - rbx-19mode

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# JSON-LD reader/writer
22

3-
[JSON-LD][] reader/writer for [RDF.rb][RDF.rb] and fully conforming [JSON-LD][] processor.
3+
[JSON-LD][] reader/writer for [RDF.rb][RDF.rb] and fully conforming [JSON-LD API][] processor. Additionally this gem implements [JSON-LD Framing][].
44

55
[![Gem Version](https://badge.fury.io/rb/json-ld.png)](http://badge.fury.io/rb/json-ld)
66
[![Build Status](https://secure.travis-ci.org/ruby-rdf/json-ld.png?branch=master)](http://travis-ci.org/ruby-rdf/json-ld)
@@ -220,13 +220,12 @@ Install with `gem install json-ld`
220220
Full documentation available on [RubyDoc](http://rubydoc.info/gems/json-ld/file/README.md)
221221

222222
## Differences from [JSON-LD API][]
223-
The specified JSON-LD API is based on a WebIDL definition intended for use within the browser.
223+
The specified JSON-LD API is based on a WebIDL definition implementing [Promises][] intended for use within a browser.
224224
This version implements a more Ruby-like variation of this API without the use
225-
of futures and callback arguments, preferring Ruby blocks. All API methods
226-
execute synchronously, so that the return from a method can be used as well as a block.
225+
of promises or callback arguments, preferring Ruby blocks. All API methods
226+
execute synchronously, so that the return from a method can typically be used as well as a block.
227227

228-
Note, the API method signatures differed in versions before 1.0, in that they also had
229-
a callback parameter.
228+
Note, the API method signatures differed in versions before 1.0, in that they also had a callback parameter. And 1.0.6 has some other minor method signature differences than previous versions. This should be the only exception to the use of semantic versioning.
230229

231230
### Principal Classes
232231
* {JSON::LD}
@@ -288,5 +287,7 @@ see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
288287
[PDD]: http://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
289288
[RDF.rb]: http://rubygems.org/gems/rdf
290289
[Backports]: http://rubygems.org/gems/backports
291-
[JSON-LD]: http://json-ld.org/spec/latest/
292-
[JSON-LD API]: http://json-ld.org/spec/latest/json-ld-api/
290+
[JSON-LD]: http://www.w3.org/TR/json-ld/ "JSON-LD 1.0"
291+
[JSON-LD API]: http://www.w3.org/TR/json-ld-api/ "JSON-LD 1.0 Processing Algorithms and API"
292+
[JSON-LD Framing]: http://json-ld.org/spec/latest/json-ld-framing/ "JSON-LD Framing 1.0"
293+
[Promises]: http://dom.spec.whatwg.org/#promises

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.5
1+
1.0.6

bin/jsonld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def run(input, options)
2626
prefixes = {}
2727
start = Time.new
2828
if options[:expand]
29-
output = JSON::LD::API.expand(input, options[:context], options)
29+
options = options.merge(:expandContext => options.delete(:context)) if options.has_key?(:context)
30+
output = JSON::LD::API.expand(input, options)
3031
secs = Time.new - start
3132
options[:output].puts output.to_json(JSON::LD::JSON_STATE)
3233
STDERR.puts "Expanded in #{secs} seconds." unless options[:quiet]

0 commit comments

Comments
 (0)