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

Releases: litaio/lita

4.4.0

10 Jun 11:52
Compare
Choose a tag to compare
  • Added: Lita::Robot#mention_format will turn a user's mention name into the format used to notify them for the loaded adapter.
  • Added: Lita::Room is the equivalent of Lita::User but for a chat room. It supports a nearly identical interface, persisting the room's unique ID and a hash of arbitrary metadata to Redis.
  • Added: Lita::Source#room_object is applicable Lita::Room. Lita::Source#room continues to return the room's unique ID as a string.
  • Changed: Lita::Source now accepts either a string or a Lita::Room object for its :room keyword argument.
  • Added: Lita::Adapter now supports a new abstract method, roster, for returning a list of users in a room.
  • Changed: Rooms targeted by the join and part commands are now persisted to Redis. Adapters can use this persistent list to keep track of which rooms the robot should join when it starts. The :loaded event now includes a new key/value pair in its payload: :room_ids, containing an array of string IDs of these rooms.
  • Added: New configuration attribute: config.robot.log_formatter accepts a proc that will be used to format log messages.
  • Fixed: Various missing API documentation blocks have been added.

The following change was accidentally left out of this release, but has been released in v4.4.1:

  • Fixed: Lita::Robot#roster now publicly exposes Lita::Adapter#roster.

4.3.2

03 Apr 08:05
Compare
Choose a tag to compare
  • Changed: Generated plugins default to version 0.1.0 per SemVer.
  • Changed: When config.adapters.shell.private_chat is false, the shell chat better simulates a group chat room by labeling the room "shell" in Lita::Source objects.

4.3.1

19 Mar 01:57
Compare
Choose a tag to compare
  • Fixed: Lita::User now fully implements equality operations.

4.3.0

13 Mar 19:40
Compare
Choose a tag to compare
  • Added: New :config_finalized extension hook, triggered after configuration has been processed and frozen, but before the robot starts.
  • Added: Generated plugins now include the pry-byebug gem by default.
  • Added: Travis CI and Coveralls.io badges can now be generated automatically for README.md when generating a plugin.
  • Added: New configuration attribute for a custom callback to be invoked whenever an exception is raised.
  • Added: Register multiple handlers for an RSpec spec with the new :additional_lita_handlers metadata.
  • Fixed: Removed further references to the MIT license.

4.2.1

27 Feb 09:55
Compare
Choose a tag to compare
  • Changed: Generating a Lita plugin no longer automatically adds the MIT license to the project.
  • Changed: Interactive questions in Lita's command line interface have had their input formats and default values clarified.

4.2.0

27 Feb 10:01
Compare
Choose a tag to compare
  • Added: A new template system allows plugins to send messages with adapter-specific formatting.

4.1.0

11 Jan 11:55
Compare
Choose a tag to compare
  • Added: A new built-in handler provides the users find command which allows a user's ID, name, and mention name to be looked up.

4.0.4

09 Dec 11:55
Compare
Choose a tag to compare
  • Changed: Lita::Robot#name can now be assigned.

4.0.3

07 Dec 07:08
Compare
Choose a tag to compare

Changed: Improved error messages when Redis isn't available during a test.

4.0.2

01 Nov 00:18
Compare
Choose a tag to compare
  • Fixed: Rack middleware that require initialization arguments can now be registered with the built-in HTTP server.
  • Added: Adapters now have a #log method just like handlers.