Skip to content

Commit 8314047

Browse files
committed
Use RDF::Util::Cache instead of LRURedux::Cache.
1 parent 8ddd873 commit 8314047

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

json-ld.gemspec

100755100644
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Gem::Specification.new do |gem|
2828
gem.add_runtime_dependency 'rdf', '~> 3.1'
2929
gem.add_runtime_dependency 'multi_json', '~> 1.14'
3030
gem.add_runtime_dependency 'link_header', '~> 0.0', '>= 0.0.8'
31-
gem.add_runtime_dependency 'lru_redux', '~> 1.1'
3231
gem.add_runtime_dependency 'json-canonicalization', '~> 0.2'
3332
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
3433
gem.add_runtime_dependency 'rack', '~> 2.0'

lib/json/ld/context.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'json'
44
require 'bigdecimal'
55
require 'set'
6-
require 'lru_redux'
6+
require 'rdf/util/cache'
77

88
begin
99
# Attempt to load this to avoid unnecessary context fetches
@@ -139,7 +139,7 @@ def self.parse(local_context,
139139
# @return [RDF::Util::Cache]
140140
# @private
141141
def self.cache
142-
@cache ||= LruRedux::Cache.new(CACHE_SIZE)
142+
@cache ||= RDF::Util::Cache.new(CACHE_SIZE)
143143
end
144144

145145
##
@@ -148,7 +148,7 @@ def self.cache
148148
# @return [RDF::Util::Cache]
149149
# @private
150150
def self.inverse_cache
151-
@inverse_cache ||= LruRedux::Cache.new(CACHE_SIZE)
151+
@inverse_cache ||= RDF::Util::Cache.new(CACHE_SIZE)
152152
end
153153

154154
##

0 commit comments

Comments
 (0)