lib/lita/config.rb in lita-3.3.1 vs lib/lita/config.rb in lita-4.0.0.rc1

- old
+ new

@@ -1,7 +1,8 @@ module Lita # An object that stores various user settings that affect Lita's behavior. + # @deprecated Will be removed in Lita 5.0. Use {Lita::Configuration} instead. class Config < Hash class << self # Initializes a new Config object with the default settings. # @return [Lita::Config] The default configuration. def default_config @@ -11,27 +12,9 @@ load_http_configs(c) c.adapter = new c.handlers = new load_handler_configs(c) end - end - - # Loads configuration from a user configuration file. - # @param config_path [String] The path to the configuration file. - # @return [void] - def load_user_config(config_path = nil) - config_path = "lita_config.rb" unless config_path - - begin - load(config_path) - rescue Exception => e - Lita.logger.fatal I18n.t( - "lita.config.exception", - message: e.message, - backtrace: e.backtrace.join("\n") - ) - abort - end if File.exist?(config_path) end private # Adds and populates a Config object to Lita.config.handlers for every