lib/lita.rb in lita-2.7.2 vs lib/lita.rb in lita-3.0.0

- old
+ new

@@ -1,16 +1,19 @@ require "forwardable" require "logger" require "rbconfig" require "set" require "shellwords" +require "thread" +require "http_router" +require "ice_nine" require "faraday" require "multi_json" +require "puma" require "rack" require "redis-namespace" -require "thin" # The main namespace for Lita. Provides a global registry of adapters and # handlers, as well as global configuration, logger, and Redis store. module Lita # The base Redis namespace for all Lita data. @@ -83,28 +86,33 @@ # 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) Config.load_user_config(config_path) + Lita.config.finalize + self.locale = Lita.config.robot.locale Robot.new.run end end end -require "lita/version" -require "lita/config" -require "lita/util" -require "lita/logger" -require "lita/user" -require "lita/source" -require "lita/authorization" -require "lita/message" -require "lita/response" -require "lita/http_route" -require "lita/rack_app" -require "lita/robot" -require "lita/adapter" -require "lita/adapters/shell" -require "lita/handler" -require "lita/handlers/authorization" -require "lita/handlers/help" -require "lita/handlers/web" +require_relative "lita/version" +require_relative "lita/common" +require_relative "lita/config" +require_relative "lita/util" +require_relative "lita/logger" +require_relative "lita/user" +require_relative "lita/source" +require_relative "lita/authorization" +require_relative "lita/message" +require_relative "lita/response" +require_relative "lita/http_route" +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/handler" +require_relative "lita/handlers/authorization" +require_relative "lita/handlers/help" +require_relative "lita/handlers/info" +require_relative "lita/handlers/room"