lib/lita.rb in lita-4.0.0.rc1 vs lib/lita.rb in lita-4.0.0.rc2
- old
+ new
@@ -66,12 +66,12 @@
# Loads user configuration and starts the robot.
# @param config_path [String] The path to the user configuration file.
# @return [void]
def run(config_path = nil)
hooks[:before_run].each { |hook| hook.call(config_path: config_path) }
- Configuration.load_user_config(config_path)
- Configuration.freeze_config(config)
+ ConfigurationBuilder.load_user_config(config_path)
+ ConfigurationBuilder.freeze_config(config)
ConfigurationValidator.new(self).call
self.locale = config.robot.locale
Robot.new.run
end
end
@@ -79,11 +79,11 @@
require_relative "lita/version"
require_relative "lita/common"
require_relative "lita/errors"
require_relative "lita/config"
-require_relative "lita/configuration"
+require_relative "lita/configuration_builder"
require_relative "lita/default_configuration"
require_relative "lita/configuration_validator"
require_relative "lita/util"
require_relative "lita/logger"
require_relative "lita/callback"
@@ -104,10 +104,10 @@
require_relative "lita/rack_app"
require_relative "lita/timer"
require_relative "lita/robot"
require_relative "lita/adapter"
require_relative "lita/adapters/shell"
-require_relative "lita/builder"
+require_relative "lita/plugin_builder"
require_relative "lita/route_validator"
require_relative "lita/handlers/authorization"
require_relative "lita/handlers/help"
require_relative "lita/handlers/info"
require_relative "lita/handlers/room"