From f8e85aa40bfc1118acd1e29de75f3befc9dc6266 Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Wed, 8 Apr 2020 22:16:43 +0200 Subject: fix: in-memory registry persist correctly --- lib/rbot/registry/mem.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/rbot/registry/mem.rb b/lib/rbot/registry/mem.rb index 85d52b15..0664ad39 100644 --- a/lib/rbot/registry/mem.rb +++ b/lib/rbot/registry/mem.rb @@ -13,9 +13,20 @@ class Registry class MemAccessor < AbstractAccessor + def initialize(filename) + super(filename) + @data = {} + end + def registry super - @registry = {} + @registry = @data + end + + def close + end + + def flush end def dbexists? -- cgit v1.2.3