Description: Use hashery's LRU implementation
 We don't have ruby-rufus-lru in the archive, but hashery's implementation is
 sufficiently compatible.
Author: Stefano Rivera <stefanor@debian.org>
Last-Update: 2016-07-25
Forwarded: not-needed

--- a/lib/foodcritic/api.rb
+++ b/lib/foodcritic/api.rb
@@ -1,5 +1,5 @@
 require "nokogiri"
-require "rufus-lru"
+require "hashery/lru_hash"
 
 module FoodCritic
   # Helper methods that form part of the Rules DSL.
@@ -246,7 +246,7 @@
 
     # Read the AST for the given Ruby source file
     def read_ast(file)
-      @ast_cache ||= Rufus::Lru::Hash.new(5)
+      @ast_cache ||= Hashery::LRUHash.new(5)
       if @ast_cache.include?(file)
         @ast_cache[file]
       else
--- a/foodcritic.gemspec
+++ b/foodcritic.gemspec
@@ -17,7 +17,7 @@
   s.add_dependency("treetop", "~> 1.4")
   s.add_dependency("yajl-ruby", "~> 1.1")
   s.add_dependency("erubis")
-  s.add_dependency("rufus-lru", "~> 1.0")
+  s.add_dependency("hashery")
   s.files = Dir["chef_dsl_metadata/*.json"] +
     Dir["lib/**/*.rb"] +
     Dir["misc/**/*"]
