Skip to content

Commit 8ddd873

Browse files
committed
Remove json-stream dependency.
1 parent b73aae0 commit 8ddd873

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

json-ld.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ Gem::Specification.new do |gem|
3030
gem.add_runtime_dependency 'link_header', '~> 0.0', '>= 0.0.8'
3131
gem.add_runtime_dependency 'lru_redux', '~> 1.1'
3232
gem.add_runtime_dependency 'json-canonicalization', '~> 0.2'
33-
gem.add_runtime_dependency 'json-stream', '~> 0.2'
34-
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
33+
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
3534
gem.add_runtime_dependency 'rack', '~> 2.0'
3635
gem.add_development_dependency 'sinatra-linkeddata','~> 3.1'
3736
gem.add_development_dependency 'jsonlint', '~> 0.3' unless is_java

lib/json/ld/streaming_reader.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require 'json/ld'
33
require 'json/ld/expand'
44
require 'json/ld/to_rdf'
5-
require 'json/stream'
65

76
module JSON::LD
87
##
@@ -42,7 +41,7 @@ def stream_statement(&block)
4241
block.call(st)
4342
end
4443
end
45-
rescue ::JSON::Stream::ParserError, ::JSON::ParserError, ::JSON::LD::JsonLdError => e
44+
rescue ::JSON::ParserError, ::JSON::LD::JsonLdError => e
4645
log_fatal("Failed to parse input document: #{e.message}", exception: RDF::ReaderError)
4746
end
4847

0 commit comments

Comments
 (0)