rocketchat 0.1.22 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7907a530b955caeebf01a3e7761eb2b88722d3cebccd409b9c85468db0a4bd6
4
- data.tar.gz: 5d368fbed83d9a6777aeccfbe02382295fc1024c53e1bd987cea266cfc0de1ba
3
+ metadata.gz: e905853c710d76e1eef50b102b93632c5523713d142bd3cfe940995b39ae427c
4
+ data.tar.gz: '08ab172483429ae969d957ab0a30a2a0336d701c116719fd061911978b9f1fb7'
5
5
  SHA512:
6
- metadata.gz: eea355bd46d9c4beb48170431f2e27386faeb3748db31be3764cdda4cb158f10a57f22b4d2de668ee9e33930d56c8bb6175ebb4a8bf7e0346992a00ba3ddf34e
7
- data.tar.gz: 5bb2267586fe3995ba4d645747a7b71d2ac72d93ea7064dceedc0eddcc2c775698991f0f963394ebd8304e7ab76d0624271a603c425989659390627a5cede2fc
6
+ metadata.gz: ac016a85545fea96d9d7d9acf798a22ead3eaa31215e2a61a31d696aa43606bee50999f4c9e1d3174b6bdcf03d0c45d3006eff105203bf6d078bd1a221aa51e0
7
+ data.tar.gz: 471b76b3a12f47304e26f356218c8d90bc981755ecfc8499724c94d099b40a8f7f34968f3faa912f396dcc108dda20f618cb782a2107f9aef1c305000be0e643
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  ## Unreleased
4
4
  - None
5
5
 
6
+ ## [0.1.23](releases/tag/v0.1.23) - 2022-11-11
7
+ ### Added
8
+ - [#40] Add set_attr options for announcement, custom_fields and default for channels/groups ([@reist][],[@nmagedman][])
9
+
6
10
  ## [0.1.22](releases/tag/v0.1.22) - 2022-07-21
7
11
  ### Fixed
8
12
  - [#38] Fix room (channel/group) online API queries (use `query` instead of `roomId`) ([@abrom][])
@@ -122,4 +126,4 @@
122
126
  [@chrisstime]: https://github.com/chrisstime
123
127
  [@christianmoretti]: https://github.com/christianmoretti
124
128
  [@alinavancea]: https://github.com/alinavancea
125
-
129
+ [@nmagedman]: https://github.com/nmagedman
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RocketChat
4
- VERSION = '0.1.22'
4
+ VERSION = '0.1.23'
5
5
  end
@@ -61,6 +61,9 @@ module RocketChat
61
61
  end
62
62
 
63
63
  # Keys for set_attr:
64
+ # * [String] announcement Announcement for the channel
65
+ # * [Hash] custom_fields Custom fields for the channel
66
+ # * [Boolean] default Sets whether the channel is a default channel or not
64
67
  # * [String] description A room's description
65
68
  # * [String] join_code Code to join a channel
66
69
  # * [String] purpose Alias for description
@@ -68,7 +71,7 @@ module RocketChat
68
71
  # * [String] topic A room's topic
69
72
  # * [Strong] type c (channel) or p (private group)
70
73
  def self.settable_attributes
71
- %i[description join_code purpose read_only topic type]
74
+ %i[announcement custom_fields default description join_code purpose read_only topic type]
72
75
  end
73
76
  end
74
77
  end
@@ -92,13 +92,15 @@ module RocketChat
92
92
  end
93
93
 
94
94
  # Keys for set_attr:
95
+ # * [String] announcement Announcement for the channel
96
+ # * [Hash] custom_fields Custom fields for the channel
95
97
  # * [String] description A room's description
96
98
  # * [String] purpose Alias for description
97
99
  # * [Boolean] read_only Read-only status
98
100
  # * [String] topic A room's topic
99
101
  # * [Strong] type c (channel) or p (private group)
100
102
  def self.settable_attributes
101
- %i[description purpose read_only topic type]
103
+ %i[announcement custom_fields description purpose read_only topic type]
102
104
  end
103
105
  end
104
106
  end
@@ -309,7 +309,7 @@ module RocketChat
309
309
  attr_reader :session
310
310
 
311
311
  def room_option_hash(options)
312
- args = [options, :members, :read_only, :custom_fields]
312
+ args = [options, :members, :read_only, :custom_fields, :extra_data]
313
313
 
314
314
  options = Util.slice_hash(*args)
315
315
  return {} if options.empty?
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.1.22
4
+ version: 0.1.23
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: 2022-07-21 00:00:00.000000000 Z
12
+ date: 2022-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubygems_version: 3.2.33
233
+ rubygems_version: 3.3.7
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: Rocket.Chat REST API v1 for Ruby