Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Releases: litaio/lita

2.1.2

22 Jul 17:59
Compare
Choose a tag to compare
  • Fixed: Lita should now correctly ignore messages from itself.

2.1.1

11 Jul 10:24
Compare
Choose a tag to compare
  • Fixed: A regression in 2.1.0 that caused negative route expectations in Lita::RSpec to give false positives.

2.1.0

11 Jul 04:35
Compare
Choose a tag to compare
  • Added: New method: Lita::Authorization.groups.
  • Added: New method: Lita::Authorization.groups_with_users.
  • Added: New command for the authorization handler: auth list.
  • Changed: If a handler crashes, the backtrace will be logged, but it will not crash the robot.
  • Fixed: A change in the rspec gem v2.14.1 caused Lita::RSpec to fail to load.

2.0.0

06 Jul 08:19
Compare
Choose a tag to compare
  • New help system
    • self.help method is no longer supported
    • Handler routes now take a :help option
  • HTTP server and routing
    • New Lita.config.http configuration options
    • Handler.http method for defining HTTP server routes
    • Handler HTTP callback methods take a Rack::Request and Rack::Response
  • Handler#http for outgoing HTTP requests, backed by Faraday
  • Built-in web handler for basic info about Lita (GET /lita/info)
  • New testing system
    • Enable RSpec extra with lita_handler: true instead of lita: true
    • Use lita: true for non-handler-specific tests that need the logger stubbed, interact with Redis, or use Lita.config
    • New routing helper method:
      • routes_command
    • New HTTP routing helper methods
      • routes_http
      • doesnt_route_http (alias: does_not_route_http)
    • Integration helper methods changes
      • expect_reply and expect_no_reply (and aliases) removed
      • Replaced with an array of all sent messages called replies
      • Use normal RSpec expectations on replies
      • send_test_message replaced with send_message and send_command
      • Send a message or command as a specific user with the :as option
    • Logger is stubbed during testing
    • Lita.config is cleared before each example
  • Handlers
    • route now takes the method name as a second argument instead of using the :to option.
    • Default configuration hook via Handler.default_config
    • Lita::Response, a new object for handlers to interact with
      • Many top-level methods moved from Handler to the response object
        • reply
        • args
        • user
        • matches
        • command? (now on the message object only)
        • scan (now on the message object only)
  • Shell adapter
    • Lita.config.adapter.private_chat = true treats all messages as directed to Lita
    • "Shell User" is created in Redis so handlers can look it up
  • Lita.clear_config method added to reset all configuration
  • Robot mention name is now case insensitive

1.1.2

03 Jul 12:02
Compare
Choose a tag to compare
  • Fixed a bug where User objects would raise an exception when compared against non-User objects.

1.1.1

03 Jul 12:01
Compare
Choose a tag to compare
  • Fixed broken internals in the authorization API. Auth commands will now correctly detect the user making the command and will normalize group names so that capitalization and white space don't matter.

1.1.0

03 Jul 12:01
Compare
Choose a tag to compare
  • Added a new configuration: config.robot.mention_name. This allows the display name of the robot config.robot.name to differ from the name Lita uses to detect a message as a command. For example, on HipChat, Lita's name might be displayed as "Lita Bot", but might be mentioned in messages with "LitaBot". This value will default to config.robot.name if not set.

1.0.0

03 Jul 11:59
Compare
Choose a tag to compare

First stable release.

0.0.1

03 Jul 11:58
Compare
Choose a tag to compare

Initial release.