Skip to content

Commit 742eecb

Browse files
committed
Update dependencies and relax dependencies on rack and sinatra.
1 parent 32d4deb commit 742eecb

File tree

2 files changed

+48
-5
lines changed

2 files changed

+48
-5
lines changed

json-ld.gemspec

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ Gem::Specification.new do |gem|
3636
gem.add_runtime_dependency 'multi_json', '~> 1.15'
3737
gem.add_runtime_dependency 'link_header', '~> 0.0', '>= 0.0.8'
3838
gem.add_runtime_dependency 'json-canonicalization', '~> 0.3'
39-
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
40-
gem.add_runtime_dependency 'rack', '~> 2.2'
39+
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
40+
gem.add_runtime_dependency "rack", '>= 2.2', '< 4'
4141
gem.add_development_dependency 'sinatra-linkeddata','~> 3.2'
4242
gem.add_development_dependency 'jsonlint', '~> 0.3' unless is_java
43-
gem.add_development_dependency 'oj', '~> 3.13' unless is_java
43+
gem.add_development_dependency 'oj', '~> 3.14' unless is_java
4444
gem.add_development_dependency 'yajl-ruby', '~> 1.4' unless is_java
45-
gem.add_development_dependency 'rack-test', '~> 1.1'
45+
gem.add_development_dependency 'rack-test', '>= 1.1', '< 3'
4646
gem.add_development_dependency 'rdf-isomorphic', '~> 3.2'
4747
gem.add_development_dependency 'rdf-spec', '~> 3.2'
4848
gem.add_development_dependency 'rdf-trig', '~> 3.2'
4949
gem.add_development_dependency 'rdf-turtle', '~> 3.2'
5050
gem.add_development_dependency 'rdf-vocab', '~> 3.2'
5151
gem.add_development_dependency 'rdf-xsd', '~> 3.2'
52-
gem.add_development_dependency 'rspec', '~> 3.11'
52+
gem.add_development_dependency 'rspec', '~> 3.12'
5353
gem.add_development_dependency 'rspec-its', '~> 1.3'
5454
gem.add_development_dependency 'yard' , '~> 0.9'
5555

spec/frame_spec.rb

+43
Original file line numberDiff line numberDiff line change
@@ -2463,6 +2463,49 @@
24632463
}),
24642464
processingMode: "json-ld-1.1"
24652465
},
2466+
"issue #142": {
2467+
input: %({
2468+
"@context":{
2469+
"ex":"http://example.org/vocab#",
2470+
"ex:info":{"@type":"@json"},
2471+
"ex:other":{"@type":"@json"}
2472+
},
2473+
"@id":"http://example.org/test/#library",
2474+
"@type":"ex:Library",
2475+
"ex:info":{
2476+
"author":"JOHN",
2477+
"pages":200
2478+
},
2479+
"ex:other":{
2480+
"publisher":"JANE"
2481+
}
2482+
}),
2483+
frame: %({
2484+
"@context":{
2485+
"ex":"http://example.org/vocab#",
2486+
"ex:info":{"@type":"@json"},
2487+
"ex:other":{"@type":"@json"}
2488+
},
2489+
"http://example.org/vocab#info":{}
2490+
}),
2491+
output: %({
2492+
"@context": {
2493+
"ex": "http://example.org/vocab#",
2494+
"ex:info": {"@type": "@json"},
2495+
"ex:other": {"@type": "@json"}
2496+
},
2497+
"@id": "http://example.org/test/#library",
2498+
"@type": "ex:Library",
2499+
"ex:info": {
2500+
"author": "JOHN",
2501+
"pages": 200
2502+
},
2503+
"ex:other": {
2504+
"publisher": "JANE"
2505+
}
2506+
}),
2507+
processingMode: "json-ld-1.1"
2508+
}
24662509
}.each do |title, params|
24672510
it title do
24682511
do_frame(params)

0 commit comments

Comments
 (0)