rocketchat 0.2.5 → 0.2.7
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 +4 -4
- data/.github/workflows/test.yml +4 -3
- data/CHANGELOG.md +18 -6
- data/Gemfile +5 -5
- data/lib/rocket_chat/gem_version.rb +1 -1
- data/lib/rocket_chat/messages/channel.rb +1 -1
- data/lib/rocket_chat/messages/group.rb +1 -1
- data/lib/rocket_chat/messages/room.rb +3 -2
- data/lib/rocket_chat/messages/room_support.rb +2 -2
- data/lib/rocket_chat/messages/settings.rb +1 -1
- data/rocketchat.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6381a9d0b83538738b9f7f30c513f091120658bdb96659ceac197ceb546a1871
|
4
|
+
data.tar.gz: fd3238eeeedba95878904ff800b2dd8650c06810c0463973437d6b0170360fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef06653df66b2fa246206ad4f7bfa1a44047f2d180f05fd58dd1355b7ec6e46948ad42e31a50466b5ee4f076a5fe387b0174988152252aa5e078236d2abc3c92
|
7
|
+
data.tar.gz: 716836121e65f927a02b0466023deecb2df798a440985a8b0155f2ee6ad45e9d04905e804eabcfc4b9f704465cec7dcc4806bc3de1c2fa9b9a632fe5f2515829
|
data/.github/workflows/test.yml
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
name: Test RocketChat Ruby gem
|
2
2
|
|
3
|
+
env:
|
4
|
+
CC_TEST_REPORTER_ID: abf0a371ff8851f13b563671914b195bb46f0997f0f93142e666d9acad08e22f
|
5
|
+
|
3
6
|
on:
|
4
7
|
push:
|
5
8
|
branches: [main]
|
@@ -11,7 +14,7 @@ jobs:
|
|
11
14
|
runs-on: ubuntu-latest
|
12
15
|
strategy:
|
13
16
|
matrix:
|
14
|
-
ruby-version: ['3.0', '3.1', '3.2', '3.3']
|
17
|
+
ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4']
|
15
18
|
|
16
19
|
steps:
|
17
20
|
- uses: actions/checkout@v4
|
@@ -30,5 +33,3 @@ jobs:
|
|
30
33
|
|
31
34
|
- name: Test & publish code coverage
|
32
35
|
uses: paambaati/codeclimate-action@v3.0.0
|
33
|
-
env:
|
34
|
-
CC_TEST_REPORTER_ID: abf0a371ff8851f13b563671914b195bb46f0997f0f93142e666d9acad08e22f
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,18 @@
|
|
3
3
|
## Unreleased
|
4
4
|
- None
|
5
5
|
|
6
|
+
## [0.2.7](releases/tag/v0.2.7) - 2025-02-07
|
7
|
+
### Fixed
|
8
|
+
- [#50] Fix bug in group/channel online API where ID usage broken ([@abrom][])
|
9
|
+
|
10
|
+
## [0.2.6](releases/tag/v0.2.6) - 2025-01-14
|
11
|
+
### Added
|
12
|
+
- [#49] Add Ruby 3.4 support ([@abrom][])
|
13
|
+
|
14
|
+
## [0.2.5](releases/tag/v0.2.5) - 2024-04-15
|
15
|
+
### Added
|
16
|
+
- [#48] Add Ruby 3.3 support ([@reist][])
|
17
|
+
|
6
18
|
## [0.2.4](releases/tag/v0.2.4) - 2023-12-22
|
7
19
|
### Added
|
8
20
|
- [#47] Add content-type and filename params for file upload ([@MrRTI][])
|
@@ -55,7 +67,7 @@
|
|
55
67
|
### Deprecation
|
56
68
|
- Drop Ruby 2.1 from build matrix ([@abrom][])
|
57
69
|
|
58
|
-
## [0.1.16](releases/tag/v0.1.16) - 2018-10-
|
70
|
+
## [0.1.16](releases/tag/v0.1.16) - 2018-10-03
|
59
71
|
### Deprecation
|
60
72
|
- Drop Ruby 2.0 from build matrix ([@abrom][])
|
61
73
|
|
@@ -67,11 +79,11 @@
|
|
67
79
|
### Fixed
|
68
80
|
- Updated yard to resolve potential security vulnerability ([@abrom][])
|
69
81
|
|
70
|
-
## [0.1.14](releases/tag/v0.1.14) - 2017-10-
|
82
|
+
## [0.1.14](releases/tag/v0.1.14) - 2017-10-09
|
71
83
|
### Added
|
72
84
|
- [#19] Room/channel kick function ([@hardik127][])
|
73
85
|
|
74
|
-
## [0.1.13](releases/tag/v0.1.13) - 2017-10-
|
86
|
+
## [0.1.13](releases/tag/v0.1.13) - 2017-10-09
|
75
87
|
### Added
|
76
88
|
- Support for channel/group addAll endpoint ([@abrom][])
|
77
89
|
|
@@ -107,12 +119,12 @@
|
|
107
119
|
### Added
|
108
120
|
- [#8] Various channel/group (room) API support ([@reist][],[@danischreiber][])
|
109
121
|
|
110
|
-
## [0.1.5](releases/tag/v0.1.5) - 2017-07-
|
122
|
+
## [0.1.5](releases/tag/v0.1.5) - 2017-07-09
|
111
123
|
### Added
|
112
124
|
- [#6] User createToken and resetAvatar endpoints ([@reist][])
|
113
125
|
- [#7] Support for debugging server calls ([@reist][])
|
114
126
|
|
115
|
-
## [0.1.4](releases/tag/v0.1.4) - 2017-07-
|
127
|
+
## [0.1.4](releases/tag/v0.1.4) - 2017-07-09
|
116
128
|
### Fixed
|
117
129
|
- Fixed a missing dependency issue with `uri` ([@abrom][])
|
118
130
|
|
@@ -120,7 +132,7 @@
|
|
120
132
|
### Added
|
121
133
|
- [#3] Initial support for 'Room' endpoints ([@reist][])
|
122
134
|
|
123
|
-
## [0.1.1](releases/tag/v0.1.1) - 2017-05-
|
135
|
+
## [0.1.1](releases/tag/v0.1.1) - 2017-05-01
|
124
136
|
### Added
|
125
137
|
- Support for settings get/set endpoints ([@abrom][])
|
126
138
|
|
data/Gemfile
CHANGED
@@ -8,10 +8,10 @@ gemspec
|
|
8
8
|
gem 'bundler', ['>= 1.11', '< 3.0']
|
9
9
|
gem 'rake', '>= 12.3.3'
|
10
10
|
gem 'rspec', '~> 3.0'
|
11
|
-
gem 'rubocop', '~> 1.
|
12
|
-
gem 'rubocop-performance', '~> 1.
|
11
|
+
gem 'rubocop', '~> 1.70'
|
12
|
+
gem 'rubocop-performance', '~> 1.23'
|
13
13
|
gem 'rubocop-rake', '~> 0.6'
|
14
|
-
gem 'rubocop-rspec', '~>
|
15
|
-
gem 'simplecov', '~> 0.
|
16
|
-
gem 'webmock', '~> 3.
|
14
|
+
gem 'rubocop-rspec', '~> 3.3'
|
15
|
+
gem 'simplecov', '~> 0.22'
|
16
|
+
gem 'webmock', '~> 3.24'
|
17
17
|
gem 'yard', '~> 0.9.11'
|
@@ -54,7 +54,7 @@ module RocketChat
|
|
54
54
|
def online(room_id: nil, name: nil)
|
55
55
|
response = session.request_json(
|
56
56
|
'/api/v1/channels.online',
|
57
|
-
body:
|
57
|
+
body: room_query_params(room_id, name)
|
58
58
|
)
|
59
59
|
|
60
60
|
response['online'].map { |hash| RocketChat::User.new hash } if response['success']
|
@@ -85,7 +85,7 @@ module RocketChat
|
|
85
85
|
def online(room_id: nil, name: nil)
|
86
86
|
response = session.request_json(
|
87
87
|
'/api/v1/groups.online',
|
88
|
-
body:
|
88
|
+
body: room_query_params(room_id, name)
|
89
89
|
)
|
90
90
|
|
91
91
|
response['online'].map { |hash| RocketChat::User.new hash } if response['success']
|
@@ -341,8 +341,9 @@ module RocketChat
|
|
341
341
|
end
|
342
342
|
|
343
343
|
def validate_attribute(attribute)
|
344
|
-
|
345
|
-
|
344
|
+
return if self.class.settable_attributes.include?(attribute)
|
345
|
+
|
346
|
+
raise ArgumentError, "Unsettable attribute: #{attribute || 'nil'}"
|
346
347
|
end
|
347
348
|
|
348
349
|
def file_upload_array(**params)
|
data/rocketchat.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = 'Rocket.Chat REST API v1 for Ruby'
|
16
16
|
spec.homepage = 'https://github.com/abrom/rocketchat-ruby'
|
17
17
|
spec.license = 'MIT'
|
18
|
-
spec.required_ruby_version = ['>= 3.0.0', '< 3.
|
18
|
+
spec.required_ruby_version = ['>= 3.0.0', '< 3.5.0']
|
19
19
|
|
20
20
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
21
21
|
# delete this section to allow pushing this gem to any host.
|
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.
|
4
|
+
version: 0.2.7
|
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:
|
12
|
+
date: 2025-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Rocket.Chat REST API v1 for Ruby
|
15
15
|
email:
|
@@ -71,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: 3.0.0
|
72
72
|
- - "<"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 3.
|
74
|
+
version: 3.5.0
|
75
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
77
|
- - ">="
|