stream-chat-ruby 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/stream-chat/client.rb +21 -1
- data/lib/stream-chat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b1c2b73dbb2e8e0e65aaa47da051ad41694ae5faf6c1d6d1de9e368d9f6bea6
|
4
|
+
data.tar.gz: 45a43c071349a05ce38a9df5840182ce299f3c41942c351dfb033aad314bba32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37f5d1762e3185a5a92698b0e3ea9f8358d21a5d90c9683387b29a8b64e31e6548d1ac3090bf111b83175e1a228ecf6ed711123e9b080ea01332de5d8d33a9d4
|
7
|
+
data.tar.gz: 68eb7fee75f01cae1d684fd4c9f51354914656193e4681d2d8a398659613f45bbf37f2322874d01e12f41a395f9a6f68431586a36b1c7094ccf770d85012c3eb
|
data/CHANGELOG.md
CHANGED
data/lib/stream-chat/client.rb
CHANGED
@@ -202,7 +202,7 @@ module StreamChat
|
|
202
202
|
end
|
203
203
|
|
204
204
|
def update_channel_type(channel_type, **options)
|
205
|
-
put("channeltypes/#{channel_type}",
|
205
|
+
put("channeltypes/#{channel_type}", data: options)
|
206
206
|
end
|
207
207
|
|
208
208
|
def delete_channel_type(channel_type)
|
@@ -242,6 +242,26 @@ module StreamChat
|
|
242
242
|
signature == x_signature
|
243
243
|
end
|
244
244
|
|
245
|
+
def list_blocklists
|
246
|
+
get('blocklists')
|
247
|
+
end
|
248
|
+
|
249
|
+
def get_blocklist(name)
|
250
|
+
get("blocklists/#{name}")
|
251
|
+
end
|
252
|
+
|
253
|
+
def create_blocklist(name, words)
|
254
|
+
post('blocklists', data: { "name": name, "words": words })
|
255
|
+
end
|
256
|
+
|
257
|
+
def update_blocklist(name, words)
|
258
|
+
put("blocklists/#{name}", data: { "words": words })
|
259
|
+
end
|
260
|
+
|
261
|
+
def delete_blocklist(name)
|
262
|
+
delete("blocklists/#{name}")
|
263
|
+
end
|
264
|
+
|
245
265
|
def put(relative_url, params: nil, data: nil)
|
246
266
|
make_http_request(:put, relative_url, params: params, data: data)
|
247
267
|
end
|
data/lib/stream-chat/version.rb
CHANGED