This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
Releases: litaio/lita
Releases · litaio/lita
4.4.0
- 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 ofLita::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 applicableLita::Room
.Lita::Source#room
continues to return the room's unique ID as a string. - Changed:
Lita::Source
now accepts either a string or aLita::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
andpart
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 exposesLita::Adapter#roster
.
4.3.2
4.3.1
- Fixed:
Lita::User
now fully implements equality operations.
4.3.0
- 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
- 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
- Added: A new template system allows plugins to send messages with adapter-specific formatting.
4.1.0
- 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
- Changed:
Lita::Robot#name
can now be assigned.
4.0.3
Changed: Improved error messages when Redis isn't available during a test.
4.0.2
- 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.