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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9f267ba8c635df9da09f97e9da8ba7b4cae0d1ca214aaee49e8ea172abb87af
4
- data.tar.gz: f6f3bf71b1dbc67e1218c8767bcc99051979085de1bb1869cb34c50cc622261c
3
+ metadata.gz: 6381a9d0b83538738b9f7f30c513f091120658bdb96659ceac197ceb546a1871
4
+ data.tar.gz: fd3238eeeedba95878904ff800b2dd8650c06810c0463973437d6b0170360fd2
5
5
  SHA512:
6
- metadata.gz: 9a205e48ec4a51c13a607364850f3febf6be3b2153af570f44b497650e1065740f33fe5a1d044cfb1d2946094aed790c3374947f7bb9bd7ceac6b329efb9c1b6
7
- data.tar.gz: f47d747b5bba43b6e10339c63313a64326704f9f2c27b2259ccb308cdc3bea51edb94bdb23a5df7b3a94473050ec57758b6660e01baee04078b7ad5f5a7559ca
6
+ metadata.gz: ef06653df66b2fa246206ad4f7bfa1a44047f2d180f05fd58dd1355b7ec6e46948ad42e31a50466b5ee4f076a5fe387b0174988152252aa5e078236d2abc3c92
7
+ data.tar.gz: 716836121e65f927a02b0466023deecb2df798a440985a8b0155f2ee6ad45e9d04905e804eabcfc4b9f704465cec7dcc4806bc3de1c2fa9b9a632fe5f2515829
@@ -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-3
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-9
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-9
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-9
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-9
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-1
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.28'
12
- gem 'rubocop-performance', '~> 1.13'
11
+ gem 'rubocop', '~> 1.70'
12
+ gem 'rubocop-performance', '~> 1.23'
13
13
  gem 'rubocop-rake', '~> 0.6'
14
- gem 'rubocop-rspec', '~> 2.10'
15
- gem 'simplecov', '~> 0.16', '< 0.18'
16
- gem 'webmock', '~> 3.12'
14
+ gem 'rubocop-rspec', '~> 3.3'
15
+ gem 'simplecov', '~> 0.22'
16
+ gem 'webmock', '~> 3.24'
17
17
  gem 'yard', '~> 0.9.11'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RocketChat
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.7'
5
5
  end
@@ -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: { query: room_query_params(room_id, name) }
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: { query: room_query_params(room_id, name) }
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
- raise ArgumentError, "Unsettable attribute: #{attribute || 'nil'}" unless \
345
- self.class.settable_attributes.include?(attribute)
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)
@@ -20,10 +20,10 @@ module RocketChat
20
20
  if id
21
21
  { _id: id }
22
22
  elsif name
23
- { name: name }
23
+ { query: { name: name }.to_json }
24
24
  else
25
25
  {}
26
- end.to_json
26
+ end
27
27
  end
28
28
  end
29
29
  end
@@ -36,7 +36,7 @@ module RocketChat
36
36
  }
37
37
  )
38
38
 
39
- value if response['success']
39
+ value if response['success'] # rubocop:disable Lint/Void
40
40
  end
41
41
 
42
42
  private
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.4.0']
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.5
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: 2024-04-15 00:00:00.000000000 Z
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.4.0
74
+ version: 3.5.0
75
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="