From 2e2bb0fcce449154391246695d1b20783b921430 Mon Sep 17 00:00:00 2001 From: Andrew Bromwich Date: Fri, 21 Apr 2023 10:04:56 +1000 Subject: [PATCH] Bump version to 0.2.2 --- CHANGELOG.md | 10 ++++++++++ docs/chat.md | 12 ++++++++++++ lib/rocket_chat/gem_version.rb | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6da377..107a095 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ ## Unreleased - None +## [0.2.2](releases/tag/v0.2.2) - 2023-04-21 +### Added +- [#43] Add Ruby 3.2 support ([@MrRTI][]) +- [#44] Add support for thread messages ([@MrRTI][]) + +### Fixed +- [#45] Fixed some rubocop lints ([@abrom][]) + + ## [0.2.1](releases/tag/v0.2.1) - 2022-12-19 ### Fixed - [#41] URL-encode param values in GET query strings ([@nmagedman][]) @@ -131,3 +140,4 @@ [@christianmoretti]: https://github.com/christianmoretti [@alinavancea]: https://github.com/alinavancea [@nmagedman]: https://github.com/nmagedman +[@MrRTI]: https://github.com/MrRTi diff --git a/docs/chat.md b/docs/chat.md index 677e6b8..18f45cf 100644 --- a/docs/chat.md +++ b/docs/chat.md @@ -40,6 +40,18 @@ message = session.chat.post_message(room_id: 'some_message_id', text: 'hello, rocket.chat') ``` +Post a message in a thread. + +```ruby +require 'rocketchat' + +rocket_server = RocketChat::Server.new('http://your.server.address/') +session = rocket_server.login('username', 'password') +message = session.chat.post_message(room_id: 'some_message_id', + text: 'hello, rocket.chat', + tmid: 'gcGai9bRREqokjyPc') +``` + #### chat.update Update an existing message. diff --git a/lib/rocket_chat/gem_version.rb b/lib/rocket_chat/gem_version.rb index 0957466..ede8dd1 100644 --- a/lib/rocket_chat/gem_version.rb +++ b/lib/rocket_chat/gem_version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module RocketChat - VERSION = '0.2.1' + VERSION = '0.2.2' end