lib/lita/config.rb in lita-2.2.0 vs lib/lita/config.rb in lita-2.2.1
- old
+ new
@@ -3,11 +3,11 @@
class Config < Hash
class << self
# Initializes a new Config object with the default settings.
# @return [Lita::Config] The default configuration.
def default_config
- config = new.tap do |c|
+ new.tap do |c|
c.robot = new
c.robot.name = "Lita"
c.robot.adapter = :shell
c.robot.log_level = :info
c.robot.admins = nil
@@ -15,12 +15,11 @@
c.http = new
c.http.port = 8080
c.http.debug = false
c.adapter = new
c.handlers = new
+ load_handler_configs(c)
end
- load_handler_configs(config)
- config
end
# Loads configuration from a user configuration file.
# @param config_path [String] The path to the configuration file.
# @return [void]