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

Releases: litaio/lita

v4.8.0

25 Sep 10:16
v4.8.0
Compare
Choose a tag to compare

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.

v.4.8.0.beta1

19 Aug 08:44
v4.8.0.beta1
Compare
Choose a tag to compare
v.4.8.0.beta1 Pre-release
Pre-release

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:

  • The minimum Ruby version is now 2.5.
  • Lita now requires the following versions of its dependencies:
    • bundler: >= 2.0
    • faraday: >= 1.0
    • http_router: >= 0.11
    • ice_nine: >= 0.11
    • i18n: >= 1.8
    • multi_json: >= 1.15
    • puma: >= 4.3
    • rack: >= 2.2
    • rb-readline: >= 0.5
    • redis-namespace: >= 1.7
    • thor: >= 1.0

4.7.1

16 Sep 20:30
Compare
Choose a tag to compare

Fixes:

  • An upper bound on the version of Rack Lita depends on has been added so Lita can still be installed on Ruby 2.0. (Rack 2.0 requires Ruby 2.2.)

4.7.0

02 Jan 13:05
Compare
Choose a tag to compare

Features:

  • Lita::Message#extensions has been added as a place for plugins to store arbitrary metadata associated with a message.

4.6.1

03 Sep 03:04
Compare
Choose a tag to compare

Bug fixes:

  • Fixed a regression from v4.6.0 that caused the replies method in RSpec examples to always return the value it had when it was first called.

4.6.0

29 Aug 14:54
Compare
Choose a tag to compare

Features:

  • Adapters can now implement chat-service-specific functionality by implementing Lita::Adapter#chat_service. This is available to handers through Lita::Robot#chat_service. See the Slack adapter for an example.
  • A new built-in adapter, Lita::Adapters::Test has been extracted from the Lita::RSpec internals and can be used to build integrations for other testing frameworks.

Improvements:

  • The send_message and send_command helper methods in RSpec now accept a boolean :privately option for marking the message as private.

Bug fixes:

  • Exceptions raised in event callbacks now only crash the event handler and not the robot.

4.5.0

21 Aug 08:42
Compare
Choose a tag to compare

Features:

  • Custom helper methods for templates. Make methods available to a template by using the new render_template_with_helpers method, which lets you pass in an array of modules to extend onto the template evaluation context.
  • New event: :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.
  • New event: :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:

  • Lita is now tested against JRuby 9.0.0.0 and Rubinius 2.x. It works with both implementations, with the exception of the daemonization feature on JRuby. This feature is being removed in Lita 5 anyway, so anyone using it now should migrate to a dedicated process manager.
  • The send_message and send_command helper methods in RSpec now take a :from option to specify the source room.
  • New convenience methods to reduce Law of Demeter violations: Lita::Message#room_object, Lita::Message#private_message?, Lita::Response#private_message?, and Lita::Response#room.
  • Less verbose #inspect output for Lita::Robot objects, making test failure output easier to read.
  • The line that registers a plugin with the global Lita registry in generated plugin files now uses self so it's less painful if you decide to rename the plugin.
  • The http_router gem was finally updated so Lita no longer monkey patches it.
  • Many small documentation and code quality improvements.

Bug fixes:

  • Messages are now more strict about being interpreted as commands. If the message is directed at the bot by using its mention name, it must include a space (after an optional comma or colon) before any additional text. This prevents messages that start with words that happen to be the same characters as the bot's mention name from being accidentally treated as commands. This behavior does not apply to messages addressing the bot via its alias, which is intended to be a single character like a slash, exclamation point, or period.

4.4.3

12 Jun 23:02
Compare
Choose a tag to compare
  • Fixed: Rooms are only persisted to Redis if they can be verified by the existence of a Lita::Room object.
  • Fixed: A few missing and incorrect pieces of API documentation.

4.4.2

12 Jun 20:41
Compare
Choose a tag to compare
  • Fixed: Lita::Robot#persisted_rooms is now public.

4.4.1

10 Jun 11:59
Compare
Choose a tag to compare
  • Fixed: 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.