rocketchat 0.2.7 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6381a9d0b83538738b9f7f30c513f091120658bdb96659ceac197ceb546a1871
4
- data.tar.gz: fd3238eeeedba95878904ff800b2dd8650c06810c0463973437d6b0170360fd2
3
+ metadata.gz: c9ddbff6f51e70e6f67a63f5b8bb41536370246bdd33e91d823ba9e96087ae41
4
+ data.tar.gz: 0d1d899df0c5a512ca112d6edb5ff57a94ea29728f1acef769da23d4418a9b2a
5
5
  SHA512:
6
- metadata.gz: ef06653df66b2fa246206ad4f7bfa1a44047f2d180f05fd58dd1355b7ec6e46948ad42e31a50466b5ee4f076a5fe387b0174988152252aa5e078236d2abc3c92
7
- data.tar.gz: 716836121e65f927a02b0466023deecb2df798a440985a8b0155f2ee6ad45e9d04905e804eabcfc4b9f704465cec7dcc4806bc3de1c2fa9b9a632fe5f2515829
6
+ metadata.gz: 1b74baab88848f994b328ba2464b192c4d9d85fb7d1e29efad213312acb4d3e4560dc6f03032a0393995945737c380395924086f96dbe8820c7d13aac522b7c5
7
+ data.tar.gz: 9a7ddcb97b587b1bc31d79d14032268b3af29ea03fc3236fc65d3efe9a1d27180591146ff2f00b278af7830c853695c8718fd2d67fd922120e47af58b9e07307
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-performance
3
3
  - rubocop-rake
4
4
  - rubocop-rspec
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  ## Unreleased
4
4
  - None
5
5
 
6
+ ## [0.3.1](releases/tag/v0.3.1) - 2025-03-13
7
+ ### Fixed
8
+ - [#51] Fix deprecation in User#info fetching of user room ([@abrom][])
9
+
6
10
  ## [0.2.7](releases/tag/v0.2.7) - 2025-02-07
7
11
  ### Fixed
8
12
  - [#50] Fix bug in group/channel online API where ID usage broken ([@abrom][])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RocketChat
4
- VERSION = '0.2.7'
4
+ VERSION = '0.3.1'
5
5
  end
@@ -48,10 +48,10 @@ module RocketChat
48
48
  # @return [Room[]]
49
49
  # @raise [HTTPError, StatusError]
50
50
  #
51
- def list(offset: nil, count: nil, sort: nil, fields: nil, query: nil)
51
+ def list(offset: nil, count: nil, sort: nil, fields: nil)
52
52
  response = session.request_json(
53
53
  '/api/v1/groups.list',
54
- body: build_list_body(offset, count, sort, fields, query)
54
+ body: build_list_body(offset, count, sort, fields)
55
55
  )
56
56
 
57
57
  response['groups'].map { |hash| RocketChat::Room.new hash } if response['success']
@@ -122,8 +122,7 @@ module RocketChat
122
122
  def info(user_id: nil, username: nil, include_rooms: false)
123
123
  response = session.request_json(
124
124
  '/api/v1/users.info',
125
- body: user_params(user_id, username)
126
- .merge(include_rooms ? { fields: { userRooms: 1 }.to_json } : {}),
125
+ body: user_params(user_id, username).merge(include_rooms ? { includeUserRooms: true } : {}),
127
126
  upstreamed_errors: ['error-invalid-user']
128
127
  )
129
128
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocketchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - int512
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-02-07 00:00:00.000000000 Z
12
+ date: 2025-03-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rocket.Chat REST API v1 for Ruby
15
15
  email: