ChatOps for Ruby.
Includes all the changes in v4.8.0.beta1 to make Lita work better with the latest version of Ruby and the latest gems.
Features:
Lita.default_locale
is added to set I18n.default_locale
, which should be preferred to Lita.locale
because it affects all threads.config.robot.default_locale
added as a configuration attribute, which should be preferred to config.robot.locale
for the same reason.Lita.default_locale
will be set based on the environment variable LANG
, just as Lita.locale
has previously.This is a maintenance release to address Ruby version and dependency issues that have cropped up in the years since the v4.7.1 release. It is released as a beta because it has not been thoroughly tested with other gems in the Lita ecosystem. If you use this and find any compatibility issues or bugs introduced since v4.7.1, please report them via the issues page.
Updates:
Fixes:
Features:
Lita::Message#extensions
has been added as a place for plugins to store arbitrary metadata associated with a message.Bug fixes:
replies
method in RSpec examples to always return the value it had when it was first called.Features:
Lita::Adapter#chat_service
. This is available to handers through Lita::Robot#chat_service
. See the Slack adapter for an example.Lita::Adapters::Test
has been extracted from the Lita::RSpec
internals and can be used to build integrations for other testing frameworks.Improvements:
send_message
and send_command
helper methods in RSpec now accept a boolean :privately
option for marking the message as private.Bug fixes:
Features:
render_template_with_helpers
method, which lets you pass in an array of modules to extend onto the template evaluation context.:message_dispatched
, fired every time an incoming message matches a handler's chat route. The payload includes the message, the route, the handler class, and the robot.:route_authorization_failed
, fired whenever an incoming message fails to match a route because the sending user was not in the proper authorization group. The payload includes the message, the route, and the robot.Improvements:
send_message
and send_command
helper methods in RSpec now take a :from
option to specify the source room.Lita::Message#room_object
, Lita::Message#private_message?
, Lita::Response#private_message?
, and Lita::Response#room
.#inspect
output for Lita::Robot
objects, making test failure output easier to read.Lita
registry in generated plugin files now uses self
so it's less painful if you decide to rename the plugin.Bug fixes:
Lita::Room
object.Lita::Robot#persisted_rooms
is now public.Lita::Robot#roster
now publicly exposes Lita::Adapter#roster
, as was intended for version 4.4.0.See v4.4.0 for the full details of the 4.4 release.