Skip to content

Commit 51b91e7

Browse files
committed
Release 1.1.9:
* Until rest-client-components is updated, limit rest-client to < 1.8 * Exclude anything including the CSVW namespace context from matching in `Format.detect` so that JSON-LD doesn't greedily process something that CSVW should. * Use the jsonlint gem (if installed) to check for validation errors. Reader always turns JsonLdError exceptions into RDF::ReaderError. * Make API consistently return either result of yield, or the result. This allows a better flow when blocks are used and the results come from the evaluated block. * Update flatten and frame algorithms based on pyLd implementation. * Remove deprecated `#write_graph` method.
2 parents 6bbd621 + 5770026 commit 51b91e7

23 files changed

+636
-570
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ rvm:
99
- 2.1
1010
- 2.2
1111
- jruby
12-
- rbx-2
1312
cache: bundler
13+
sudo: false
1414
matrix:
1515
allow_failures:
16-
- rvm: 2.2
16+
- rvm: 2.2
17+
- rbx-2
1718

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ source "https://rubygems.org"
33
gemspec
44
gem 'rdf', git: "git://github.com/ruby-rdf/rdf.git", branch: "develop"
55
gem 'rdf-spec', git: "git://github.com/ruby-rdf/rdf-spec.git", branch: "develop"
6+
gem 'jsonlint', git: "git://github.com/dougbarth/jsonlint.git", platforms: [:rbx, :mri]
67

78
group :development do
89
gem 'rdf-turtle', git: "git://github.com/ruby-rdf/rdf-turtle.git", branch: "develop"
910
gem 'rdf-trig', git: "git://github.com/ruby-rdf/rdf-trig.git", branch: "develop"
1011
end
1112

13+
group :development, :test do
14+
gem 'simplecov', require: false
15+
gem 'coveralls', require: false
16+
gem 'psych', :platforms => [:mri, :rbx]
17+
end
18+
1219
group :debug do
1320
gem "wirble"
1421
gem "linkeddata"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
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)
7+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/json-ld/badge.svg)](https://coveralls.io/r/ruby-rdf/json-ld)
78

89
## Features
910

1011
JSON::LD parses and serializes [JSON-LD][] into [RDF][] and implements expansion, compaction and framing API interfaces.
1112

1213
JSON::LD can now be used to create a _context_ from an RDFS/OWL definition, and optionally include a JSON-LD representation of the ontology itself. This is currently accessed through the `script/gen_context` script.
1314

15+
If the [jsonlint][] gem is installed, it will be used when validating an input document.
16+
1417
Install with `gem install json-ld`
1518

1619
### JSON-LD Streaming Profile
@@ -301,3 +304,4 @@ see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
301304
[JSON-LD API]: http://www.w3.org/TR/json-ld-api/ "JSON-LD 1.0 Processing Algorithms and API"
302305
[JSON-LD Framing]: http://json-ld.org/spec/latest/json-ld-framing/ "JSON-LD Framing 1.0"
303306
[Promises]: http://dom.spec.whatwg.org/#promises
307+
[jsonlint]: https://rubygems.org/gems/jsonlint

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.8
1+
1.1.9

json-ld.gemspec

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,18 @@ Gem::Specification.new do |gem|
2828
gem.required_ruby_version = '>= 1.9.2'
2929
gem.requirements = []
3030
gem.add_runtime_dependency 'rdf', '~> 1.1', '>= 1.1.7'
31-
gem.add_development_dependency 'yard' , '~> 0.8'
31+
gem.add_development_dependency 'jsonlint', '~> 0.1.0' unless RUBY_ENGINE == "jruby"
3232
gem.add_development_dependency "rack-cache", '~> 1.2'
33-
gem.add_development_dependency "rest-client", '~> 1.7'
34-
gem.add_development_dependency "rest-client-components", '~> 1.3'
35-
gem.add_development_dependency 'rspec', '~> 3.0'
36-
gem.add_development_dependency 'rspec-its', '~> 1.0'
33+
gem.add_development_dependency "rest-client", '~> 1.8'
34+
gem.add_development_dependency "rest-client-components", '~> 1.4'
35+
gem.add_development_dependency 'rdf-isomorphic', '~> 1.1'
3736
gem.add_development_dependency 'rdf-spec', '~> 1.1'
38-
gem.add_development_dependency 'rdf-turtle', '~> 1.1'
3937
gem.add_development_dependency 'rdf-trig', '~> 1.1'
40-
gem.add_development_dependency 'rdf-isomorphic', '~> 1.1'
38+
gem.add_development_dependency 'rdf-turtle', '~> 1.1'
4139
gem.add_development_dependency 'rdf-xsd', '~> 1.1'
40+
gem.add_development_dependency 'rspec', '~> 3.0'
41+
gem.add_development_dependency 'rspec-its', '~> 1.0'
42+
gem.add_development_dependency 'yard' , '~> 0.8'
4243

4344
gem.post_install_message = nil
4445
end

0 commit comments

Comments
 (0)