Skip to content

Commit

Permalink
Update dependencies and relax dependencies on rack and sinatra.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Mar 20, 2023
1 parent 32d4deb commit 742eecb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 deletions.
10 changes: 5 additions & 5 deletions json-ld.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'multi_json', '~> 1.15'
gem.add_runtime_dependency 'link_header', '~> 0.0', '>= 0.0.8'
gem.add_runtime_dependency 'json-canonicalization', '~> 0.3'
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
gem.add_runtime_dependency 'rack', '~> 2.2'
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
gem.add_runtime_dependency "rack", '>= 2.2', '< 4'
gem.add_development_dependency 'sinatra-linkeddata','~> 3.2'
gem.add_development_dependency 'jsonlint', '~> 0.3' unless is_java
gem.add_development_dependency 'oj', '~> 3.13' unless is_java
gem.add_development_dependency 'oj', '~> 3.14' unless is_java
gem.add_development_dependency 'yajl-ruby', '~> 1.4' unless is_java
gem.add_development_dependency 'rack-test', '~> 1.1'
gem.add_development_dependency 'rack-test', '>= 1.1', '< 3'
gem.add_development_dependency 'rdf-isomorphic', '~> 3.2'
gem.add_development_dependency 'rdf-spec', '~> 3.2'
gem.add_development_dependency 'rdf-trig', '~> 3.2'
gem.add_development_dependency 'rdf-turtle', '~> 3.2'
gem.add_development_dependency 'rdf-vocab', '~> 3.2'
gem.add_development_dependency 'rdf-xsd', '~> 3.2'
gem.add_development_dependency 'rspec', '~> 3.11'
gem.add_development_dependency 'rspec', '~> 3.12'
gem.add_development_dependency 'rspec-its', '~> 1.3'
gem.add_development_dependency 'yard' , '~> 0.9'

Expand Down
43 changes: 43 additions & 0 deletions spec/frame_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2463,6 +2463,49 @@
}),
processingMode: "json-ld-1.1"
},
"issue #142": {
input: %({
"@context":{
"ex":"http://example.org/vocab#",
"ex:info":{"@type":"@json"},
"ex:other":{"@type":"@json"}
},
"@id":"http://example.org/test/#library",
"@type":"ex:Library",
"ex:info":{
"author":"JOHN",
"pages":200
},
"ex:other":{
"publisher":"JANE"
}
}),
frame: %({
"@context":{
"ex":"http://example.org/vocab#",
"ex:info":{"@type":"@json"},
"ex:other":{"@type":"@json"}
},
"http://example.org/vocab#info":{}
}),
output: %({
"@context": {
"ex": "http://example.org/vocab#",
"ex:info": {"@type": "@json"},
"ex:other": {"@type": "@json"}
},
"@id": "http://example.org/test/#library",
"@type": "ex:Library",
"ex:info": {
"author": "JOHN",
"pages": 200
},
"ex:other": {
"publisher": "JANE"
}
}),
processingMode: "json-ld-1.1"
}
}.each do |title, params|
it title do
do_frame(params)
Expand Down

0 comments on commit 742eecb

Please sign in to comment.