From ae2b4801c1a06b61ae913cd4ae738a79fcab9532 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Fri, 17 Jul 2020 10:39:40 +0200 Subject: [PATCH] Better requirements handling. --- spec/cached.cr | 5 +++-- src/cached.cr | 2 -- src/dodb.cr | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/cached.cr b/spec/cached.cr index e61734b..8c8bc6d 100644 --- a/spec/cached.cr +++ b/spec/cached.cr @@ -1,7 +1,7 @@ require "spec" require "file_utils" -require "../src/cached.cr" +require "../src/dodb.cr" require "./test-data.cr" @@ -113,7 +113,8 @@ describe "DODB::DataBase::Cached" do # db_ships_by_name.get?(ship.name).should eq(ship) # end # end -# +# end + # it "raise on index overload" do # db = DODB::SpecDataBase.new # diff --git a/src/cached.cr b/src/cached.cr index e663309..e1a3de6 100644 --- a/src/cached.cr +++ b/src/cached.cr @@ -1,8 +1,6 @@ require "file_utils" require "json" -require "./dodb.cr" - class Hash(K,V) def reverse rev = Array(Tuple(K,V)).new diff --git a/src/dodb.cr b/src/dodb.cr index 2a34db6..4042ef0 100644 --- a/src/dodb.cr +++ b/src/dodb.cr @@ -336,3 +336,4 @@ class DODB::DataBase(V) end end +require "./cached.cr"