From fda847bf583b9cc02eda341730d53887302ffe57 Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Tue, 14 Apr 2020 19:42:37 +0200 Subject: refactor: httputil no longer core module see #38 This is intended to make testing/mocking of the http client easier. --- lib/rbot/ircbot.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/rbot/ircbot.rb') diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index ddbc6eb6..3c508229 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -50,6 +50,7 @@ require 'rbot/registry' require 'rbot/plugins' require 'rbot/message' require 'rbot/language' +require 'rbot/httputil' module Irc @@ -471,6 +472,7 @@ class Bot @plugins = nil @lang = Language.new(self, @config['core.language']) + @httputil = Utils::HttpUtil.new(self) begin @auth = Auth::manager @@ -1236,6 +1238,7 @@ class Bot debug "\tignoring cleanup error: #{$!}" end end + @httputil.cleanup # debug "\tstopping timers ..." # @timer.stop # debug "Closing registries" -- cgit v1.2.3